/* ==========================================================================
   QuaVis Cybernetic Design System (Vanilla CSS Core)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* ==========================================
       LIGHT THEME (Default)
       ========================================== */
    /* Color Palette */
    --bg-deep: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    
    /* Brand Colors - Sophisticated Indigo/Violet */
    --neon-cyan: #4f46e5;
    --neon-cyan-rgb: 79, 70, 229;
    --neon-magenta: #a855f7;
    --neon-magenta-rgb: 168, 85, 247;
    --neon-green: #10b981;
    --neon-green-rgb: 16, 185, 129;
    --neon-purple: #6366f1;
    --neon-purple-rgb: 99, 102, 241;
    --neon-orange: #f97316;
    --neon-orange-rgb: 249, 115, 22;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Fonts */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Borders & Shadow */
    --cyber-border: 1px solid #e2e8f0;
    --cyber-border-glow: 0 4px 30px rgba(0, 0, 0, 0.02);
    --glow-cyan: 0 0 10px rgba(79, 70, 229, 0.1);
    --glow-magenta: 0 0 10px rgba(168, 85, 247, 0.1);
    
    --grid-color: rgba(15, 23, 42, 0.008);
    --vignette: radial-gradient(circle, transparent 40%, rgba(241, 245, 249, 0.4) 100%);
    
    --bg-header: rgba(255, 255, 255, 0.85);
    --header-border: rgba(79, 70, 229, 0.08);
    --header-shadow: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    /* ==========================================
       DARK THEME (Override)
       ========================================== */
    /* Color Palette */
    --bg-deep: #0a0e1a;
    --bg-darker: #0d1326;
    --bg-card: rgba(20, 27, 51, 0.45);
    --bg-card-hover: rgba(28, 38, 71, 0.6);
    
    /* Brand Colors - High-contrast Cyan/Rose */
    --neon-cyan: #38bdf8;
    --neon-cyan-rgb: 56, 189, 248;
    --neon-magenta: #ec4899;
    --neon-magenta-rgb: 236, 72, 153;
    --neon-green: #10b981;
    --neon-green-rgb: 16, 185, 129;
    --neon-purple: #a855f7;
    --neon-purple-rgb: 168, 85, 247;
    --neon-orange: #f97316;
    --neon-orange-rgb: 249, 115, 22;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders & Shadow */
    --cyber-border: 1px solid rgba(56, 189, 248, 0.12);
    --cyber-border-glow: 0 4px 30px rgba(0, 0, 0, 0.2);
    --glow-cyan: 0 0 10px rgba(56, 189, 248, 0.2);
    --glow-magenta: 0 0 10px rgba(236, 72, 153, 0.2);
    
    --grid-color: rgba(56, 189, 248, 0.015);
    --vignette: radial-gradient(circle, transparent 40%, rgba(13, 19, 38, 0.6) 100%);
    
    --bg-header: rgba(13, 19, 38, 0.85);
    --header-border: rgba(56, 189, 248, 0.15);
    --header-shadow: rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-cyan);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
    box-shadow: 0 0 5px var(--neon-magenta);
}

/* Global Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Cyber Grid Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -2;
}

/* Radial Vignette */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--vignette);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(234, 0, 217, 0.6);
}

/* Typography Utility */
.glow-text-cyan {
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.glow-text-magenta {
    text-shadow: 0 0 6px rgba(236, 72, 153, 0.3);
}

.glow-text-green {
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.mono {
    font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Header & Navigation */
header {
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 4px 30px var(--header-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--neon-cyan);
    margin-right: 5px;
    text-shadow: var(--glow-cyan);
}

.logo-suffix {
    color: var(--neon-magenta);
    text-shadow: var(--glow-magenta);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

nav a:hover, nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.admin-badge {
    border: 1px solid var(--neon-magenta);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.8rem;
    color: var(--neon-magenta);
    margin-left: 10px;
    box-shadow: 0 0 5px rgba(234, 0, 217, 0.3);
}

/* Glassmorphism Cards */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--cyber-border);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: all 0.6s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 243, 255, 0.15);
}

.cyber-card:hover::before {
    left: 100%;
}

/* Glow Borders for critical states */
.border-magenta {
    border-color: rgba(234, 0, 217, 0.3);
}
.border-magenta:hover {
    border-color: rgba(234, 0, 217, 0.6);
    box-shadow: 0 12px 40px rgba(234, 0, 217, 0.15);
}

/* Quantum Hero Ticker banner */
.hero-banner {
    position: relative;
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--neon-cyan) 70%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-subtitle::before {
    content: "●";
    color: var(--neon-green);
    animation: blink 1.2s infinite;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
}

/* Cyber Button */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.cyber-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.cyber-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -4px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.cyber-btn:hover::before {
    opacity: 1;
}

.cyber-btn > * {
    position: relative;
    z-index: 2;
}

.cyber-btn-magenta {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.2), 0 2px 4px -1px rgba(168, 85, 247, 0.1);
}

.cyber-btn-magenta::before {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
}

.cyber-btn-magenta:hover {
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3), 0 4px 6px -4px rgba(168, 85, 247, 0.2);
}

/* Telemetry Dashboard Tickers */
.telemetry-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.telemetry-card {
    background: rgba(8, 8, 20, 0.85);
    border-left: 3px solid var(--neon-cyan);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.telemetry-card.magenta {
    border-left-color: var(--neon-magenta);
}

.telemetry-card.green {
    border-left-color: var(--neon-green);
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telemetry-value {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 5px;
}

.telemetry-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* QML Paradigms Grid */
.paradigms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.paradigm-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-header {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    margin-bottom: 15px;
    position: relative;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(79, 70, 229, 0.05);
    color: var(--neon-cyan);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

/* Article Detail */
.full-bleed-header {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.full-bleed-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-deep) 10%, rgba(3, 3, 8, 0.3) 100%);
    z-index: 1;
}

.full-bleed-header-content {
    position: relative;
    z-index: 2;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    margin-top: 40px;
}

.article-body-content {
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-body-content p {
    margin-bottom: 25px;
}

.article-body-content h2, .article-body-content h3 {
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    padding-bottom: 10px;
}

.article-body-content pre {
    background: var(--bg-deep);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-left: 4px solid var(--neon-cyan);
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.article-body-content code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    background: rgba(0, 243, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--neon-cyan);
}

.article-body-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.article-body-content blockquote {
    border-left: 4px solid var(--neon-magenta);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1.05rem;
}

.article-body-content th {
    background: rgba(0, 243, 255, 0.1);
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    text-align: left;
    padding: 12px;
}

.article-body-content td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-body-content tr:hover td {
    background: rgba(0, 243, 255, 0.02);
}

/* Floating Metadata Sidebar */
.floating-metadata-deck {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.meta-row-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.meta-row-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Calendar Timeline view */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding-left: 40px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-magenta) 50%, var(--neon-purple) 100%);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    top: 8px;
    left: -38px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
    z-index: 5;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    border-color: var(--neon-magenta);
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.15);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.importance-badge {
    float: right;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid;
    text-transform: uppercase;
}

/* Canvas Simulation Node Info */
.node-simulation-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.canvas-container {
    position: relative;
    background: rgba(4, 4, 10, 0.9);
    border: var(--cyber-border);
    box-shadow: var(--cyber-border-glow);
    border-radius: 8px;
    overflow: hidden;
    height: 600px;
}

#nodesCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Forms & Dashboard Controls */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-header);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.cyber-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

textarea.cyber-input {
    min-height: 150px;
    resize: vertical;
}

.cyber-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.cyber-select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dashboard Workspace Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.dashboard-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 5px;
}

.dashboard-sidebar-item {
    background: rgba(8, 8, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-sidebar-item:hover, .dashboard-sidebar-item.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.dashboard-sidebar-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.dashboard-sidebar-item p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Markdown editor layout & drag-drop */
.drag-drop-zone {
    border: 2px dashed rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    background: rgba(0, 243, 255, 0.02);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone.dragover {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Alert styles */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    color: #ff3366;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.status-published {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}
.status-draft {
    background-color: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

/* Footer Section */
footer {
    border-top: var(--cyber-border);
    background: var(--bg-darker);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

footer span {
    color: var(--neon-cyan);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--cyber-border);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.theme-toggle-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: scale(1.05);
}

/* Keyframe Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Responsive Rules */
@media(max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .article-layout, .node-simulation-layout, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .floating-metadata-deck {
        position: relative;
        top: 0;
    }
    nav ul {
        gap: 15px;
    }
}
@media(max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    nav ul {
        display: none; /* simple stack or toggle can be done in js */
    }
}
