/* Nightfall Protocol - Modern Zombie Shooter Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow: hidden;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    border: 2px solid #00ffff;
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    cursor: crosshair;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

#mission-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #00ffff;
    backdrop-filter: blur(5px);
}

#mission-info h3 {
    color: #00ffff;
    margin-bottom: 5px;
    font-size: 16px;
}

#objective {
    font-size: 14px;
    color: #cccccc;
}

#team-status {
    display: flex;
    gap: 15px;
}

.team-member {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.team-member span {
    display: block;
    font-size: 12px;
    color: #00ffff;
    margin-bottom: 5px;
    font-weight: bold;
}

.health-bar {
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin: 5px auto;
    overflow: hidden;
}

.health-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #44ff44);
    transition: width 0.3s ease;
}

.ammo-count {
    font-size: 10px;
    color: #ffaa00;
    margin-top: 3px;
}

#action-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.action-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.action-btn:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-btn.active {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.action-btn .icon {
    font-size: 18px;
}

.action-btn .label {
    font-size: 10px;
    font-weight: bold;
}

#controls-help {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 12px;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

#controls-help h4 {
    color: #00ffff;
    margin-bottom: 5px;
}

#controls-help p {
    color: #cccccc;
}

/* Game states */
.game-paused #game-canvas {
    filter: blur(2px);
}

.game-paused::after {
    content: "PAUSED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    z-index: 100;
}

/* Responsive design */
@media (max-width: 1280px) {
    #game-canvas {
        width: 95vw;
        height: 60vh;
    }
}

@media (max-width: 768px) {
    #hud {
        flex-direction: column;
        gap: 10px;
    }
    
    #team-status {
        justify-content: center;
    }
    
    .action-btn {
        padding: 8px;
        min-width: 50px;
    }
    
    .action-btn .icon {
        font-size: 16px;
    }
    
    .action-btn .label {
        font-size: 8px;
    }
}