/* ============================================
   Neon Vices - NEON CITY  |  Game Styles
   ============================================ */

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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Rajdhani', sans-serif;
    cursor: crosshair;
    user-select: none;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1a2e 70%, #0a0a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
    0%,100% { background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1a2e 70%, #0a0a1a 100%); }
    50% { background: linear-gradient(135deg, #0a0a1a 0%, #2a0a3e 30%, #0a2a3e 70%, #0a0a1a 100%); }
}

.loading-content {
    text-align: center;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(180deg, #ff6ec7 0%, #ff3399 40%, #ff1a8c 60%, #cc0066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 110, 199, 0.5));
    letter-spacing: 15px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%,100% { filter: drop-shadow(0 0 30px rgba(255, 110, 199, 0.5)); }
    50% { filter: drop-shadow(0 0 60px rgba(255, 110, 199, 0.8)); }
}

.game-subtitle, .menu-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: #00d4ff;
    letter-spacing: 20px;
    margin-top: -10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.loading-bar-container {
    width: 400px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 40px auto 20px;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6ec7, #00d4ff);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
}

.loading-text {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Main Menu */
#main-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 900;
}

.menu-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1a2e 70%, #0a0a1a 100%);
}

.menu-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 1;
}

.menu-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(180deg, #ff6ec7 0%, #ff3399 40%, #ff1a8c 60%, #cc0066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255, 110, 199, 0.6));
    letter-spacing: 20px;
    animation: titleGlow 2s ease-in-out infinite;
}

.menu-buttons {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    padding: 15px 60px;
    background: transparent;
    border: 1px solid rgba(255, 110, 199, 0.3);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 110, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover {
    border-color: #ff6ec7;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.2), inset 0 0 20px rgba(255, 110, 199, 0.1);
}

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

/* Controls Panel */
#controls-panel {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(255, 110, 199, 0.3);
    padding: 40px;
    min-width: 400px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

#controls-panel h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6ec7;
    font-size: 24px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    text-align: center;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.key {
    font-family: 'Orbitron', sans-serif;
    background: rgba(255, 110, 199, 0.15);
    border: 1px solid rgba(255, 110, 199, 0.3);
    padding: 4px 12px;
    font-size: 12px;
    color: #ff6ec7;
    letter-spacing: 2px;
}

/* Game Canvas */
#game-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
}

/* HUD */
#hud {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
}

#hud-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

#wanted-stars {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

#wanted-stars .star {
    color: rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    text-shadow: none;
}

#wanted-stars .star.active {
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.8), 0 0 20px rgba(255, 51, 51, 0.4);
    animation: starPulse 0.5s ease-in-out infinite;
}

@keyframes starPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#money {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: #44ff44;
    text-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
    letter-spacing: 2px;
}

#hud-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

#health-bar-container {
    width: 200px;
    height: 8px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
    overflow: hidden;
}

#health-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff3333, #ff6666);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

#armor-bar-container {
    width: 200px;
    height: 6px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

#armor-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4488ff, #66aaff);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(68, 136, 255, 0.5);
}

/* Minimap */
#minimap-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.7);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#minimap-canvas {
    width: 100%;
    height: 100%;
}

/* Mission Text */
#mission-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 10px 30px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    border-left: 3px solid #ff6ec7;
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* Notification */
#notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 110, 199, 0.8);
    letter-spacing: 5px;
    animation: notifFade 3s ease-in-out forwards;
    text-align: center;
}

@keyframes notifFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

/* Speed Display */
#speed-display {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

#speed-value {
    font-size: 36px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Pause Menu */
#pause-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 200;
}

.pause-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.pause-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 1;
}

.pause-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: #ff6ec7;
    letter-spacing: 10px;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(255, 110, 199, 0.5);
}

.pause-content .menu-btn {
    pointer-events: all;
}
