/**
 * Time Master - Styles
 * Sky & Sunset Adventure Theme
 * Colors: Sky blue (#87CEEB), Sunset orange (#FF8C42), Cloud white, Golden yellow
 */

/* ============================================================================
   GAME CONTAINER - SKY & SUNSET THEME
   ============================================================================ */

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #FFB84D 50%, #FF8C42 100%);
    font-family: 'Nunito', 'Comic Sans MS', sans-serif;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Footer positioning */
.game-footer {
    margin-top: auto;
}

.time-mascot {
    font-size: 4rem;
    margin: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

/* ============================================================================
   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: #FF8C42;
}

.score-display {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
}

/* ============================================================================
   DIFFICULTY SELECTION - SKY THEMED CARDS
   ============================================================================ */

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

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

.time-difficulty-card {
    background: white;
    border: 4px solid #87CEEB;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.3);
    min-width: 200px;
    display: inline-block;
}

.time-difficulty-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4);
    border-color: #FF8C42;
}

.time-difficulty-card.easy {
    border-color: #81C784;
}

.time-difficulty-card.medium {
    border-color: #FFD700;
}

.time-difficulty-card.hard {
    border-color: #FF8C42;
}

/* ============================================================================
   CLOCK CONTAINER & ANALOG CLOCK
   ============================================================================ */

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.time-period {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FF8C42;
    background: #FFE4B5;
    padding: 10px 30px;
    border-radius: 15px;
    border: 3px solid #FF8C42;
}

.analog-clock {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* ============================================================================
   ELAPSED TIME DISPLAY
   ============================================================================ */

.elapsed-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 30px 0;
}

.elapsed-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #F0F8FF;
    border-radius: 15px;
    border: 3px solid #87CEEB;
    min-width: 150px;
}

.elapsed-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
}

.elapsed-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C42;
}

.elapsed-arrow {
    font-size: 2.5rem;
    color: #FFD700;
}

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

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

.question-text {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

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

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

.time-choice {
    font-size: 1.8rem !important;
    padding: 20px 30px !important;
    background: white !important;
    border: 4px solid #87CEEB !important;
}

.time-choice:hover {
    background: #F0F8FF !important;
    border-color: #FF8C42 !important;
}

/* ============================================================================
   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: #FF8C42;
}

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

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

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

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

@media (max-width: 768px) {
    .question-text {
        font-size: 1.3rem;
    }

    .analog-clock {
        width: 220px;
        height: 220px;
    }

    .time-period {
        font-size: 1.5rem;
        padding: 8px 20px;
    }

    .time-choice {
        font-size: 1.4rem !important;
        padding: 15px 20px !important;
    }

    .answer-choices {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .elapsed-time-display {
        flex-direction: column;
        gap: 15px;
    }

    .elapsed-arrow {
        transform: rotate(90deg);
    }

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

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

    .results-summary {
        gap: 20px;
    }

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

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

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

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