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

:root {
    --primary: #F9A825;
    --primary-light: #FFD54F;
    --secondary: #E65100;
    --gold: #FFC107;
    --dark: #333333;
    --light: #FFFDE7;
    --gray: #666666;
    --success: #388E3C;
    --danger: #D32F2F;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(180deg, #FFF9C4 0%, #FFF59D 100%);
    min-height: 100vh;
    color: #333333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 5px;
}

.subtitle {
    color: #666666;
    font-size: 1.1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

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

.btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Quiz Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress {
    flex: 1;
    margin-right: 20px;
}

#question-count {
    display: block;
    color: #333333;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar {
    background: #E0E0E0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

#progress-fill {
    background: var(--primary);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.score {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #333333;
    font-weight: 600;
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    padding: 40px 25px;
    margin-bottom: 20px;
}

.quote-mark {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-text {
    font-size: 1.2rem;
    color: var(--dark);
    font-style: italic;
    line-height: 1.8;
    margin: 15px 0;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-btn .option-letter {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.option-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.option-btn.wrong {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* Feedback */
.feedback {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-top: 15px;
}

#feedback-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#feedback-text.correct {
    color: var(--success);
}

#feedback-text.wrong {
    color: var(--danger);
}

/* Result Screen */
.result-card {
    text-align: center;
}

.final-score {
    margin: 30px 0;
}

.big-score {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
}

.score-label {
    color: var(--gray);
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 20px !important;
}

.result-breakdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

.btn-share {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
}

/* Daily Screen */
#daily-status {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.daily-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    font-size: 1.1rem;
}

.about-info {
    text-align: left;
    margin-top: 20px;
}

.about-info h3 {
    color: var(--primary);
    margin: 15px 0 8px;
    font-size: 1rem;
}

.about-info p {
    text-align: left;
    font-size: 0.95rem;
}

/* Stats Preview */
.stats-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    color: var(--gray);
}

.stats-preview span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #666666;
    margin-top: auto;
}

footer nav {
    margin-top: 10px;
}

footer nav button {
    color: #333333;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }

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

    .big-score {
        font-size: 3rem;
    }

    .daily-stats {
        flex-direction: column;
        gap: 10px;
    }
}
