/* Classic Muscle Cars Quiz - Light Theme Stylesheet */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    min-height: 100vh;
    color: #1e293b;
}

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

/* Animations */
@keyframes coin-fall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(360deg) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoom-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(251, 191, 36, 0.5);
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }
    50% {
        border-color: rgba(251, 191, 36, 1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    }
}

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Utility Classes */
.animate-slide-up { animation: slide-up 0.5s ease-out forwards; }
.animate-zoom-in { animation: zoom-in 0.6s ease-out forwards; }
.animate-pulse-border { animation: pulse-border 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-fade-in { animation: fade-in 0.8s ease-out; }
.animate-bounce { animation: bounce 1s ease-in-out infinite; }
.animate-coin-fall { animation: coin-fall 2.5s ease-in forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Ad Spaces */
.ad-space {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ad-space p {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ad-placeholder {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stats-grid-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.stat-item.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.stat-label {
    font-size: 0.7rem;
    color: #78350f;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-item.blue .stat-label {
    color: #1e3a8a;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-item.blue .stat-value {
    color: #1e40af;
}

/* Header */
.quiz-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.coin-display, .question-counter, .score-display {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coin-display {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 1.25rem;
    border: 2px solid #fbbf24;
}

.question-counter {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.875rem;
    border: 2px solid #cbd5e1;
}

.score-display {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    font-size: 1rem;
    border: 2px solid #3b82f6;
}

.progress-bar-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease-out;
}

/* Lifelines */
.lifelines-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lifeline-btn {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #cbd5e1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lifeline-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.lifeline-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.lifeline-btn.active {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: #1e40af;
}

.lifeline-icon {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Timer */
.timer-container {
    text-align: center;
    margin-bottom: 1rem;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #991b1b;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.timer.warning {
    animation: pulse 0.5s ease-in-out infinite;
    background: linear-gradient(135deg, #fecaca, #fca5a5);
}

/* Question Card */
.question-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 3px solid #fbbf24;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.image-loader {
    position: absolute;
    inset: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #fbbf24;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(1);
}

.car-image.loaded {
    opacity: 1;
}

.car-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #1e293b;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #cbd5e1;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #1e293b;
    font-weight: bold;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-btn:not(:disabled):hover {
    transform: translateX(8px) scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.option-btn.correct {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
}

.option-btn.wrong {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.option-btn.hidden-option {
    opacity: 0.2;
    pointer-events: none;
    text-decoration: line-through;
}

/* Result Message */
.result-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-message.correct {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
}

.result-message.wrong {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
}

.result-title {
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.result-message.correct .result-title {
    color: #065f46;
}

.result-message.wrong .result-title {
    color: #991b1b;
}

.result-fact {
    color: #374151;
    line-height: 1.75;
    font-size: 0.875rem;
}

/* Next Button */
.next-button-container {
    text-align: center;
    margin-bottom: 1rem;
}

.next-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.next-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Info Sections */
.info-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title.yellow { color: #f59e0b; }
.info-title.red { color: #ef4444; }
.info-title.blue { color: #3b82f6; }

.info-content {
    color: #475569;
    line-height: 1.75;
    font-size: 0.875rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    gap: 0.5rem;
}

.info-number {
    color: #f59e0b;
    font-weight: bold;
    font-size: 1rem;
}

/* Times Played */
.times-played {
    text-align: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.times-played-text {
    font-size: 0.875rem;
    color: #78350f;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.times-played-count {
    font-size: 1.75rem;
    font-weight: 900;
    color: #92400e;
}

/* Badges */
.badges-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.badge {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #d1d5d7;
    opacity: 0.5;
    transition: all 0.3s;
}

.badge.unlocked {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.badge-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: #374151;
}

.badge.unlocked .badge-name {
    color: #92400e;
}

/* Landing Page */
.landing-container {
    text-align: center;
    padding: 2rem 1rem;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.start-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 1.25rem 3rem;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    text-decoration: none;
    display: inline-block;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Results Page */
.results-container {
    text-align: center;
    padding: 1rem;
}

.results-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(to right, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.results-message {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.stats-container {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    padding: 2px;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.stats-inner {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 2px solid #3b82f6;
}

.stat-card.yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
}

.stat-card.purple {
    background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
    border: 2px solid #a855f7;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.restart-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.restart-btn:hover {
    transform: scale(1.05);
}

/* Coin Animation */
.coin-animation-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.congrats-banner {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.congrats-content {
    background: linear-gradient(to right, #fef3c7, #fde68a, #fef3c7);
    color: #92400e;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 4px solid #fbbf24;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.falling-coin {
    position: absolute;
    font-size: 2.5rem;
    top: -100px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    padding: 3rem 1rem 1.5rem;
    margin-top: 3rem;
    border-top: 3px solid #fbbf24;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    color: #fbbf24;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .option-btn {
        font-size: 1rem;
        padding: 1.25rem;
    }
    
    .info-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-top {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .badges-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .landing-title {
        font-size: 3.5rem;
    }
    
    .results-emoji {
        font-size: 5rem;
    }
    
    .results-title {
        font-size: 3rem;
    }
    
    .ad-placeholder {
        padding: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}