/* Firefighter Hero - Game Specific Styles */

/* Night sky background */
.game-container {
    background: linear-gradient(180deg,
        #0a0a1a 0%,
        #1a1a3a 40%,
        #2a2a4a 100%);
}

/* Game Title */
.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #ff4444;
    text-shadow:
        0 0 10px rgba(255, 100, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
}

/* Lives/Missed Display */
.lives-display {
    position: absolute;
    top: 140px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: #ff6666;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 100;
}

.lives-display .life-icon {
    font-size: 1.4rem;
}

.lives-display .life-count {
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 5px;
}

/* Water Indicator */
.water-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #44aaff;
    text-shadow:
        0 0 20px rgba(68, 170, 255, 0.8),
        0 0 40px rgba(68, 170, 255, 0.6);
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 100;
    pointer-events: none;
}

.water-indicator.visible {
    opacity: 1;
    animation: waterPulse 0.3s ease-in-out infinite;
}

@keyframes waterPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Wave Info */
.wave-info {
    font-size: 0.9rem;
    color: #ffaa44;
    margin-top: 5px;
}

/* Score Panel styling */
.score-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 100, 0, 0.3);
}

.score-value {
    color: #44ff44;
    text-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #ddd;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 100;
}

/* Game Over Overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-over-overlay.visible {
    display: flex;
}

.game-over-title {
    font-size: 3.5rem;
    color: #ff4444;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    margin-bottom: 30px;
}

.final-score, .final-wave {
    font-size: 1.6rem;
    color: #ffaa44;
    margin: 10px 0;
}

/* Wave Complete Overlay */
.wave-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 0, 0.7);
    display: none;
    z-index: 150;
}

.wave-complete-overlay.visible {
    display: flex;
    animation: waveFlash 0.5s ease-out;
}

.wave-complete-content {
    width: 100%;
    text-align: center;
    padding-top: 35%;
}

@keyframes waveFlash {
    0% { background: rgba(100, 255, 100, 0.5); }
    100% { background: rgba(0, 50, 0, 0.7); }
}

.wave-complete-title {
    font-size: 3rem;
    color: #44ff44;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    margin-bottom: 20px;
}

.wave-stats {
    font-size: 1.4rem;
    color: #aaffaa;
}

/* Message popup */
.message-popup {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 150;
    pointer-events: none;
}

.message-popup.visible {
    opacity: 1;
}

.message-popup.green {
    color: #44ff44;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.message-popup.blue {
    color: #44aaff;
    text-shadow: 0 0 15px rgba(68, 170, 255, 0.8);
}

.message-popup.red {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.5rem;
    }

    .instructions {
        font-size: 0.65rem;
        padding: 8px 15px;
    }

    .water-indicator {
        font-size: 1.5rem;
    }

    .game-over-title {
        font-size: 2.5rem;
    }

    .wave-complete-title {
        font-size: 2rem;
    }

    .lives-display {
        font-size: 1rem;
        top: 110px;
    }
}
