:root {
    --bg-color: #0b0e14;
    --glass: rgba(255, 255, 255, 0.05);
    --accent: #b0e0e6; 
    --text-main: #e2e8f0;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.1);
    --iosevka: 'Iosevka Term', 'Iosevka', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(176, 224, 230, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(100, 116, 139, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--iosevka), sans-serif; /* Fallback to Iosevka as primary */
    margin: 0;
    display: flex; 
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- ANALOG EFFECTS --- */
.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04; pointer-events: none; z-index: 100;
}

.app-container { width: 100%; max-width: 850px; padding: 60px 20px; }

/* --- GLOBAL TERMINAL TYPOGRAPHY --- */
.node-id, .value, .timestamp, .label, .username, .system-status,
.content, .content p, .content li, .content b, .content span, .content strong {
    font-family: var(--iosevka) !important;
    letter-spacing: 0.06rem;
    text-shadow: 0 0 5px rgba(176, 224, 230, 0.2);
}

/* --- HEADER & LASER SCAN --- */
.site-header {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo-wrapper { 
    position: relative; 
    overflow: hidden; 
    padding: 5px 0;
}

.site-title {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 0.6rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, var(--accent), #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.site-title span { font-weight: 200; opacity: 0.4; }

.scanline {
    width: 100%;
    height: 2px;
    background: var(--accent);
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 5;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(176, 224, 230, 0.6);
    animation: laser-scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- LAYOUT & SIDEBAR --- */
.main-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.sidebar-section { border-left: 1px solid var(--border); padding-left: 15px; margin-bottom: 25px; }
.label { display: block; font-size: 0.55rem; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; }
.value { font-size: 0.8rem; color: var(--accent); }
.status-green { color: #00ffaa; text-shadow: 0 0 5px rgba(0, 255, 170, 0.3); }
.bar-container { width: 100%; height: 2px; background: rgba(255, 255, 255, 0.05); }
.bar { height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* --- POSTS --- */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post {
    background: var(--glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}
.username { color: var(--accent); font-size: 0.85rem; text-transform: lowercase; }
.timestamp { font-size: 0.7rem; color: var(--text-dim); }

/* CONTENT & MARKDOWN STYLING */
.content { 
    line-height: 1.6; 
    font-size: 0.95rem; 
    font-weight: 300; 
    color: #cbd5e1; 
}

.content p { margin-bottom: 1.2rem; }
.content p:last-child { margin-bottom: 0; }

.content b, .content strong { 
    color: var(--accent); 
    font-weight: 600; 
    text-shadow: 0 0 8px rgba(176, 224, 230, 0.3);
}

.content ul {
    list-style: none;
    padding-left: 0;
}

.content li {
    margin-bottom: 0.5rem;
}

.content li::before {
    content: "→ ";
    color: var(--accent);
    margin-right: 8px;
}

/* --- ANIMATIONS --- */
@keyframes laser-scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00ffaa; box-shadow: 0 0 8px #00ffaa;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
