/* ==========================================================================
   1. RESET & HIGH-FIDELITY RADIAL GRADIENT BACKGROUND
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at center, #26374d 0%, #131c26 70%, #070a0f 100%);
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    color: #9ab0cc;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden; 
}

/* Low-opacity tech-dots background texture */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    z-index: -1;
    pointer-events: none;
}

/* Master Container Layout */
.interface-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   2. ASYMMETRIC CURVED GLASS TECH HEADER
   ========================================================================== */
.main-header {
    background: 
        radial-gradient(ellipse 75% 130px at 35% -65px, 
            rgba(255, 255, 255, 0.32) 0%, 
            rgba(255, 255, 255, 0.16) 80%, 
            rgba(255, 255, 255, 0.0) 100%
        ),
        linear-gradient(to bottom, #7a8fa6 0%, #4a5d73 12%, #2d3d52 100%);
        
    border: 1px solid #1c2a3a;
    border-top: 1px solid #b1c4da;    
    border-bottom: 1px solid #41556e; 
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 1px 0px rgba(255, 255, 255, 0.3), 
        0 10px 25px rgba(0, 0, 0, 0.55);
}

.logo-area {
    position: relative; 
    padding: 22px 24px;
    border-bottom: 1px solid #233142;
    background: linear-gradient(rgba(255,255,255,0.02) 50%, transparent 50%);
    background-size: 100% 4px; 
    display: flex;
    align-items: center;
}

.main-logo {
    display: block;
    max-height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   3. MORPHING LENS FLARE SYSTEM (Rail-Locked Sweep)
   ========================================================================== */
.starburst-container {
    position: absolute;
    top: 0; 
    left: 0;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 999; 
    mix-blend-mode: screen; 
    transform: translate(-50%, -50%); 
    animation: flare-flight-rail 7s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
}

.starburst-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.1) 35%, transparent 70%);
}

.starburst-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, transparent 49%, rgba(255,255,255,0.95) 50%, transparent 51%),
        linear-gradient(to bottom, transparent 49%, rgba(255,255,255,0.95) 50%, transparent 51%),
        linear-gradient(45deg, transparent 49.5%, rgba(255,255,255,0.7) 50%, transparent 50.5%),
        linear-gradient(-45deg, transparent 49.5%, rgba(255,255,255,0.7) 50%, transparent 50.5%);
    animation: spike-ignition 7s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ==========================================================================
   4. NAVIGATION MENU
   ========================================================================== */
.nav-bar {
    display: flex;
    position: relative;
    background: 
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%) no-repeat,
        linear-gradient(to bottom, #32445c 0%, #1b2636 100%);
    background-size: 200% 100%, 100% 100%;
    border-top: 1px solid #485d78;
    animation: shine-sweep 6s infinite ease-in-out;
}

.nav-link {
    position: relative;
    z-index: 2;
    color: #9cb2cc;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    padding: 11px 24px;
    border-right: 1px solid #16202e;
    border-left: 1px solid #435873; 
    letter-spacing: 1.5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.nav-link:first-child { border-left: none; }

.nav-link:hover, .nav-link.active {
    background: linear-gradient(to bottom, rgba(81, 105, 135, 0.65) 0%, rgba(41, 58, 82, 0.65) 100%);
    color: #ffffff;
    text-shadow: 0 0 4px rgba(255,255,255,0.6);
}

/* ==========================================================================
   5. 2ADVANCED STYLE NEWS TERMINAL MAIN HOUSING
   ========================================================================== */
.terminal-chassis {
    background: linear-gradient(to bottom, #4a5d73 0%, #3a4b5e 100%);
    border: 1px solid #1c2a3a;
    border-top: 1px solid #7389a2;
    padding: 18px;
    padding-bottom: 0px; 
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0,0,0,0.4);
    border-radius: 4px;
}

/* The Framing Container Around the Text/Scrollbar area */
.terminal-body-frame {
    background: #415266;
    border: 1px solid #1c2a3a;
    border-bottom: 1px solid #5d7187;
    border-right: 1px solid #5d7187;
    padding: 14px;
    border-radius: 6px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.35);
}

/* Inner Display Window Box */
.news-scroll-window {
    background-color: #16222e;
    /* Dense early-2000s diagonal carbon-fiber pattern texture */
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.5) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
    border: 1px solid #0f171f;
    border-bottom: 1px solid #3a4b5e;
    border-right: 1px solid #3a4b5e;
    border-radius: 4px;
    height: 380px;
    display: grid;
    grid-template-columns: 1fr 28px; 
    overflow: hidden;
}

/* Left Scrolling Text Wrapper Area */
.scroll-content-wrapper {
    padding: 24px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-content-wrapper::-webkit-scrollbar {
    width: 0px;
}

/* Individual Post Card Blocks */
.news-post {
    margin-bottom: 28px;
}

.date-header {
    background-color: #213245;
    border: 1px solid #131d29;
    color: #a4bccc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 14px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-radius: 2px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.terminal-text {
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.4px;
    padding: 0 4px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9);
}

/* Custom Mechanical Scrollbar Track Structural Column */
.custom-scrollbar-track {
    background-color: #2b3b4d;
    border-left: 1px solid #0f171f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    position: relative;
}

.scroll-arrow-up, .scroll-arrow-down {
    color: #000000;
    font-size: 9px;
    background: linear-gradient(to bottom, #4a5d73 0%, #2b3b4d 100%);
    border: 1px solid #141c26;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.scroll-thumb-handle {
    background: linear-gradient(to bottom, #5d748f 0%, #36485c 100%);
    border: 1px solid #111821;
    border-radius: 2px;
    width: 20px;
    flex-grow: 1; 
    margin: 4px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
}

.scroll-thumb-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    right: 3px;
    height: 4px;
    border-top: 1px solid #111821;
    border-bottom: 1px solid #111821;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* ==========================================================================
   6. MECHANICAL BASELINE TRAYS & CORE INTERACTIVE BUTTONS
   ========================================================================== */
.terminal-footer-tray {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 55px;
    margin-top: 10px;
    position: relative;
    padding-right: 14px;
}

/* Diagonal structural tread panel graphic across the left footprint base */
.tray-tread-plate {
    position: absolute;
    left: -18px;
    bottom: 0;
    width: calc(100% - 150px);
    height: 24px;
    background-color: #232f3d;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.4) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    border-top: 1px solid #141c26;
    clip-path: polygon(0 100%, 0 0, 96% 0, 100% 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* High Specular Thick Molded Action Anchor Button Box */
.beveled-archives-btn {
    background: linear-gradient(to bottom, #d63333 0%, #aa1a1a 45%, #800000 55%, #b32424 100%);
    border: 1px solid #4a0000;
    border-radius: 6px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding: 7px 32px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 5;
    margin-bottom: 8px;
    transition: filter 0.1s ease;
}

.beveled-archives-btn:hover {
    filter: brightness(1.12);
}

.beveled-archives-btn:active {
    background: linear-gradient(to bottom, #800000 0%, #aa1a1a 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
    transform: translateY(1px);
}

/* ==========================================================================
   7. TIMELINE ANIMATIONS
   ========================================================================== */
@keyframes flare-flight-rail {
    0% { left: 0%; transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
    2% { opacity: 0.7; }
    44% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.4); }
    48% { left: 100%; transform: translate(-50%, -50%) scale(2.4); opacity: 1; filter: drop-shadow(0 0 20px #ffffff); }
    56%, 100% { left: 100%; transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
}

@keyframes spike-ignition {
    0%, 44% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    48% { opacity: 1; transform: scale(1) rotate(180deg); }
    56%, 100% { opacity: 0; transform: scale(0.2) rotate(240deg); }
}

@keyframes shine-sweep {
    0% { background-position: 200% 0, 0 0; }
    40%, 100% { background-position: -100% 0, 0 0; }
}