﻿/* --- Imperial Terminal Color Palette & Reset --- */
:root {
    --terminal-bg: #000000;
    --terminal-glow: rgba(0, 240, 255, 0.15);
    --text-primary: #00f0ff;
    --text-muted: #00a2af;
    --alert-color: #ff3333;
    --font-terminal: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--terminal-bg);
    color: var(--text-primary);
    font-family: var(--font-terminal);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    text-shadow: 0 0 4px var(--text-primary);
    scrollbar-gutter: stable;
}

/* --- CRT Scanline Overlay effect --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
}

/* --- Main Framework --- */
.terminal-container {
    width: 100%;
    max-width: 1100px;
    border: 2px solid var(--text-primary);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    box-shadow: 0 0 20px var(--terminal-glow);
    position: relative;
}

.terminal-divider {
    border: 0;
    height: 1px;
    background: var(--text-primary);
    margin: 20px 0;
    box-shadow: 0 0 4px var(--text-primary);
}

/* --- Header Styling --- */
.terminal-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.terminal-header h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.header-right {
    text-align: right;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.alert-button {
    appearance: none;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: var(--font-terminal);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.alert-button:hover,
.alert-button.active-alert {
    background-color: var(--text-primary);
    color: var(--terminal-bg);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.security-badge {
    background-color: var(--text-primary);
    color: var(--terminal-bg);
    padding: 2px 6px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: none;
}

.clearance-level {
    color: var(--text-muted);
}

/* --- Workspace Split Layout --- */
.terminal-workspace {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

/* --- Sidebar Menu (Reflects layout in image_3b0f3a.jpg) --- */
.terminal-sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 240, 255, 0.3);
    padding-right: 20px;
    gap: 8px;
}

.nav-item {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(0, 240, 255, 0.1);
    border-left: 4px solid var(--text-primary);
    padding-left: 9px;
}

/* Selected active link state based on the image button style */
.nav-item.active {
    background-color: var(--text-primary);
    color: var(--terminal-bg);
    text-shadow: none;
    border: 1px solid var(--text-primary);
}

/* --- Content Column --- */
.terminal-content {
    flex-grow: 1;
}

.manifesto-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.manifesto-text {
    line-height: 1.6;
    color: var(--text-primary);
}

/* --- Content Dashboard Grid --- */
.terminal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.grid-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--text-primary);
    padding-bottom: 5px;
}

.grid-card p, .grid-card ul {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.grid-card ul {
    list-style-type: "- ";
    list-style-position: inside;
}

.grid-card li {
    margin-bottom: 10px;
}

.grid-card strong {
    color: #fff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 820px) {
    .terminal-workspace {
        flex-direction: column;
    }
    
    .terminal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed rgba(0, 240, 255, 0.3);
        padding-right: 0;
        padding-bottom: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-item {
        flex-grow: 1;
        text-align: center;
        font-size: 0.95rem;
        padding: 6px 8px;
    }

    .terminal-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-header, .header-right, .terminal-footer {
        text-align: left;
    }
    
    .header-right {
        width: 100%;
    }
}

/* --- Footer & ARG Mechanics --- */
.terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slicer-glitch {
    color: var(--alert-color);
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 4px var(--alert-color);
    cursor: pointer;
    animation: blink 2s infinite;
}

.slicer-glitch:hover {
    background-color: var(--alert-color);
    color: var(--terminal-bg);
    text-shadow: none;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}
