/* ===== DeceptiCorp Terminal Theme ===== */

:root {
    --primary-glow: #00ff9c;
    --alert-red: #ff004c;
    --terminal-bg: #0a0a0a;
    --scanline-opacity: 0.15;
}

/* ===== Base System ===== */

body {
    background-color: var(--terminal-bg);
    color: var(--primary-glow);
    font-family: "Courier New", monospace;
    margin: 0;
    overflow-x: hidden;
    cursor: crosshair; /* Security interface feel */

    /* CRT Flicker */
    animation: flicker 0.15s infinite;
}

/* ===== CRT Scanlines (Behind Content) ===== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%),
        linear-gradient(
            90deg,
            rgba(255,0,0,0.06),
            rgba(0,255,0,0.02),
            rgba(0,0,255,0.06)
        );
    background-size: 100% 4px, 3px 100%;
    opacity: var(--scanline-opacity);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above scanlines */
#console {
    position: relative;
    z-index: 1;

    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Terminal Output ===== */

#terminal {
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 0 0 8px var(--primary-glow);
    margin-bottom: 30px;
    white-space: pre-wrap;
}

/* Terminal cursor */
.cursor {
    border-left: 0.6em solid var(--primary-glow);
    animation: blink 1s infinite;
    margin-left: 5px;
    height: 1em;
}

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

/* ===== Logo ===== */

.logo {
    width: 180px;
    filter: drop-shadow(0 0 15px #800080);
    transition: transform 0.3s ease;
    margin: 20px 0;
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== Database Panel ===== */

.database {
    width: 100%;
    border: 2px solid var(--primary-glow);
    background: rgba(0, 255, 156, 0.05);
    padding: 30px;
    box-sizing: border-box;
    box-shadow: inset 0 0 20px rgba(0, 255, 156, 0.1);
    text-transform: uppercase;
    position: relative;
}

/* Subtle surveillance indicator */
.database::after {
    content: "MONITORING";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: var(--alert-red);
    opacity: 0.4;
    letter-spacing: 2px;
}

/* System messages (OATHKEEPER, etc.) */
.database p {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.85;
    letter-spacing: 1px;
}

/* ===== Status Bar ===== */

.status-bar {
    border-bottom: 1px solid var(--primary-glow);
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Navigation / File System ===== */

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 8px 0;
}

/* Prefix from data-prefix attribute */
.nav-links a::before {
    content: attr(data-prefix) " ";
    color: var(--primary-glow);
    margin-right: 6px;
    opacity: 0.8;
}

/* Links with glitch feel */
a {
    color: var(--alert-red);
    text-decoration: none;
    display: block;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.2s;
}

a:hover {
    color: #fff;
    text-shadow: 2px 0 #ff004c, -2px 0 #00fffb;
    transform: translateX(10px);
}

/* ===== Text Highlights ===== */

.highlight {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.alert {
    color: var(--alert-red);
    animation: pulse 1s infinite;
}

.hidden {
    display: none;
}

/* ===== Animations ===== */

@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.98; }
    30% { opacity: 0.95; }
    50% { opacity: 0.98; }
    100% { opacity: 0.99; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
