/* ===== QUAKE 1 HUD - Actor Arsenal Style with Real Quake Texture ===== */
/* Uses actual extracted texture from Quake 1 status bar */

/* Global crosshair cursor for FPS feel */
*, *::before, *::after { cursor: crosshair !important; }
html, body { cursor: crosshair !important; }

/* Main HUD container - full width with authentic Quake metal texture */
.quake-hud {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Real Quake metal texture extracted from game */
    background-image: url('../images/quake-hud-texture.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    border-top: 4px solid #7b6b4b;
    border-bottom: 4px solid #2a1a08;
    box-shadow:
        inset 0 2px 0 #8a7a5a,
        inset 0 -2px 0 #1a0a00,
        0 -4px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Press Start 2P', cursive;
    padding: 0;
    gap: 0;
    image-rendering: pixelated;
}

/* HUD Sections - recessed metal panels */
.hud-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid #6a5540;
    border-right: 3px solid #2a1a08;
    border-top: 2px solid #7a6550;
    border-bottom: 2px solid #1a0a00;
    padding: 0 1.5rem;
    position: relative;
}

.hud-section::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(180deg, rgba(40,30,15,0.8) 0%, rgba(20,15,5,0.9) 100%);
    border: 2px solid #1a0a00;
    border-radius: 2px;
    z-index: -1;
}

/* Stat container */
.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

/* HUD values - big numbers */
.hud-value {
    font-size: 1.8rem;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
    letter-spacing: 2px;
}

/* HUD labels - small text below numbers */
.hud-label {
    font-size: 0.5rem;
    color: #8a7560;
    text-shadow: 1px 1px 0 #000;
    text-transform: uppercase;
}

/* Ranger face container - center */
.hud-face-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(180deg, #3a2510 0%, #1a0a00 100%);
    border: 3px solid #5a4530;
    border-bottom-color: #1a0a00;
    border-right-color: #1a0a00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8);
}

.hud-face {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
}

/* Quake-style colors for each stat */
.hud-ammo, .hud-kills { color: #ffcc00; }
.hud-health { color: #ff4444; }
.hud-armor { color: #44ff88; }
.hud-zaps { color: #ff8800; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .quake-hud {
        height: 60px;
    }
    .hud-section {
        padding: 0 0.8rem;
    }
    .hud-face-container {
        width: 50px;
        height: 50px;
        margin: 0 0.5rem;
    }
    .hud-face {
        width: 44px;
        height: 44px;
    }
    .hud-value {
        font-size: 1.2rem;
    }
    .hud-label {
        font-size: 0.4rem;
    }
}

@media (max-width: 480px) {
    .quake-hud {
        height: 52px;
    }
    .hud-section {
        padding: 0 0.5rem;
    }
    .hud-value {
        font-size: 1rem;
    }
    .hud-face-container {
        width: 44px;
        height: 44px;
        margin: 0 0.3rem;
    }
    .hud-face {
        width: 38px;
        height: 38px;
    }
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    bottom: 90px;
    right: 12px;
    z-index: 10000;
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #3f3013, #1f170b);
    color: #9f7f33;
    border: 2px solid #5b4b2b;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 1px 1px 0 #6b5b3b, 2px 2px 0 #000;
}

.music-btn:hover {
    border-color: #9f7f33;
    color: #efdf17;
}

.music-btn.playing {
    border-color: #efdf17;
    color: #efdf17;
    animation: musicGlow 2s ease-in-out infinite;
}

.music-icon {
    font-size: 1rem;
}

@keyframes musicGlow {
    0%, 100% { box-shadow: inset 1px 1px 0 #6b5b3b, 2px 2px 0 #000; }
    50% { box-shadow: inset 1px 1px 0 #6b5b3b, 2px 2px 0 #000, 0 0 12px #efdf17; }
}

/* ===== DIFFICULTY SELECTOR ===== */
.difficulty-selector {
    position: relative;
    display: inline-block;
}

.difficulty-btn {
    background: transparent;
    border: 1px solid #cf6b2f;
    color: #cf6b2f;
    padding: 0.4rem 0.8rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.difficulty-btn:hover {
    background: #cf6b2f;
    color: #000;
}

.difficulty-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    border: 1px solid #cf6b2f;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 10001;
}

.difficulty-menu.show {
    display: flex;
}

.difficulty-option {
    padding: 0.8rem;
    color: #888;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    transition: all 0.2s;
}

.difficulty-option:hover {
    background: rgba(143, 75, 35, 0.2);
    color: #cf6b2f;
}

.difficulty-option.active {
    color: #cf6b2f;
    background: rgba(143, 75, 35, 0.3);
}
