/* ==========================================
   WIFE'S CONFESSION - ELEGANT & SOFT DESIGN
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B6B61;
    --primary-light: #A88B82;
    --primary-dark: #6B4D45;
    --accent: #D4A59A;
    --background: #FDF8F6;
    --surface: #FFFFFF;
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-muted: #9B9B9B;
    --border: #E8E0DD;
    --shadow: rgba(139, 107, 97, 0.1);
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--background);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================
   LAYOUT
   ========================================== */

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 24px auto;
}

/* ==========================================
   AGE GATE
   ========================================== */

.logo {
    margin-bottom: 24px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 4px 20px var(--shadow);
}

#age-gate h1,
#welcome h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.age-notice {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.age-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ==========================================
   WELCOME SCREEN
   ========================================== */

.welcome-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ==========================================
   QUIZ SECTION
   ========================================== */

#quiz .container {
    max-width: 520px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(139, 107, 97, 0.3);
}

.question-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px var(--shadow);
}

.question {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================
   OPTIONS
   ========================================== */

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.option-btn {
    padding: 16px 20px;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.option-btn:hover {
    border-color: var(--primary-light);
    background: rgba(139, 107, 97, 0.03);
    transform: translateX(4px);
}

.option-btn:active {
    background: rgba(139, 107, 97, 0.08);
    border-color: var(--primary);
}

/* ==========================================
   BACK BUTTON
   ========================================== */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
}

.btn-back:hover {
    color: var(--primary);
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* ==========================================
   RESULTS
   ========================================== */

.result-header {
    margin-bottom: 32px;
}

.result-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 30px var(--shadow);
}

.score-circle {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
}

.score-value {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.score-label {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-left: 4px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.result-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (min-width: 480px) {
    .age-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        padding: 16px 40px;
    }

    .result-actions {
        flex-direction: row;
        justify-content: center;
    }

    .question {
        font-size: 1.35rem;
    }
}

@media (min-width: 768px) {
    #age-gate h1,
    #welcome h1 {
        font-size: 2.5rem;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .question-card {
        padding: 40px 32px;
    }

    .question {
        font-size: 1.5rem;
    }

    .option-btn {
        padding: 18px 24px;
        font-size: 1rem;
    }

    .score-value {
        font-size: 5rem;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: fadeIn 0.4s ease;
}

.option-btn {
    animation: fadeIn 0.4s ease;
    animation-fill-mode: both;
}

.option-btn:nth-child(1) { animation-delay: 0.1s; }
.option-btn:nth-child(2) { animation-delay: 0.15s; }
.option-btn:nth-child(3) { animation-delay: 0.2s; }
.option-btn:nth-child(4) { animation-delay: 0.25s; }
.option-btn:nth-child(5) { animation-delay: 0.3s; }
