/* Dynamic theme system */
:root {
    --theme-background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --theme-primary: #dc2626;
    --theme-secondary: #ef4444;
    --theme-accent: #f87171;
    --theme-question: linear-gradient(135deg, #fca5a5 0%, #fee2e2 100%);
    --theme-success: #fca5a5;
    --theme-danger: #b91c1c;
    --theme-info: #fca5a5;
    --theme-title: #991b1b;
    --theme-progress: #fca5a5;
    --theme-score: #f87171;
}

/* Theme variations */
.theme-red {
    --theme-background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --theme-primary: #dc2626;
    --theme-secondary: #ef4444;
    --theme-accent: #f87171;
    --theme-question: linear-gradient(135deg, #fca5a5 0%, #fee2e2 100%);
    --theme-success: #fca5a5;
    --theme-danger: #b91c1c;
    --theme-info: #fca5a5;
    --theme-title: #991b1b;
    --theme-progress: #fca5a5;
    --theme-score: #f87171;
}

.theme-orange {
    --theme-background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --theme-primary: #ea580c;
    --theme-secondary: #f97316;
    --theme-accent: #fb923c;
    --theme-question: linear-gradient(135deg, #fdba74 0%, #fed7aa 100%);
    --theme-success: #fdba74;
    --theme-danger: #c2410c;
    --theme-info: #fdba74;
    --theme-title: #9a3412;
    --theme-progress: #fdba74;
    --theme-score: #fb923c;
}

.theme-amber {
    --theme-background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --theme-primary: #d97706;
    --theme-secondary: #f59e0b;
    --theme-accent: #fbbf24;
    --theme-question: linear-gradient(135deg, #fcd34d 0%, #fde68a 100%);
    --theme-success: #fcd34d;
    --theme-danger: #b45309;
    --theme-info: #fcd34d;
    --theme-title: #92400e;
    --theme-progress: #fcd34d;
    --theme-score: #fbbf24;
}

.theme-yellow {
    --theme-background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    --theme-primary: #ca8a04;
    --theme-secondary: #eab308;
    --theme-accent: #facc15;
    --theme-question: linear-gradient(135deg, #fde047 0%, #fef3c7 100%);
    --theme-success: #fde047;
    --theme-danger: #a16207;
    --theme-info: #fde047;
    --theme-title: #854d0e;
    --theme-progress: #fde047;
    --theme-score: #facc15;
}

.theme-lime {
    --theme-background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    --theme-primary: #65a30d;
    --theme-secondary: #84cc16;
    --theme-accent: #a3e635;
    --theme-question: linear-gradient(135deg, #bef264 0%, #ecfccb 100%);
    --theme-success: #bef264;
    --theme-danger: #4d7c0f;
    --theme-info: #bef264;
    --theme-title: #3f6212;
    --theme-progress: #bef264;
    --theme-score: #a3e635;
}

.theme-green {
    --theme-background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --theme-primary: #16a34a;
    --theme-secondary: #22c55e;
    --theme-accent: #4ade80;
    --theme-question: linear-gradient(135deg, #86efac 0%, #dcfce7 100%);
    --theme-success: #86efac;
    --theme-danger: #15803d;
    --theme-info: #86efac;
    --theme-title: #166534;
    --theme-progress: #86efac;
    --theme-score: #4ade80;
}

.theme-emerald {
    --theme-background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --theme-primary: #059669;
    --theme-secondary: #10b981;
    --theme-accent: #34d399;
    --theme-question: linear-gradient(135deg, #6ee7b7 0%, #d1fae5 100%);
    --theme-success: #6ee7b7;
    --theme-danger: #047857;
    --theme-info: #6ee7b7;
    --theme-title: #065f46;
    --theme-progress: #6ee7b7;
    --theme-score: #34d399;
}

.theme-teal {
    --theme-background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --theme-primary: #0d9488;
    --theme-secondary: #14b8a6;
    --theme-accent: #2dd4bf;
    --theme-question: linear-gradient(135deg, #5eead4 0%, #ccfbf1 100%);
    --theme-success: #5eead4;
    --theme-danger: #0f766e;
    --theme-info: #5eead4;
    --theme-title: #115e59;
    --theme-progress: #5eead4;
    --theme-score: #2dd4bf;
}

.theme-cyan {
    --theme-background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --theme-primary: #0891b2;
    --theme-secondary: #06b6d4;
    --theme-accent: #22d3ee;
    --theme-question: linear-gradient(135deg, #67e8f9 0%, #cffafe 100%);
    --theme-success: #67e8f9;
    --theme-danger: #0e7490;
    --theme-info: #67e8f9;
    --theme-title: #155e75;
    --theme-progress: #67e8f9;
    --theme-score: #22d3ee;
}

.theme-sky {
    --theme-background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --theme-primary: #0284c7;
    --theme-secondary: #0ea5e9;
    --theme-accent: #38bdf8;
    --theme-question: linear-gradient(135deg, #7dd3fc 0%, #e0f2fe 100%);
    --theme-success: #7dd3fc;
    --theme-danger: #0369a1;
    --theme-info: #7dd3fc;
    --theme-title: #075985;
    --theme-progress: #7dd3fc;
    --theme-score: #38bdf8;
}

.theme-blue {
    --theme-background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --theme-primary: #2563eb;
    --theme-secondary: #3b82f6;
    --theme-accent: #60a5fa;
    --theme-question: linear-gradient(135deg, #93c5fd 0%, #dbeafe 100%);
    --theme-success: #93c5fd;
    --theme-danger: #1d4ed8;
    --theme-info: #93c5fd;
    --theme-title: #1e40af;
    --theme-progress: #93c5fd;
    --theme-score: #60a5fa;
}

.theme-indigo {
    --theme-background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --theme-primary: #4f46e5;
    --theme-secondary: #6366f1;
    --theme-accent: #818cf8;
    --theme-question: linear-gradient(135deg, #a5b4fc 0%, #e0e7ff 100%);
    --theme-success: #a5b4fc;
    --theme-danger: #4338ca;
    --theme-info: #a5b4fc;
    --theme-title: #3730a3;
    --theme-progress: #a5b4fc;
    --theme-score: #818cf8;
}

.theme-violet {
    --theme-background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --theme-primary: #7c3aed;
    --theme-secondary: #8b5cf6;
    --theme-accent: #a78bfa;
    --theme-question: linear-gradient(135deg, #c4b5fd 0%, #ede9fe 100%);
    --theme-success: #c4b5fd;
    --theme-danger: #6d28d9;
    --theme-info: #c4b5fd;
    --theme-title: #5b21b6;
    --theme-progress: #c4b5fd;
    --theme-score: #a78bfa;
}

.theme-purple {
    --theme-background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    --theme-primary: #9333ea;
    --theme-secondary: #a855f7;
    --theme-accent: #c084fc;
    --theme-question: linear-gradient(135deg, #d8b4fe 0%, #f3e8ff 100%);
    --theme-success: #d8b4fe;
    --theme-danger: #7e22ce;
    --theme-info: #d8b4fe;
    --theme-title: #6b21a8;
    --theme-progress: #d8b4fe;
    --theme-score: #c084fc;
}

.theme-fuchsia {
    --theme-background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
    --theme-primary: #c026d3;
    --theme-secondary: #d946ef;
    --theme-accent: #e879f9;
    --theme-question: linear-gradient(135deg, #f0abfc 0%, #fae8ff 100%);
    --theme-success: #f0abfc;
    --theme-danger: #a21caf;
    --theme-info: #f0abfc;
    --theme-title: #86198f;
    --theme-progress: #f0abfc;
    --theme-score: #e879f9;
}

.theme-pink {
    --theme-background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --theme-primary: #db2777;
    --theme-secondary: #ec4899;
    --theme-accent: #f472b6;
    --theme-question: linear-gradient(135deg, #f9a8d4 0%, #fce7f3 100%);
    --theme-success: #f9a8d4;
    --theme-danger: #be185d;
    --theme-info: #f9a8d4;
    --theme-title: #9d174d;
    --theme-progress: #f9a8d4;
    --theme-score: #f472b6;
}

.theme-rose {
    --theme-background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --theme-primary: #e11d48;
    --theme-secondary: #f43f5e;
    --theme-accent: #fb7185;
    --theme-question: linear-gradient(135deg, #fda4af 0%, #ffe4e6 100%);
    --theme-success: #fda4af;
    --theme-danger: #be123c;
    --theme-info: #fda4af;
    --theme-title: #9f1239;
    --theme-progress: #fda4af;
    --theme-score: #fb7185;
}

/* Base styles */
body {
    background: var(--theme-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Title styling */
.title.is-2 {
    color: var(--theme-title) !important;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem !important;
}

/* Progress bar */
.progress-info {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--theme-progress);
    border-radius: 15px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-timer {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Question styling */
.question-container {
    background: var(--theme-question);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.subtitle.is-3 {
    color: var(--theme-title) !important;
    font-family: 'Karla', sans-serif;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Dollar bill display */
.dollar-display {
    margin-bottom: 2rem;
}

.dollar-bill-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dollar-bill-container:hover {
    transform: translateY(-5px);
}

.dollar-bill-container img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

/* True/False Buttons */
.choices-section {
    margin-bottom: 2rem;
}

.true-false-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.true-false-btn {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    background: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.true-btn {
    color: #059669;
}

.false-btn {
    color: #dc2626;
}

.true-false-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.true-false-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.true-false-btn.selected {
    border-color: var(--theme-primary);
    background: var(--theme-accent);
    transform: scale(1.05);
}

.true-false-btn.correct {
    border-color: #22c55e !important;
    background: #dcfce7 !important;
    animation: pulse 0.5s ease-in-out;
}

.true-false-btn.incorrect {
    border-color: #ef4444 !important;
    background: #fee2e2 !important;
    animation: shake 0.5s ease-in-out;
}

.true-false-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Submit button */
#submit-btn {
    margin-top: 0.5rem;
}

/* Feedback message */
.feedback-message {
    margin: 2rem auto;
    max-width: 600px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: center;
    border-radius: 10px;
    padding: 1rem 2rem;
}

.feedback-message.is-success {
    background: var(--theme-success);
    color: var(--theme-title);
}

.feedback-message.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 10px;
    padding: 1rem 2rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button.is-primary {
    background: var(--theme-primary);
    color: white;
}

.button.is-primary:hover {
    background: var(--theme-secondary);
}

.button.is-info {
    background: var(--theme-info);
    color: var(--theme-title);
}

.button.is-info:hover {
    background: var(--theme-accent);
    color: white;
}

#next-btn-container {
    margin-bottom: 0.5rem;
}

/* Result screen */
.result-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

#final-score {
    color: var(--theme-score);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    margin: 1rem 0 !important;
}

.result-message {
    font-size: 1.5rem;
    color: var(--theme-title);
    margin: 2rem 0;
    font-family: 'Karla', sans-serif;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.correct-animation {
    animation: bounce 0.5s ease-in-out;
}

.incorrect-animation {
    animation: shake 0.5s ease-in-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .title.is-2 {
        font-size: 1.5rem !important;
    }
    
    .subtitle.is-3 {
        font-size: 1.25rem !important;
    }
    
    .dollar-bill-container img {
        max-width: 400px;
        width: 100%;
    }
    
    .game-container {
        padding: 1.5rem;
    }
    
    .question-container {
        padding: 1.5rem;
    }
    
    .dollar-bill-container {
        padding: 1.5rem;
    }
    
    .true-false-btn {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .true-false-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dollar-bill-container {
        padding: 1rem;
    }
    
    .dollar-bill-container img {
        max-width: 100%;
        width: 100%;
    }
    
    .true-false-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .true-false-container {
        gap: 1rem;
    }
}

/* Sticky footer styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
