/* ========================================
   Le Cadavre Exquis - Custom Styles
   ======================================== */

/* CSS Variables for theming */
:root {
    --color-bg: #faf8f5;
    --color-text: #2d2d2d;
    --color-accent: #6b4c9a;
    --color-accent-dark: #4a3570;
    --color-gold: #c9a036;
    --color-muted: #666;
    --color-border: #e0dcd5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Override base styles */
body {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
}

/* Header styling */
.site-header h1 {
    color: var(--color-accent) !important;
    font-weight: 700;
}

.site-header a {
    text-decoration: none;
}

/* Card styling */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff !important;
    border-radius: 7px 7px 0 0;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

/* Button styling */
.btn.btn-default {
background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff !important;
    border: none;
border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
cursor: pointer;
}

.btn.btn-default:hover,
.btn.btn-default:focus {
background: linear-gradient(135deg, var(--color-accent-dark) 0%, #3a2858 100%);
    color: #fff !important;
box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn.btn-default:active {
transform: translateY(0);
box-shadow: var(--shadow-sm);
}

/* Story content */
.historyEncrypted {
    margin-bottom: 0 !important;
    opacity: 0.3;
    font-style: italic;
    color: var(--color-muted);
}

/* Form elements */
.form-control {
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Links */
a {
    color: var(--color-accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-dark);
}

/* Stats display */
.stats {
    color: var(--color-muted);
    font-size: 0.9em;
}

/* Success animation */
@keyframes celebratePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebrate {
    animation: celebratePop 0.4s ease-out;
}

/* Story text */
.story-text p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-indent: 1.5em;
}

.story-text p:first-child {
    text-indent: 0;
}

/* Mobile improvements */
@media (max-width: 600px) {
    .btn.btn-default {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Dashed borders with theme color */
.dashed-top {
    border-top: 2px dashed var(--color-border);
}

.dashed-bottom {
    border-bottom: 2px dashed var(--color-border);
}

/* Game explanation hint */
.game-hint {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.85em;
    color: var(--color-muted);
    text-align: center;
    font-style: italic;
    border-top: 1px solid var(--color-border);
}

.game-hint strong {
    font-style: normal;
    color: var(--color-text);
}