/* Neon Fragged - Cyberpunk FPS Styles */

/* Override framework defaults for FPS */
#game-container {
    background: #000 !important;
    position: relative;
    overflow: hidden;
    cursor: none;
}

#game-canvas {
    display: block;
    image-rendering: pixelated;
}

/* ==================== MENU OVERLAY ==================== */
.nf-menu {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
}

.nf-menu h1 {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00aaff, 0 0 60px #0066ff;
    margin-bottom: 8px;
    animation: titlePulse 2s ease-in-out infinite;
}

.nf-menu .nf-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #ff00ff;
    letter-spacing: 4px;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 40px;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; text-shadow: 0 0 30px #00ffff, 0 0 60px #00aaff; }
}

.nf-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

.nf-btn {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 12px 24px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.2s;
}

.nf-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.nf-btn-magenta {
    border-color: #ff00ff;
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.08);
}

.nf-btn-magenta:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3), inset 0 0 15px rgba(255, 0, 255, 0.1);
}

.nf-btn-green {
    border-color: #00ff66;
    color: #00ff66;
    background: rgba(0, 255, 102, 0.08);
}

.nf-btn-green:hover {
    background: rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3), inset 0 0 15px rgba(0, 255, 102, 0.1);
}

/* ==================== MAP SELECT ==================== */
.nf-map-select {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.nf-map-option {
    padding: 12px 16px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.03);
    color: #aaa;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-align: center;
    min-width: 120px;
    transition: all 0.2s;
}

.nf-map-option:hover,
.nf-map-option.selected {
    border-color: #00ffff;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.08);
}

/* ==================== HUD OVERLAYS ==================== */
.nf-hud {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 50;
}

.nf-hud * {
    font-family: 'Courier New', monospace;
}

/* Health bar */
.nf-health {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.nf-health-bar {
    width: 180px;
    height: 16px;
    border: 1px solid #00ffff;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.nf-health-fill {
    height: 100%;
    background: #00ffff;
    transition: width 0.2s;
    box-shadow: 0 0 8px #00ffff;
}

.nf-health-fill.low {
    background: #ff3333;
    box-shadow: 0 0 8px #ff3333;
}

.nf-health-text {
    font-size: 11px;
    color: #00ffff;
    margin-bottom: 2px;
}

/* Ammo counter */
.nf-ammo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    text-align: right;
}

.nf-ammo-count {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 10px #00ffff;
    line-height: 1;
}

.nf-ammo-count.infinite::after {
    content: '\221E';
}

.nf-ammo-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Weapon indicator */
.nf-weapon {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.nf-weapon-name {
    font-size: 13px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #00ffff;
}

/* Kill feed */
.nf-killfeed {
    position: absolute;
    top: 144px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 280px;
}

.nf-killfeed-entry {
    font-size: 12px;
    color: #ddd;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    opacity: 1;
    transition: opacity 0.5s;
}

.nf-killfeed-entry .killer {
    color: #00ffff;
}

.nf-killfeed-entry .victim {
    color: #ff6666;
}

/* Scoreboard */
.nf-scoreboard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 20, 0.9);
    border: 1px solid #00ffff;
    padding: 20px;
    min-width: 400px;
    display: none;
    z-index: 60;
}

.nf-scoreboard.visible {
    display: block;
}

.nf-scoreboard h2 {
    font-size: 18px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 10px #00ffff;
}

.nf-scoreboard table {
    width: 100%;
    border-collapse: collapse;
}

.nf-scoreboard th {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.nf-scoreboard td {
    color: #ddd;
    font-size: 14px;
    padding: 6px 12px;
    border-bottom: 1px solid #1a1a1a;
}

.nf-scoreboard tr.local td {
    color: #00ffff;
}

/* Damage flash */
.nf-damage-flash {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 0, 0, 0.3));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.nf-damage-flash.active {
    opacity: 1;
}

/* Death overlay */
.nf-death-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(80, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 55;
    display: none;
}

.nf-death-overlay.visible {
    display: flex;
}

.nf-death-overlay .nf-death-text {
    font-size: 36px;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 20px #ff0000;
}

.nf-death-overlay .nf-respawn-timer {
    font-size: 16px;
    color: #ff6666;
    margin-top: 8px;
}

/* Game over screen */
.nf-gameover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 70;
    display: none;
}

.nf-gameover.visible {
    display: flex;
}

.nf-gameover h2 {
    font-size: 36px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #0066ff;
    margin-bottom: 24px;
}

.nf-gameover .nf-winner {
    font-size: 20px;
    color: #ff00ff;
    margin-bottom: 24px;
    text-shadow: 0 0 10px #ff00ff;
}

/* ==================== TOUCH CONTROLS ==================== */
.nf-touch-controls {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 40;
    display: none;
}

.nf-touch-controls.active {
    display: block;
}

.nf-joystick-zone {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: auto;
}

.nf-aim-zone {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: auto;
}

.nf-joystick-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: none;
}

.nf-joystick-knob {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: none;
}

.nf-touch-fire {
    position: absolute;
    bottom: 80px;
    right: 30px;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 0, 255, 0.4);
    border-radius: 50%;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255, 0, 255, 0.6);
    text-transform: uppercase;
}

.nf-touch-weapon {
    position: absolute;
    bottom: 20px;
    right: 110px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    pointer-events: auto;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
}

/* ==================== NOTIFICATION ==================== */
.nf-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 55;
}

.nf-notification.visible {
    opacity: 1;
}

/* ==================== MINIMAP ==================== */
.nf-minimap {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* ==================== KILL TRACKER ==================== */
.nf-kills-tracker {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: none;
}

.nf-kills-tracker #nf-kills-val {
    font-size: 24px;
    font-weight: bold;
}

/* ==================== CLICK PROMPT ==================== */
.nf-click-prompt {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #ffcc00;
    text-shadow: 0 0 12px #ffcc00;
    text-transform: uppercase;
    letter-spacing: 4px;
    pointer-events: none;
    animation: promptPulse 1.5s ease-in-out infinite;
}

@keyframes promptPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==================== MATCH BRIEFING ==================== */
.nf-briefing {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 80;
    cursor: pointer;
    transition: opacity 0.4s;
}

.nf-briefing.fading {
    opacity: 0;
}

.nf-briefing-title {
    font-family: 'Courier New', monospace;
    font-size: 42px;
    font-weight: 900;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #0066ff;
    margin-bottom: 16px;
}

.nf-briefing-obj {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.nf-briefing-controls {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.nf-briefing-start {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px #ffcc00;
    animation: promptPulse 1.5s ease-in-out infinite;
}
