/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --secondary-color: #f5f7fa;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-year {
    font-size: 0.9rem;
    color: var(--text-lighter);
    font-weight: 500;
}

/* ============================================
   SCREENS
   ============================================ */
.screen {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.screen.active {
    display: block;
}

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

/* ============================================
   WELCOME SCREEN
   ============================================ */
.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.welcome-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.welcome-content {
    margin-bottom: 2rem;
}

.welcome-text {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--primary-light);
    border-radius: 8px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ============================================
   QUIZ SCREEN
   ============================================ */
.quiz-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* Progress Section */
.progress-section {
    margin-bottom: 2.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-lighter);
    letter-spacing: 0.5px;
}

.progress-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
}

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

/* Question Section */
.question-section {
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Options Section */
.options-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* Navigation Section */
.navigation-section {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

/* ============================================
   RESULT SCREEN
   ============================================ */
.result-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.result-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

.result-content {
    margin-bottom: 2rem;
}

.result-message {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.result-details {
    margin-bottom: 2rem;
}

.result-details h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.result-data {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.result-data-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-data-item:last-child {
    border-bottom: none;
}

.result-data-label {
    font-weight: 600;
    color: var(--text-light);
}

.result-data-value {
    color: var(--text-dark);
    font-weight: 500;
}

.result-cta {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #f5f7fa;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer-link:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-header h1 {
        font-size: 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quiz-card {
        padding: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .option {
        padding: 0.75rem;
    }

    .option label {
        font-size: 0.9rem;
    }

    .navigation-section {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-disclaimer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .welcome-card {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .welcome-header h1 {
        font-size: 1.3rem;
    }

    .welcome-text {
        font-size: 0.9rem;
    }

    .quiz-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .result-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .progress-label {
        font-size: 0.8rem;
    }

    .question-title {
        font-size: 1.1rem;
    }

    .option {
        padding: 0.65rem;
    }

    .option input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 0.75rem;
    }

    .option label {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-links {
        gap: 0.75rem;
        flex-direction: column;
    }

    .result-header h2 {
        font-size: 1.4rem;
    }
}
