/* global.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* --- Reset & Font --- */
body { margin: 0; padding: 0; background-color: #000; color: #e2e8f0; font-family: 'Rajdhani', sans-serif; }

/* --- Navbar CSS (แก้ไขใหม่) --- */
.tactical-nav {
    /* 🔥 เทคนิคบังคับเต็มจอ (ทะลุ Container) */
    width: 100vw; 
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* 🔥 ปรับสีพื้นหลังให้กลืนกับเว็บ (เข้มสนิท) */
    background: #02040a; /* สีเดียวกับ lion-interface-wrapper */
    border-bottom: 1px solid #1e3a8a; /* เส้นขอบนีออน */
    
    position: sticky; 
    top: 0; 
    z-index: 9999; /* ให้ลอยเหนือทุกอย่าง */
    
    padding: 0 20px; 
    height: 70px;
    display: flex; 
    align-items: center; 
    justify-content: center; /* Desktop: กลาง */
    box-sizing: border-box;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8); /* เงาเข้มขึ้น */
}

/* 🔥 ซ่อนโลโก้ใน Desktop */
.nav-brand {
    display: none; 
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-items { display: flex; gap: 40px; align-items: center; }

.nav-link {
    color: #94a3b8; text-decoration: none; font-family: 'Orbitron'; font-size: 0.9rem;
    transition: 0.3s; padding: 25px 0; 
    position: relative; display: flex; align-items: center;
}

.nav-link:hover, .nav-active { color: #00f0ff; text-shadow: 0 0 10px #00f0ff; }
.nav-active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: #00f0ff; box-shadow: 0 0 10px #00f0ff;
}

/* Dropdown */
.dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-content {
    display: none; position: absolute;
    background-color: #020617; /* พื้นหลังเมนูย่อยเข้ม */
    min-width: 180px; box-shadow: 0 8px 32px rgba(0,0,0,0.9);
    border: 1px solid #334155; z-index: 1001;
    top: 100%; left: 50%; transform: translateX(-50%);
    border-radius: 0 0 8px 8px; padding-top: 5px;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease-in-out; }
.dropdown-content a {
    color: #94a3b8; padding: 12px 16px; text-decoration: none;
    display: block; font-family: 'Orbitron'; font-size: 0.8rem;
    text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; padding: 15px 0;
}
.dropdown-content a:hover { background: rgba(0, 240, 255, 0.1); }
@keyframes fadeIn { from { opacity: 0; margin-top: 10px; } to { opacity: 1; margin-top: 0; } }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; color: #00f0ff; font-size: 1.5rem; cursor: pointer;
    border: 1px solid rgba(0, 240, 255, 0.3); padding: 5px 10px; border-radius: 4px;
}

/* 🔥 MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .tactical-nav { 
        justify-content: space-between; /* Mobile: แยกโลโก้ซ้าย เมนูขวา */
        padding: 0 15px; /* ลด padding มือถือ */
    } 
    
    .nav-brand { display: block; } /* Show Logo Mobile Only */
    
    .menu-toggle { display: block; position: static; }
    
    .nav-items {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: #020617; flex-direction: column; gap: 0;
        border-bottom: 1px solid #1e3a8a;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    }
    .nav-items.active { max-height: 500px; }
    
    .nav-link { width: 100%; justify-content: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-active::after { display: none; }
    .nav-active { background: rgba(0, 240, 255, 0.05); }
    
    .dropdown { width: 100%; justify-content: center; display: block; height: auto; }
    .dropdown:hover .dropdown-content { position: static; transform: none; border: none; width: 100%; }
    .dropdown-content { position: static; transform: none; width: 100%; background: #0a0f1d; border: none; }
}