/* ==========================================================================
   1. CUSTOM FONTS & CORE INITIALIZATION
   ========================================================================== */
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    letter-spacing: 1px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   2. THEME COLOR SCALES
   ========================================================================== */

/* --- DARK THEME STYLING CONFIG --- */
body.dark-theme {
    background-color: #0b0c10;
    color: #c5c6c7;
}
body.dark-theme .hud-header-group { background-color: #12141c; }
body.dark-theme .hud-sub-nav { background-color: #1a1d26; border-top: 1px solid #2d323f; }
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme strong { color: #ffffff; }
body.dark-theme .tac-panel { background-color: #161920; border: 1px solid #232731; }
body.dark-theme .data-row { border-bottom: 1px solid #1f232d; }
body.dark-theme code, body.dark-theme .scroll-btn, body.dark-theme .hud-btn { background-color: #0b0c10; }
body.dark-theme .hud-sub-nav a { color: #8b949e; }

/* --- LIGHT THEME STYLING CONFIG (Military Desert Look) --- */
body.light-theme {
    background-color: #e6e4dc;
    color: #2b2c24;
}
body.light-theme .hud-header-group { background-color: #d1ced0; }
body.light-theme .hud-sub-nav { background-color: #c4c1c3; border-top: 1px solid #b5b2b4; }
body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme strong { color: #1c1d17; }
body.light-theme .tac-panel { background-color: #f1efea; border: 1px solid #c2c0b5; }
body.light-theme .data-row { border-bottom: 1px solid #dcdad0; }
body.light-theme code, body.light-theme .scroll-btn, body.light-theme .hud-btn { background-color: #ffffff; border: 1px solid #c2c0b5; }
body.light-theme .hud-sub-nav a { color: #5a5f50; }

/* ==========================================================================
   3. STACKED SUB-HEADER HEADER SYSTEM
   ========================================================================== */
.hud-header-group {
    border-bottom: 2px solid #ff4a1c;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Main Top Header Block */
.hud-main-header {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hud-branding {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

.hud-blink {
    color: #ff4a1c;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Sub-Header Navigation Bar (Centered Links + Right-Aligned Toggle) */
.hud-sub-nav {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    position: relative; 
    min-height: 40px;   
}

.nav-links {
    display: flex;
    gap: 25px;
    margin: 0 auto;    
}

.hud-sub-nav a {
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    transition: color 0.2s;
}

.hud-sub-nav a:hover, .hud-sub-nav a.hud-highlight {
    color: #ff4a1c;
}

.hud-btn {
    font-family: 'Share Tech Mono', monospace;
    color: #ff4a1c;
    border: 1px dashed #ff4a1c;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    
    position: absolute; 
    right: 30px;        
}

/* ==========================================================================
   4. CONTENT LAYOUT CONTAINER SETUP
   ========================================================================== */
.hud-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.hud-section {
    margin-bottom: 50px;
    scroll-margin-top: 155px; 
}

.section-title {
    color: #ff4a1c;
    font-size: 1.3rem;
    border-bottom: 1px dashed #545b62;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* ==========================================================================
   5. TACTICAL HUD PANELS & CARDS
   ========================================================================== */
.tac-panel {
    padding: 25px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

/* Panel Functional Highlights */
.online-panel { border-top: 3px solid #10b981; }
.offline-panel { border-top: 3px solid #ef4444; }
.neutral-panel { border-top: 3px solid #4b5320; }

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.15);
}

.online-panel .status-badge { color: #10b981; }
.offline-panel .status-badge { color: #ef4444; }

/* Typography Formatting inside Panels */
h3 { margin-top: 0; font-size: 1.4rem; }
h4 { color: #ff4a1c; margin-bottom: 10px; }

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.data-row span { color: #6c757d; }

code {
    color: #ff4a1c;
    padding: 2px 6px;
    font-size: 0.95rem;
}

.roster-list { list-style: none; padding: 0; }
.roster-list li { color: #10b981; padding: 3px 0; }
.ghost-text { color: #727b84; }
.alert-text { color: #ef4444; }
.tac-rules { padding-left: 20px; }
.tac-rules li { margin-bottom: 15px; }

/* ==========================================================================
   6. FLOATING INTERACTION COMPONENTS & FOOTER
   ========================================================================== */
.scroll-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    color: #ff4a1c;
    border: 2px solid #ff4a1c;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.scroll-btn:active {
    transform: scale(0.9);
}

.hud-footer {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px dashed #545b62;
}
