/* Theme variables */
:root {
    --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;
}

/* 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;
    padding-bottom: 1rem !important;
    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: 3rem;
    text-align: center;
}

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

/* Coins display */
.coins-display {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.coin-option {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1rem;
    border-radius: 15px;
    background: white;
    border: 3px solid transparent;
}

.coin-option:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-accent);
}

.coin-option.selected {
    border-color: var(--theme-primary);
    background: #f0f8ff;
    transform: scale(1.05);
}

.coin-option.correct {
    border-color: #22c55e;
    background: #dcfce7;
}

.coin-option.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
}

.coin-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.coin-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* 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;
}

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

.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;
}

/* 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); }
}

.coin-option:hover:not(.disabled) {
    animation: bounce 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.5rem !important;
    }
    
    .coins-display {
        gap: 1.5rem;
    }
    
    .coin-image {
        width: 140px;
        height: 140px;
    }
    
    .coin-option {
        padding: 0.75rem;
    }
    
    .game-container {
        padding: 1.5rem;
    }
    
    .question-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .coins-display {
        gap: 1rem;
    }
    
    .coin-image {
        width: 130px;
        height: 130px;
    }
    
    .coin-option {
        padding: 0.5rem;
    }
}

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