/* ============================================
   🎖️ TACTICAL MILITARY HUD - FUTURISTIC THEME (FINAL FIX)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    /* Tactical Military Colors */
    --tactical-bg: #050a05;
    --tactical-panel: #0a140a;
    --tactical-border: #1a2e1a;
    
    /* Neon Accents */
    --neon-green: #00ff41;       /* Phosphor Green */
    --neon-green-dim: rgba(0, 255, 65, 0.3);
    --neon-amber: #ff9900;       /* Tactical Warning */
    --neon-red: #ff3333;         /* Critical Alert */
    
    /* Text */
    --text-primary: #d1fae5;
    --text-secondary: #6ee7b7;
    
    /* Typography */
    --font-tech: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Glow Effects */
    --glow-green: 0 0 15px rgba(0, 255, 65, 0.4), 0 0 30px rgba(0, 255, 65, 0.1);
    --glow-amber: 0 0 15px rgba(255, 153, 0, 0.4);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
body.futuristic {
    margin: 0;
    padding: 0;
    font-family: var(--font-ui);
    background-color: var(--tactical-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Tactical Grid Background */
body.futuristic::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--neon-green-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-green-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Scan Line Effect */
body.futuristic::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 65, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
body.futuristic > .app-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.futuristic h1, .futuristic h2, .futuristic h3 {
    font-family: var(--font-tech);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.futuristic h1 {
    font-size: 1.4rem;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.futuristic h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.futuristic .mono {
    font-family: var(--font-mono);
    color: var(--neon-green);
}

/* ============================================
   HEADER
   ============================================ */
.futuristic .app-header {
    background: var(--tactical-panel);
    border: 1px solid var(--neon-green-dim);
    border-left: 4px solid var(--neon-green);
    padding: 20px 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 50; /* TINGGI */
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--glow-green);
}

.futuristic .logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

.futuristic .subtitle {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.8;
}

/* ============================================
   HERO & SEARCH (PERBAIKAN TOTAL Z-INDEX & CLIPPING)
   ============================================ */
.futuristic .hero {
    background: var(--tactical-panel);
    border: 1px solid var(--tactical-border);
    border-top: 2px solid var(--neon-green);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 50; /* 🚀 KUNCI: Harus lebih tinggi dari info-section */
    overflow: visible !important; /* 🚀 KUNCI: Mencegah dropdown terpotong */
}

.futuristic .hero h2 {
    margin-bottom: 10px;
    color: var(--neon-green);
}

.futuristic .hero > p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Search Wrapper */
.futuristic .search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 9999;
}

.futuristic .search-box {
    display: flex;
    align-items: center;
    background: rgba(5, 10, 5, 0.9);
    border: 1px solid var(--neon-green);
    padding: 5px 15px;
    box-shadow: var(--glow-green);
    transition: all 0.3s ease;
}

.futuristic .search-box:focus-within {
    border-color: var(--neon-amber);
    box-shadow: var(--glow-amber);
}

.futuristic .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-green);
    outline: none;
    letter-spacing: 1px;
}

.futuristic .search-box input::placeholder {
    color: rgba(0, 255, 65, 0.4);
}

.futuristic .search-icon {
    font-size: 1.2rem;
    color: var(--neon-green);
}

.futuristic .clear-btn {
    background: none;
    border: none;
    color: var(--neon-red);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* 🚀 DROPDOWN SUGGESTIONS - PALING ATAS */
.futuristic .suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(5, 10, 5, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-green);
    border-top: none;
    max-height: 350px;
    overflow-y: auto;
    z-index: 10000; /* 🚀 KUNCI: Z-index tertinggi mutlak */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.futuristic .suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.2s;
}

.futuristic .suggestion-item:hover,
.futuristic .suggestion-item.active {
    background: rgba(0, 255, 65, 0.1);
}

.futuristic .suggestion-name {
    font-family: var(--font-tech);
    color: var(--neon-green);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.futuristic .suggestion-detail {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.futuristic .suggestion-coords {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-amber);
}

/* Selected Location */
.futuristic .selected-location {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--neon-green);
    border-left: 4px solid var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--glow-green);
}

.futuristic .location-name {
    font-family: var(--font-tech);
    color: var(--neon-green);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.futuristic .location-coords {
    font-family: var(--font-mono);
    color: var(--neon-amber);
    font-size: 0.85rem;
}

.futuristic .btn-primary {
    background: transparent;
    color: var(--neon-green);
    padding: 12px 24px;
    border: 1px solid var(--neon-green);
    font-family: var(--font-tech);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--glow-green);
}

.futuristic .btn-primary:hover {
    background: var(--neon-green);
    color: var(--tactical-bg);
    box-shadow: 0 0 25px var(--neon-green);
}

/* ============================================
   INFO CARDS (PERBAIKAN GRID GAP & Z-INDEX)
   ============================================ */
.futuristic .info-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 10; /* 🚀 KUNCI: Rendah, agar tidak menumpuk di atas hero */
}

.futuristic .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px; /* SPASI ANTAR KARTU */
}

.futuristic .info-card {
    background: var(--tactical-panel);
    border: 1px solid var(--tactical-border);
    border-left: 3px solid var(--neon-green);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    z-index: 10; /* Tetap rendah */
    overflow: visible; /* Pastikan tidak memotong konten */
}

.futuristic .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
}

.futuristic .info-card:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
    transform: translateY(-5px);
}

.futuristic .info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

.futuristic .info-card h3 {
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-bottom: 8px;
}

.futuristic .info-card p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.futuristic .app-footer {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 20px;
    border-top: 1px solid var(--tactical-border);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.futuristic .app-footer a {
    color: var(--neon-green);
    text-decoration: none;
    border-bottom: 1px dashed var(--neon-green);
}

.futuristic .app-footer a:hover {
    color: var(--neon-amber);
    border-color: var(--neon-amber);
}

.futuristic .footer-small {
    font-size: 0.75rem;
    margin-top: 10px;
    opacity: 0.6;
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
.futuristic ::-webkit-scrollbar {
    width: 8px;
}

.futuristic ::-webkit-scrollbar-track {
    background: var(--tactical-bg);
}

.futuristic ::-webkit-scrollbar-thumb {
    background: var(--neon-green-dim);
    border: 1px solid var(--neon-green);
}

.futuristic ::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .futuristic .app-container {
        padding: 15px;
    }
    
    .futuristic .app-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .futuristic .hero {
        padding: 20px;
    }
    
    .futuristic .selected-location {
        flex-direction: column;
        text-align: center;
    }
    
    .futuristic .info-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP agar tidak gepeng */
        gap: 20px;
    }
}