/* ============================================
   ASTEROID DESTROYER - Game-specific Styles
   ============================================ */

/* Override background for space theme */
body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f2e 100%);
}

/* Back Link styling is now in shared/css/game-overlays.css */

/* Override UI overlay position */
.ui-overlay {
    top: 60px;
}

/* Wave Info */
.wave-info {
    font-size: 0.9rem;
    color: #4ecdc4;
    margin-top: 5px;
}

/* Station Health Bar */
.station-health {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

.health-bar-bg {
    width: 200px;
    height: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.health-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 8px;
}

.health-bar-fill.warning {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
}

.health-bar-fill.critical {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    animation: pulse-health 0.5s ease-in-out infinite;
}

@keyframes pulse-health {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.health-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* Combo Display */
.combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.combo-display.visible {
    opacity: 1;
    animation: combo-pop 0.3s ease-out;
}

@keyframes combo-pop {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.combo-display.super {
    color: #ff6b00;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
}

.combo-display.mega {
    color: #ff0066;
    text-shadow: 0 0 40px rgba(255, 0, 102, 0.8);
    animation: combo-mega 0.5s ease-out;
}

@keyframes combo-mega {
    0% { transform: translate(-50%, -50%) scale(0.5) rotate(-10deg); }
    25% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(-3deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

/* Power-up Indicators */
.powerup-indicators {
    position: fixed;
    top: 150px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.powerup-indicator {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid;
}

.powerup-indicator.shield {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.powerup-indicator.mega-laser {
    border-color: #ff6b00;
    color: #ff6b00;
}

/* Wave Announcement */
.wave-announcement {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
}

.wave-announcement.visible {
    animation: wave-announce 2s ease-out forwards;
}

@keyframes wave-announce {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.wave-announcement.complete {
    color: #2ecc71;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.8);
}

/* Game Over Overlay */
.game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 200;
}

.game-over-overlay.visible {
    display: block;
}

.game-over-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-over-title {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    text-align: center;
}

.game-over-stats {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

.game-over-stats p {
    margin: 10px 0;
}

.game-over-stats span {
    color: #4ecdc4;
    font-weight: bold;
}

.game-over-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    color: #fff;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-over-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

/* Pause Overlay */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.pause-overlay.visible {
    display: flex;
}

.pause-title {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 40px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ui-overlay {
        top: 50px;
    }

    .combo-display {
        font-size: 2rem;
    }

    .wave-announcement {
        font-size: 2rem;
    }

    .game-over-title,
    .pause-title {
        font-size: 2.5rem;
    }

    .game-over-stats {
        font-size: 1.2rem;
    }

    .game-over-btn {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .health-bar-bg {
        width: 150px;
    }

    .powerup-indicators {
        top: 120px;
        left: 10px;
    }

    .powerup-indicator {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .combo-display {
        font-size: 1.5rem;
    }

    .health-bar-bg {
        width: 120px;
        height: 12px;
    }

    .game-over-title,
    .pause-title {
        font-size: 2rem;
    }

    .game-over-stats {
        font-size: 1rem;
    }

    .game-over-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
