/**
 * Division Dash - Jungle Adventure Theme
 *
 * Jungle-themed division game with explorer aesthetic
 * Builds on top of kid-friendly-theme.css
 *
 * Color Palette:
 * - Jungle Green: #2D5016
 * - Vine Gold: #D4AF37
 * - Leaf Lime: #7CB342
 * - Earth Brown: #6D4C41
 */

/* ============================================================================
   THEME BACKGROUND OVERRIDE
   ============================================================================ */

body {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2B 50%, #7CB342 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================================
   FOOTER POSITIONING
   ============================================================================ */

.game-footer {
    margin-top: auto;
}

/* ============================================================================
   GAME HEADER
   ============================================================================ */

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.question-counter {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7CB342;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.score-display {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ============================================================================
   DIFFICULTY SELECTION
   ============================================================================ */

.difficulty-selection {
    margin: 40px 0;
}

.difficulty-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* ============================================================================
   PROBLEM DISPLAY
   ============================================================================ */

.problem-display {
    margin: 40px 0;
}

.division-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #7F8C8D;
    margin-top: 20px;
    font-style: italic;
}

.division-hint span {
    font-weight: 700;
    color: #7CB342;
}

/* ============================================================================
   ANSWER CHOICES
   ============================================================================ */

.answer-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 30px auto;
}

/* ============================================================================
   FEEDBACK AREA
   ============================================================================ */

.feedback-area {
    margin: 30px 0;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================================================
   RESULTS SCREEN
   ============================================================================ */

.results-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.result-stat {
    text-align: center;
}

.stat-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2D5016;
}

.stat-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #7F8C8D;
    margin-top: 10px;
}

/* ============================================================================
   MISSED PROBLEMS
   ============================================================================ */

.missed-problems {
    background: linear-gradient(135deg, #F0F4EC 0%, #E8F5E9 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 3px solid #7CB342;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.1);
}

.missed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.missed-item {
    background: white;
    border: 2px solid #6D4C41;
    border-radius: 15px;
    padding: 15px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2D5016;
    text-align: center;
    box-shadow: 0 2px 8px rgba(109, 76, 65, 0.15);
}

/* ============================================================================
   GAME ACTIONS
   ============================================================================ */

.game-actions, .results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.practice-mode-option {
    margin: 30px 0;
    text-align: center;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .answer-choices {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-header {
        font-size: 1rem;
    }

    .question-counter, .score-display {
        font-size: 1rem;
    }

    .results-summary {
        gap: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .missed-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .difficulty-options {
        flex-direction: column;
        align-items: center;
    }

    .division-hint {
        font-size: 1rem;
    }
}

/* ============================================================================
   BUTTON OVERRIDES
   ============================================================================ */

.btn-small {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
}
