/* ===================================
   CyberWiki Navigation Styles
   Matrix Theme + Font Awesome
   =================================== */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 10, 2, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-text {
    letter-spacing: 2px;
}

.text-glow {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #b0b0b0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
    color: #00ff41;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(0, 255, 65, 0.1);
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Dropdown */
.has-dropdown > .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 15, 5, 0.98);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 10px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a i {
    width: 18px;
    text-align: center;
    color: #00ff41;
    opacity: 0.6;
}

.dropdown-menu li a:hover {
    color: #fff;
    background: rgba(0, 255, 65, 0.15);
}

.dropdown-menu li a:hover i {
    opacity: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #00ff41;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
    
    .has-dropdown > .nav-link::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }
    
    .mobile-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        pointer-events: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: rgba(0, 10, 2, 0.98);
        border-left: 1px solid rgba(0, 255, 65, 0.3);
        padding: 80px 20px 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .nav-link span {
        display: inline;
    }
    
    .nav-link i {
        font-size: 1.1rem;
        width: 24px;
    }
    
    .has-dropdown > .nav-link::after {
        display: inline;
        margin-left: auto;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 255, 65, 0.05);
        border: none;
        border-radius: 8px;
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
    }
    
    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
    }
    
    .has-dropdown.open > .nav-link::after {
        transform: rotate(180deg);
    }
}

/* Main content padding for fixed header */
.main-content {
    padding-top: 70px;
}
