/* VOID HUNTER - Space Shooter Styles */

:root {
    --primary: #00f5d4;
    --secondary: #7b2cbf;
    --accent: #ff6b6b;
    --warning: #ffd93d;
    --bg-deep: #0a0a0f;
    --bg-surface: #12121a;
    --text-primary: #e8e8e8;
    --text-dim: #6b6b7b;
    --glow-cyan: 0 0 20px rgba(0, 245, 212, 0.5), 0 0 40px rgba(0, 245, 212, 0.3);
    --glow-purple: 0 0 20px rgba(123, 44, 191, 0.5), 0 0 40px rgba(123, 44, 191, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-deep);
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-primary);
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.98) 100%);
    z-index: 100;
    animation: fadeIn 0.5s ease-out;
}

.overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Title Styles */
.title-container {
    text-align: center;
    margin-bottom: 60px;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--primary) 0%, #00b894 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-cyan);
    animation: titlePulse 3s ease-in-out infinite;
    position: relative;
}

.game-title::after {
    content: 'VOID HUNTER';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0.5;
    filter: blur(30px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

@keyframes titlePulse {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    letter-spacing: 1em;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Instructions */
.instructions {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.key {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    padding: 12px 20px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 8px;
    color: var(--primary);
    letter-spacing: 0.2em;
}

.action {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Neon Button */
.neon-btn {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    padding: 18px 60px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.4), transparent);
    transition: left 0.5s ease;
}

.neon-btn:hover {
    background: rgba(0, 245, 212, 0.15);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:active {
    transform: translateY(0);
}

/* Game Over Screen */
.game-over-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    margin-bottom: 40px;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.score-label {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}

.score-value {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: var(--glow-cyan);
}

.stats {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 50;
}

#hud.hidden {
    display: none;
}

.hud-left, .hud-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hud-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hud-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    display: block;
    margin-bottom: 5px;
}

/* Health & Boost Bars */
.health-container, .boost-container {
    width: 200px;
}

.health-bar, .boost-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8e8e);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.boost-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--secondary), #9d4edd);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.5);
}

/* Score Display */
.score-display {
    text-align: center;
}

#score {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Wave & Combo */
.wave-display, .combo-display {
    text-align: right;
}

#wave {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--warning);
}

#combo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.1s ease;
}

#combo.pulse {
    transform: scale(1.3);
    color: var(--warning);
}

/* Scanlines Effect */
#game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
    .instructions {
        flex-direction: column;
        gap: 20px;
    }

    .health-container, .boost-container {
        width: 120px;
    }

    #score {
        font-size: 1.8rem;
    }

    .stats {
        gap: 30px;
    }
}

