 /* =========================================
   ASTRONOTYET // MASTER STYLESHEET
   System Ver. 2.5
   ========================================= */

/* --- 1. FONTS & IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Russo+One&family=Share+Tech+Mono&display=swap');

/* --- 2. BASE SETTINGS --- */
body {
    background-color: #050505;
    color: #c0c0c0;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.heading-font, h1, h2, h3, .soviet-font {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

.data-font, .mono-font {
    font-family: 'Share Tech Mono', monospace;
}

::selection {
    background-color: #7f1d1d; 
    color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e11d48; }


/* --- 3. ATMOSPHERIC EFFECTS (THE VIBE) --- */

/* Text Scanlines (Striped Logo Text) */
.logo-scanlines {
    -webkit-mask-image: repeating-linear-gradient(
        to bottom,
        black 0px,
        black 3px,
        transparent 3px,
        transparent 5px
    );
    mask-image: repeating-linear-gradient(
        to bottom,
        black 0px,
        black 3px,
        transparent 3px,
        transparent 5px
    );
    opacity: 0.9;
    
}

/* Global Scanlines (Screen Overlay) */
/* --- GLOBAL SCANLINES (Fixed to match your original) --- */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.3) 50%,     /* Restored to 0.3 */
        rgba(0,0,0,0.3)          /* Restored to 0.3 */
    );
    background-size: 100% 4px;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999; /* Increased to ensure it covers the Header (z-50) */
    opacity: 0.4;  /* Restored to 0.4 */
}

.red-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(220, 38, 38, 0.1) 50%, rgba(5,5,5,0.4) 100%);
    z-index: 10;
}


/* --- 4. UI COMPONENTS --- */

.tech-border {
    border: 1px solid #222;
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.tech-border:hover {
    border-color: #444;
}
.tech-border::after {
    content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px;
    border-top: 2px solid #e11d48; border-left: 2px solid #e11d48;
}
.tech-border::before {
    content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px;
    border-bottom: 2px solid #e11d48; border-right: 2px solid #e11d48;
}

.glitch-btn {
    position: relative; overflow: hidden; transition: all 0.2s; z-index: 30;
}
.glitch-btn:hover {
    text-shadow: 2px 0 #e11d48, -2px 0 #00ffff;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
    border-color: #fff;
}
.glitch-btn:hover::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: glitch-sweep 0.5s linear infinite;
}

.astro-input {
    width: 100%; background: #080808; border: 1px solid #222; padding: 12px;
    color: white; outline: none; transition: all 0.3s;
    font-family: 'Share Tech Mono', monospace; font-size: 14px;
}
.astro-input:focus {
    border-color: #e11d48; background: #0c0c0c;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.1);
}

.label-red {
    display: inline-block; background: #9f1239; color: white;
    padding: 2px 8px; font-size: 10px; font-weight: bold;
    letter-spacing: 2px; text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
}

.status-light {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; margin-right: 6px;
    box-shadow: 0 0 5px currentColor;
}
.online { background-color: #22c55e; color: #22c55e; }
.offline { background-color: #ef4444; color: #ef4444; }
.dev { background-color: #eab308; color: #eab308; }


/* --- 5. NAVIGATION STYLES --- */
.nav-item {
    position: relative; height: 100%; display: flex; align-items: center;
    padding: 0 1.5rem; cursor: pointer;
    border-left: 1px solid transparent; border-right: 1px solid transparent;
    transition: all 0.2s;
}
.nav-item:hover {
    background: rgba(225, 29, 72, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}
.nav-item:hover .nav-text { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

.dropdown-panel {
    visibility: hidden; opacity: 0;
    position: absolute; top: 100%; left: 0; width: 240px;
    background: #0a0a0a; border: 1px solid #333;
    border-top: 2px solid #e11d48;
    transform: translateY(10px); transition: all 0.2s ease-out;
    pointer-events: none; z-index: 60;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.nav-item:hover .dropdown-panel {
    visibility: visible; opacity: 1;
    transform: translateY(0); pointer-events: auto;
}

.dropdown-link {
    display: block; padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    color: #888; font-family: 'Rajdhani', sans-serif;
    font-weight: 600; text-transform: uppercase; font-size: 0.85rem;
    transition: all 0.2s;
}
.dropdown-link:hover {
    background: #111; color: #e11d48; padding-left: 24px;
}
.dropdown-link:last-child { border-bottom: none; }

#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { transform: translateX(0); }


/* --- 6. SYSTEM WIDGETS (Footer Controls) --- */

/* Night Vision Filter */
.night-vision-active {
    filter: sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(1.2) brightness(0.8);
}

/* Audio Visualizer Animation */
.viz-active div { animation: equalizer 0.8s infinite ease-in-out; }
.viz-active div:nth-child(1) { animation-delay: 0.0s; }
.viz-active div:nth-child(2) { animation-delay: 0.2s; }
.viz-active div:nth-child(3) { animation-delay: 0.4s; }
.viz-active div:nth-child(4) { animation-delay: 0.1s; }

@keyframes equalizer {
    0%, 100% { height: 20%; opacity: 0.5; }
    50% { height: 100%; opacity: 1; }
}


/* --- 7. ANIMATIONS --- */
@keyframes glitch-sweep {
    0% { left: -100%; } 100% { left: 100%; }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes phase-sweep {
    0% { transform: translateX(-5%); }
    50% { transform: translateX(120%); }
    100% { transform: translateX(-5%); }
}
.animate-phase-sweep {
    animation: phase-sweep 20s ease-in-out infinite;
}

/* --- 8. HELPERS --- */
.hidden-panel { display: none; }
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- WORDPRESS ADMIN BAR FIX --- */
/* If the Admin Bar is present, push the Fixed Nav down */
.admin-bar nav {
    top: 32px !important;
}

/* Adjust for mobile admin bar height */
@media screen and (max-width: 782px) {
    .admin-bar nav {
        top: 46px !important;
    }
}