/* Custom Design System for "Pai, e não Genitor" Quiz */

:root {
    /* Color Palette */
    --bg-gradient: linear-gradient(135deg, #090e17 0%, #152238 100%);
    --card-bg: rgba(21, 34, 56, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --color-primary: #3B82F6;       /* Trust Blue */
    --color-primary-hover: #2563EB;
    --color-accent: #F59E0B;        /* Premium Gold */
    --color-accent-hover: #D97706;  
    --color-success: #10B981;       /* Growth Green */
    --color-error: #EF4444;
    
    /* Layout & Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    line-height: 1.6;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 20px 0;
}

/* Quiz Card Glassmorphism */
.quiz-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (max-width: 640px) {
    .quiz-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    body {
        padding: 8px;
    }
    .hero-header h1 {
        font-size: 1.55rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .question-title {
        font-size: 1.25rem;
    }
    .option-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
        gap: 10px;
    }
    .btn-cta {
        padding: 16px 18px;
        font-size: 0.95rem;
        line-height: 1.35;
    }
}

/* Screens */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animations for transitioning */
.fade-out {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- TELA INICIAL (INTRO) --- */
.hero-header {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(to right, #FFFFFF, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
    .hero-header h1 {
        font-size: 1.75rem;
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.intro-visual {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.family-svg {
    width: 140px;
    height: 140px;
    color: var(--color-primary);
    opacity: 0.85;
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.intro-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.time-notice {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- BOTOES E INTERACAO --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: 100%;
    max-width: 320px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

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

/* --- TELA DE PERGUNTAS --- */
.quiz-header {
    margin-bottom: 30px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--color-primary) 0%, #60A5FA 100%);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.question-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 24px;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .question-title {
        font-size: 1.35rem;
    }
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Opção de Resposta */
.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
    width: 100%;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.option-btn:active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-primary);
}

.option-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* --- TELA DE CARREGAMENTO (SPINNER) --- */
.loader-content {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

.loader-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
    max-width: 380px;
}

.step-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.step-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.step-item.done {
    color: var(--color-success);
}

/* --- TELA DE RESULTADO / CONCLUSAO --- */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.result-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #FFFFFF, #6EE7B7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
    .result-header h1 {
        font-size: 1.8rem;
    }
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card de Feedback Customizado */
.custom-feedback-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(21, 34, 56, 0.3) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
}

.custom-feedback-card h3 {
    font-family: var(--font-heading);
    color: #93C5FD;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-feedback-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.conclusion-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1rem;
    color: #E2E8F0;
}

.solutions-intro {
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 8px;
}

/* Lista de Beneficios */
.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.check-icon {
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefits-list li strong {
    color: #FFF;
}

/* Warning Box */
.final-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.warning-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.final-warning p {
    font-size: 0.95rem;
    color: #FDE68A;
    line-height: 1.5;
}

/* Seção do Botão CTA */
.result-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
}

.btn-cta {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #0F172A;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.4;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, #FBBF24 0%, var(--color-accent) 100%);
}

.btn-cta:active {
    transform: translateY(1px);
}

.btn-cta span {
    font-weight: 800;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.cta-notice {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Footer Geral */
.app-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 10px 0;
}
