/* ==========================================================================
   SYSTEM_DECAY v2.0 - Exact Replica of React Theme
   ========================================================================== */

/* ==========================================================================
   Variables & Root Settings
   ========================================================================== */
:root {
    /* Core Colors - Pure Black Background */
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --text-color: #e0e0e0;
    --text-muted: #666;
    --text-dim: #333;
    
    /* Neon Colors - Exact from React code */
    --neon-green: #00ff41;
    --neon-green-light: #aaffcc;
    --neon-orange: #ff8c00;
    --neon-orange-light: #ffcc80;
    --neon-red: #ff3333;
    --neon-cyan: #00ffff;
    
    /* System Colors */
    --color-primary: #00ff41;
    --color-secondary: #ff8c00;
    
    /* Ghost compatibility */
    --gh-font-heading: 'JetBrains Mono', monospace;
    --gh-font-body: 'JetBrains Mono', monospace;
    
    /* Spacing - Wider layout */
    --max-width: 1400px;
    --content-padding: 0px;
    --sidebar-width: 300px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #000000;
    color: var(--text-color);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--neon-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffaa33;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background-color: var(--neon-green);
    color: #000;
}

/* ==========================================================================
   Scrollbar - From Original Code
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid var(--neon-green);
}

/* ==========================================================================
   Scanlines - Exact from Original Code
   ========================================================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
}

.scanlines::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 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));
    z-index: 50;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.no-scanlines .scanlines {
    display: none;
}

/* Heavy scanlines for CRT mode */
.crt-mode .scanlines::before {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.08), rgba(0, 255, 0, 0.04), rgba(0, 0, 255, 0.08));
    background-size: 100% 3px, 3px 100%;
}

/* ==========================================================================
   Vignette Effect
   ========================================================================== */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 51;
}

.crt-mode .vignette {
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* ==========================================================================
   CRT Rolling Bar
   ========================================================================== */
.crt-roll-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 65, 0.03) 30%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(0, 255, 65, 0.03) 70%,
        transparent 100%
    );
    animation: roll-bar 6s linear infinite;
    pointer-events: none;
    z-index: 52;
    display: none;
}

.crt-mode .crt-roll-bar {
    display: block;
}

@keyframes roll-bar {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(100vh); }
}

/* ==========================================================================
   Viewport Corner Decorations - Exact Style
   ========================================================================== */
.viewport-corners {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 60;
}

.viewport-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--neon-green);
    opacity: 0.5;
}

.viewport-corner.top-left {
    top: 1rem;
    left: 1rem;
    border-top: 1px solid var(--neon-green);
    border-left: 1px solid var(--neon-green);
}

.viewport-corner.top-right {
    top: 1rem;
    right: 1rem;
    border-top: 1px solid var(--neon-green);
    border-right: 1px solid var(--neon-green);
}

.viewport-corner.bottom-left {
    bottom: 1rem;
    left: 1rem;
    border-bottom: 1px solid var(--neon-green);
    border-left: 1px solid var(--neon-green);
}

.viewport-corner.bottom-right {
    bottom: 1rem;
    right: 1rem;
    border-bottom: 1px solid var(--neon-green);
    border-right: 1px solid var(--neon-green);
}

/* ==========================================================================
   Layout - Full width, no padding
   ========================================================================== */
.viewport {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Content Width Variants */
.content-width-narrow .home-layout,
.content-width-narrow .post-layout {
    --content-max-width: 900px;
}

.content-width-normal .home-layout,
.content-width-normal .post-layout {
    --content-max-width: 1100px;
}

.content-width-wide .home-layout,
.content-width-wide .post-layout {
    --content-max-width: 1400px;
}

.content-width-full .home-layout,
.content-width-full .post-layout {
    --content-max-width: 100%;
    padding: 0 20px;
}

/* ==========================================================================
   Effect Toggle Button - Exact from Original
   ========================================================================== */
.effect-toggle {
    position: relative;
    padding: 4px 12px;
    border: 1px solid #333;
    background: #111;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.effect-toggle:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.effect-toggle.active-crt {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.15), inset 0 0 12px rgba(0, 255, 65, 0.05);
}

.effect-toggle.active-shimmer {
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    background: rgba(255, 140, 0, 0.05);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.15), inset 0 0 12px rgba(255, 140, 0, 0.05);
}

/* ==========================================================================
   Text Glow Utilities
   ========================================================================== */
.text-glow-green {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.text-glow-orange {
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* ==========================================================================
   Shimmer Effects - EXACT from Original Code
   ========================================================================== */
.shimmer-green {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        #00ff41 0%,
        #00ff41 35%,
        #aaffcc 48%,
        #ffffff 50%,
        #aaffcc 52%,
        #00ff41 65%,
        #00ff41 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-sweep 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.6));
}

.shimmer-orange {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        #ff8c00 0%,
        #ff8c00 35%,
        #ffcc80 48%,
        #ffffff 50%,
        #ffcc80 52%,
        #ff8c00 65%,
        #ff8c00 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-sweep 4s ease-in-out 1s infinite;
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.6));
}

@keyframes shimmer-sweep {
    0% { background-position: 100% 50%; }
    40% { background-position: -100% 50%; }
    100% { background-position: -100% 50%; }
}

/* ==========================================================================
   Dither Flicker - EXACT from Original
   ========================================================================== */
.dither-flicker {
    animation: dither 0.15s steps(2) infinite;
}

@keyframes dither {
    0% { opacity: 1; text-shadow: 0 0 10px currentColor; }
    25% { opacity: 0.92; text-shadow: 0 0 14px currentColor, 1px 0 0 currentColor; }
    50% { opacity: 1; text-shadow: 0 0 8px currentColor; }
    75% { opacity: 0.95; text-shadow: 0 0 12px currentColor, -1px 0 0 currentColor; }
    100% { opacity: 1; text-shadow: 0 0 10px currentColor; }
}

/* ==========================================================================
   Blinking Dot - EXACT from Original
   ========================================================================== */
.blink-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.blink-dot-green {
    background-color: #00ff41;
    box-shadow: 0 0 8px #00ff41, 0 0 16px rgba(0, 255, 65, 0.4);
}

.blink-dot-orange {
    background-color: #ff8c00;
    box-shadow: 0 0 8px #ff8c00, 0 0 16px rgba(255, 140, 0, 0.4);
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
    50% { opacity: 0.2; transform: scale(0.8); }
    70% { opacity: 0.8; transform: scale(1); }
}

/* ==========================================================================
   Glitch Text - EXACT from Original
   ========================================================================== */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch-text::before {
    color: #ff3333;
    animation: glitch-shift 3s steps(1) infinite;
    clip-path: inset(0 0 70% 0);
    opacity: 0.4;
}

.glitch-text::after {
    color: #00ffff;
    animation: glitch-shift 3s steps(1) 0.5s infinite;
    clip-path: inset(70% 0 0 0);
    opacity: 0.4;
}

@keyframes glitch-shift {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 0); }
    98% { transform: translate(1px, 1px); }
}

/* ==========================================================================
   CRT Mode Overrides - EXACT from Original
   ========================================================================== */
.crt-mode .shimmer-green,
.crt-mode .shimmer-orange {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    filter: none !important;
    animation: none !important;
}

.crt-mode .shimmer-green {
    color: #00ff41;
    text-shadow: 0 0 4px #00ff41, 0 0 12px #00ff41, 0 0 30px rgba(0, 255, 65, 0.5), 0 0 60px rgba(0, 255, 65, 0.2);
    animation: phosphor-flicker-green 0.08s steps(3) infinite !important;
}

.crt-mode .shimmer-orange {
    color: #ff8c00;
    text-shadow: 0 0 4px #ff8c00, 0 0 12px #ff8c00, 0 0 30px rgba(255, 140, 0, 0.5), 0 0 60px rgba(255, 140, 0, 0.2);
    animation: phosphor-flicker-orange 0.08s steps(3) infinite !important;
}

.crt-mode .dither-flicker {
    animation: crt-jitter 0.1s steps(2) infinite !important;
}

.crt-mode .glitch-text::before {
    color: #ff0000;
    animation: rgb-split-r 2s steps(1) infinite !important;
    clip-path: none;
    opacity: 0.3;
    mix-blend-mode: screen;
}

.crt-mode .glitch-text::after {
    color: #0000ff;
    animation: rgb-split-b 2s steps(1) 0.3s infinite !important;
    clip-path: none;
    opacity: 0.3;
    mix-blend-mode: screen;
}

@keyframes phosphor-flicker-green {
    0% { text-shadow: 0 0 4px #00ff41, 0 0 12px #00ff41, 0 0 30px rgba(0,255,65,0.5); opacity: 1; }
    33% { text-shadow: 0 0 6px #00ff41, 0 0 16px #00ff41, 0 0 40px rgba(0,255,65,0.6); opacity: 0.97; }
    66% { text-shadow: 0 0 3px #00ff41, 0 0 10px #00ff41, 0 0 25px rgba(0,255,65,0.4); opacity: 0.99; }
}

@keyframes phosphor-flicker-orange {
    0% { text-shadow: 0 0 4px #ff8c00, 0 0 12px #ff8c00, 0 0 30px rgba(255,140,0,0.5); opacity: 1; }
    33% { text-shadow: 0 0 6px #ff8c00, 0 0 16px #ff8c00, 0 0 40px rgba(255,140,0,0.6); opacity: 0.97; }
    66% { text-shadow: 0 0 3px #ff8c00, 0 0 10px #ff8c00, 0 0 25px rgba(255,140,0,0.4); opacity: 0.99; }
}

@keyframes crt-jitter {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(0.5px, 0); opacity: 0.96; }
    100% { transform: translate(-0.3px, 0); opacity: 1; }
}

@keyframes rgb-split-r {
    0%, 85%, 100% { transform: translate(0); }
    87% { transform: translate(-3px, 0); }
    89% { transform: translate(2px, 1px); }
    91% { transform: translate(-1px, -1px); }
    93% { transform: translate(3px, 0); }
}

@keyframes rgb-split-b {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(3px, 0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(1px, -1px); }
}

/* ==========================================================================
   Header - No margin, full width
   ========================================================================== */
.site-header {
    background: transparent;
    border-bottom: none;
    padding: 2rem var(--content-padding);
    margin-bottom: 0;
    position: relative;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* Header ASCII Corner Decorations */
.site-header > .corner {
    position: absolute;
    font-size: 1rem;
    color: var(--neon-green);
    opacity: 0.5;
    line-height: 1;
}

.site-header > .corner.top-left {
    top: 8px;
    left: 8px;
}

.site-header > .corner.top-right {
    top: 8px;
    right: 8px;
}

/* Top thin green line - from original */
.site-header::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #00ff41;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav a:hover {
    color: #ffaa33;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.main-nav a::before {
    content: '[';
    color: #666;
}

.main-nav a::after {
    content: ']';
    color: #666;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.625rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* Site Title Area - Flex container for ordering */
.site-title-wrapper {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Site Title Size Variants - Higher specificity */
body.title-size-small .site-title,
body.title-size-small .site-title-wrapper .site-title {
    font-size: 1.5rem !important;
}

body.title-size-normal .site-title,
body.title-size-normal .site-title-wrapper .site-title {
    font-size: 2rem !important;
}

body.title-size-large .site-title,
body.title-size-large .site-title-wrapper .site-title {
    font-size: 2.5rem !important;
}

body.title-size-xlarge .site-title,
body.title-size-xlarge .site-title-wrapper .site-title {
    font-size: 3.5rem !important;
}

@media (max-width: 768px) {
    body.title-size-xlarge .site-title {
        font-size: 1.75rem !important;
    }
    
    body.title-size-large .site-title {
        font-size: 1.5rem !important;
    }
    
    body.title-size-normal .site-title {
        font-size: 1.25rem !important;
    }
    
    body.title-size-small .site-title {
        font-size: 1rem !important;
    }
}

.title-separator {
    color: #666;
    margin: 0 1rem;
    font-size: 1.5rem;
}

/* Site Subtitle */
.site-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .site-subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.subtitle-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtitle-item .label {
    color: #666;
}

.subtitle-item .value {
    color: #00ff41;
}

.separator {
    color: #666;
}

@media (max-width: 768px) {
    .separator {
        display: none;
    }
}

/* Header Status Bar */
.header-status-bar {
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    color: #666;
    letter-spacing: 0.1em;
}

.status-left {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-left .divider {
    color: #444;
}

.system-status {
    color: #999;
}

.mem-value,
.uptime-value {
    color: #999;
}

/* Progress bar dots */
.progress-bar {
    display: flex;
    gap: 4px;
    align-items: center;
}

.progress-bar::before {
    content: "";
    display: flex;
    gap: 4px;
}

/* Pages Navigation */
.pages-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    order: 0;
    width: 100%;
}

/* Pages Menu Position Variants */
body.pages-menu-above-title .site-title-wrapper .pages-nav,
.pages-menu-above-title .pages-nav {
    order: -1 !important;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

body.pages-menu-below-title .site-title-wrapper .pages-nav,
.pages-menu-below-title .pages-nav {
    order: 1 !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

body.pages-menu-hidden .site-title-wrapper .pages-nav,
.pages-menu-hidden .pages-nav {
    display: none !important;
}

.pages-nav .page-link {
    font-size: 0.75rem;
    color: #ff8c00;
}

.pages-nav .page-link:hover {
    color: #ffaa33;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.pages-nav .home-link .home-icon {
    margin-right: 0.25rem;
}

/* Minimal Header Style */
.site-header.minimal .site-title {
    font-size: 1.5rem;
}

.site-header.minimal .site-subtitle,
.site-header.minimal .header-status-bar,
.site-header.minimal .pages-nav {
    display: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    padding: 2rem 0;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.1em;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: #00ff41;
}

.header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #666;
}

.header-right .divider {
    color: #333;
}

.content-header + .divider-line {
    height: 1px;
    width: 100%;
    background: #333;
    margin-bottom: 2rem;
}

/* Post Feed */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================================================
   Post Card - EXACT from Original with Dashed Borders
   ========================================================================== */
.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card {
    position: relative;
    background: #1a1a1a;
    border: 1px dashed #00ff41;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.post-card:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), 0 0 30px rgba(0, 255, 65, 0.05), inset 0 0 15px rgba(0, 255, 65, 0.03);
    border-color: #00ff41;
    transform: translateX(4px);
}

/* Post card scan overlay on hover - EXACT */
.post-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.03) 30%,
        rgba(0, 255, 65, 0.06) 50%,
        rgba(0, 255, 65, 0.03) 70%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.post-card:hover::after {
    animation: card-scan 0.8s ease-out forwards;
}

/* Orange variant */
.post-card.variant-orange {
    border-color: #ff8c00;
}

.post-card.variant-orange::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 140, 0, 0.03) 30%,
        rgba(255, 140, 0, 0.06) 50%,
        rgba(255, 140, 0, 0.03) 70%,
        transparent 100%
    );
}

.post-card.variant-orange:hover {
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.15), 0 0 30px rgba(255, 140, 0, 0.05), inset 0 0 15px rgba(255, 140, 0, 0.03);
    border-color: #ff8c00;
}

@keyframes card-scan {
    0% { left: -60%; }
    100% { left: 120%; }
}

/* Left accent bar - EXACT */
.post-card::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 0;
    width: 2px;
    height: 0%;
    background: #00ff41;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    z-index: 2;
}

.post-card:hover::before {
    height: 80%;
    box-shadow: 0 0 8px #00ff41, 0 0 16px rgba(0, 255, 65, 0.3);
}

.post-card.variant-orange::before {
    background: #ff8c00;
}

.post-card.variant-orange:hover::before {
    box-shadow: 0 0 8px #ff8c00, 0 0 16px rgba(255, 140, 0, 0.3);
}

/* Corner Markers - EXACT from Original */
.corner-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .corner-marker {
    width: 12px;
    height: 12px;
}

.post-card .corner-marker.top-left {
    top: -4px;
    left: -4px;
    border-top: 1px solid #00ff41;
    border-left: 1px solid #00ff41;
}

.post-card .corner-marker.top-right {
    top: -4px;
    right: -4px;
    border-top: 1px solid #00ff41;
    border-right: 1px solid #00ff41;
}

.post-card .corner-marker.bottom-left {
    bottom: -4px;
    left: -4px;
    border-bottom: 1px solid #00ff41;
    border-left: 1px solid #00ff41;
}

.post-card .corner-marker.bottom-right {
    bottom: -4px;
    right: -4px;
    border-bottom: 1px solid #00ff41;
    border-right: 1px solid #00ff41;
}

.post-card:hover .corner-marker {
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

.post-card.variant-orange .corner-marker {
    border-color: #ff8c00;
}

.post-card.variant-orange:hover .corner-marker {
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.6);
}

/* Post Card Status Bar */
.post-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.post-status-bar .status-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-id {
    color: #00ff41;
}

.post-card.variant-orange .post-id {
    color: #ff8c00;
}

.post-status {
    color: #666;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00ff41;
}

.post-card.variant-orange .status-dot {
    background-color: #ff8c00;
}

.post-card:hover .status-dot {
    animation: dot-pulse 0.5s ease-in-out infinite;
}

/* Post Header Line */
.post-header-line {
    height: 1px;
    width: 100%;
    background: #333;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.post-card .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

.post-title-prefix {
    color: #666;
    font-size: 1rem;
}

.post-date {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

/* Title glow on hover */
.post-card:hover .post-title {
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.8));
}

.post-card.variant-orange:hover .post-title {
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.8));
}

/* Post Content Wrapper */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .post-content-wrapper {
        grid-template-columns: 4fr 8fr;
    }
}

/* Post Thumbnail - Smaller size */
.post-thumbnail {
    position: relative;
    background: #000;
    border: 1px solid #333;
    overflow: hidden;
    aspect-ratio: 0.5 / 0;
}

@media (min-width: 768px) {
    .post-thumbnail {
        aspect-ratio: 0.5 / 0;
    }
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    opacity: 1;
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,255,65,0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,255,65,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.thumb-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.625rem;
    background: rgba(0, 0, 0, 0.8);
    color: #999;
    padding: 0.125rem 0.25rem;
    border: 1px solid #333;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.625rem;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #333;
}

.meta-date {
    color: #ff8c00;
}

.post-excerpt {
    color: #999;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Mini Tags */
.post-tags-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-mini {
    font-size: 0.625rem;
    color: #00ff41;
    opacity: 0.8;
}

/* Data Flow - EXACT from Original */
.data-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: #666;
}

.data-flow-icon {
    color: #ff8c00;
}

.data-bars {
    display: flex;
    gap: 2px;
    align-items: end;
    margin-left: 0.5rem;
}

.data-bar {
    width: 4px;
    height: 8px;
    background-color: #00ff41;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.post-card:hover .data-bar {
    opacity: 1;
    animation: data-pulse 0.6s ease-in-out infinite alternate;
}

.post-card:hover .data-bar:nth-child(2) { animation-delay: 0.1s; }
.post-card:hover .data-bar:nth-child(3) { animation-delay: 0.2s; }
.post-card:hover .data-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes data-pulse {
    0% { height: 8px; opacity: 0.5; }
    100% { height: 14px; opacity: 1; }
}

/* Post Footer Bar */
.post-footer-bar {
    border-top: 1px solid #333;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    position: relative;
    z-index: 10;
}

.read-more-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ff41;
    transition: color 0.2s ease;
}

.read-more-indicator:hover {
    color: #00ff88;
}

.read-more-arrow {
    transition: transform 0.3s ease;
}

.post-card:hover .read-more-arrow {
    transform: translateX(4px);
}

.checksum {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.checksum-bar {
    width: 6px;
    height: 12px;
    background-color: #ff8c00;
}

/* Hover Scanlines */
.hover-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.03) 1px,
        rgba(255, 255, 255, 0.03) 2px
    );
    z-index: 5;
}

.post-card:hover .hover-scanlines {
    opacity: 1;
}

/* ==========================================================================
   Border Color Variants
   ========================================================================== */
.post-card.border-color-0,
.post-card.border-color-4,
.post-card.border-color-8 {
    border-color: var(--color-primary);
}

.post-card.border-color-0 .post-id,
.post-card.border-color-0 .corner-marker,
.post-card.border-color-4 .post-id,
.post-card.border-color-4 .corner-marker,
.post-card.border-color-8 .post-id,
.post-card.border-color-8 .corner-marker {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.post-card.border-color-1,
.post-card.border-color-5,
.post-card.border-color-9 {
    border-color: var(--color-secondary);
}

.post-card.border-color-1 .post-id,
.post-card.border-color-1 .corner-marker,
.post-card.border-color-5 .post-id,
.post-card.border-color-5 .corner-marker,
.post-card.border-color-9 .post-id,
.post-card.border-color-9 .corner-marker {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.post-card.border-color-2,
.post-card.border-color-6,
.post-card.border-color-10 {
    border-color: var(--neon-red);
}

.post-card.border-color-2 .post-id,
.post-card.border-color-2 .corner-marker,
.post-card.border-color-6 .post-id,
.post-card.border-color-6 .corner-marker,
.post-card.border-color-10 .post-id,
.post-card.border-color-10 .corner-marker {
    color: var(--neon-red);
    border-color: var(--neon-red);
}

.post-card.border-color-3,
.post-card.border-color-7,
.post-card.border-color-11 {
    border-color: var(--neon-purple);
}

.post-card.border-color-3 .post-id,
.post-card.border-color-3 .corner-marker,
.post-card.border-color-7 .post-id,
.post-card.border-color-7 .corner-marker,
.post-card.border-color-11 .post-id,
.post-card.border-color-11 .corner-marker {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.post-content-single {
    max-width: 800px;
    margin: 0 auto;
}

.post-content-single .post-header {
    margin-bottom: 3rem;
}

.single-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #00ff41;
}

.single-status-bar .status-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-content-single .post-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.post-feature-image {
    width: 100%;
    height: 400px;
    border: 2px solid #444;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Body - Ghost Content Styles */
.post-body,
.gh-content {
    font-size: 1rem;
    line-height: 1.8;
}

.post-body > *,
.gh-content > * {
    margin-bottom: 1.5rem;
}

.post-body > *:last-child,
.gh-content > *:last-child {
    margin-bottom: 0;
}

.post-body h2,
.gh-content h2 {
    font-size: 1.5rem;
    color: #00ff41;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.post-body h3,
.gh-content h3 {
    font-size: 1.25rem;
    color: #ff8c00;
    margin: 2rem 0 1rem;
}

.post-body ul,
.post-body ol,
.gh-content ul,
.gh-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li,
.gh-content li {
    margin-bottom: 0.5rem;
}

.post-body blockquote,
.gh-content blockquote {
    border-left: 3px solid #00ff41;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
}

.post-body code,
.gh-content code {
    background: #0a0a0a;
    padding: 0.2rem 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #ff8c00;
}

.post-body pre,
.gh-content pre {
    background: #0a0a0a;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #333;
}

.post-body pre code,
.gh-content pre code {
    padding: 0;
    background: transparent;
}

.post-body a,
.gh-content a {
    border-bottom: 1px solid #00ff41;
}

.post-body a:hover,
.gh-content a:hover {
    border-bottom-color: #e0e0e0;
}

.post-body img,
.gh-content img {
    border: 2px solid #444;
    margin: 2rem 0;
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.page-feature-image {
    width: 100%;
    height: 300px;
    border: 2px solid #444;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-body {
    font-size: 1rem;
    line-height: 1.8;
}

/* Form Elements - Ensure they display properly */
.page-body form,
.gh-content form {
    margin: 2rem 0;
}

.page-body input,
.page-body textarea,
.page-body select,
.page-body button,
.gh-content input,
.gh-content textarea,
.gh-content select,
.gh-content button {
    background: #0a0a0a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
}

.page-body input:focus,
.page-body textarea:focus,
.page-body select:focus,
.gh-content input:focus,
.gh-content textarea:focus,
.gh-content select:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.page-body button,
.page-body input[type="submit"],
.gh-content button,
.gh-content input[type="submit"] {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: auto;
    padding: 0.75rem 1.5rem;
}

.page-body button:hover,
.page-body input[type="submit"]:hover,
.gh-content button:hover,
.gh-content input[type="submit"]:hover {
    background: #00ff41;
    color: #000;
}

.page-body label,
.gh-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: transparent;
    border-top: 2px solid #333;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-divider {
    color: #333;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 0.625rem;
    color: #666;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.footer-status {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-status .divider {
    color: #444;
}

.footer-progress {
    max-width: 300px;
    margin: 0 auto 1rem;
    height: 4px;
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.footer-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #00ff41 0px,
        #00ff41 2px,
        transparent 2px,
        transparent 4px
    );
    animation: progress-scan 2s linear infinite;
}

@keyframes progress-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-ready {
    font-size: 0.5rem;
    color: #333;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.75rem;
}

.pagination a {
    padding: 0.75rem 1.5rem;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-weight: 700;
}

.pagination a:hover {
    background: #00ff41;
    color: #0d0d0d;
    text-shadow: none;
}

.pagination .page-number {
    color: #666;
}

/* ==========================================================================
   Post Layout with Sidebar - Aligned, no padding
   ========================================================================== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.post-layout.sidebar-left {
    grid-template-columns: var(--sidebar-width) 1fr;
}

.post-layout.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.post-layout.sidebar-left .post-content-single {
    order: 2;
}

.post-layout.sidebar-left .sidebar {
    order: 1;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: #111111;
    border: 2px solid #333;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Sidebar Glitch Hover Effect */
.sidebar-glitch-hover .sidebar-widget {
    transition: all 0.3s ease;
}

.sidebar-glitch-hover .sidebar-widget:hover {
    animation: sidebar-glitch 0.3s ease;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3), inset 0 0 15px rgba(0, 255, 65, 0.1);
}

@keyframes sidebar-glitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    20% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, -1px); filter: hue-rotate(180deg); }
    60% { transform: translate(-1px, 2px); filter: hue-rotate(270deg); }
    80% { transform: translate(1px, -2px); filter: hue-rotate(360deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}

.widget-header {
    background: #0a0a0a;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.1em;
}

.widget-content {
    padding: 1rem;
}

.widget-corners .corner {
    position: absolute;
    font-size: 0.625rem;
    opacity: 0.3;
    color: #00ff41;
}

.widget-corners .top-left { top: 2px; left: 2px; }
.widget-corners .top-right { top: 2px; right: 2px; }
.widget-corners .bottom-left { bottom: 2px; left: 2px; }
.widget-corners .bottom-right { bottom: 2px; right: 2px; }

/* Newsletter Widget */
.newsletter-widget .widget-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1rem;
}

.terminal-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
}

.terminal-btn:hover {
    background: #00ff41;
    color: #0d0d0d;
}

.subscriber-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    font-size: 0.75rem;
    color: #00ff41;
}

.subscription-disabled {
    padding: 0.75rem;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid #ff3333;
    font-size: 0.75rem;
    color: #ff3333;
    text-align: center;
}

/* Recent Posts Widget */
.recent-post-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #222;
    font-size: 0.75rem;
}

.recent-post-link:last-child {
    border-bottom: none;
}

.recent-post-link .post-number {
    color: #00ff41;
    font-size: 0.625rem;
    flex-shrink: 0;
}

.recent-post-link .post-title-short {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-post-link .post-date-short {
    color: #666;
    font-size: 0.625rem;
    flex-shrink: 0;
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.tag-link .tag-bracket {
    color: #666;
}

.tag-link .tag-name {
    color: #00ff41;
}

.tag-link .tag-count {
    color: #333;
}

/* System Widget */
.metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #222;
}

.metric:last-child {
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.metric-label {
    color: #666;
}

.metric-value {
    color: #00ff41;
}

.sidebar-progress {
    max-width: 100%;
    margin-top: 0.5rem;
    height: 4px;
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.sidebar-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    background: repeating-linear-gradient(
        90deg,
        #00ff41 0px,
        #00ff41 2px,
        transparent 2px,
        transparent 4px
    );
}

/* ==========================================================================
   Advertisement Widget
   ========================================================================== */
.advertisement-widget {
    background: #1a1a1a;
    border: 2px solid #ff8c00;
}

.advertisement-widget .widget-header {
    background: #0a0a0a;
    border-bottom: 1px solid #ff8c00;
}

.advertisement-widget .prompt {
    color: #ff8c00;
}

.ad-image {
    margin-bottom: 0.75rem;
    border: 1px solid #333;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-content p {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.ad-btn {
    background: transparent;
    border-color: #ff8c00;
    color: #ff8c00;
}

.ad-btn:hover {
    background: #ff8c00;
    color: #0d0d0d;
}

/* ==========================================================================
   Home Layout with Sidebar - Aligned, no padding
   ========================================================================== */
.home-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.home-content {
    max-width: none;
    width: 100%;
}

/* No sidebar layout */
.home-layout.no-sidebar {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   Ghost Editor Card Width Classes
   ========================================================================== */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

.kg-width-wide img {
    width: 100%;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full img {
    width: 100%;
}

/* ==========================================================================
   Paywall Message
   ========================================================================== */
.paywall-message {
    background: #0a0a0a;
    border: 2px solid #ff3333;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.paywall-message p {
    color: #ff3333;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.paywall-message .btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-weight: 700;
    transition: all 0.2s ease;
}

.paywall-message .btn:hover {
    background: #00ff41;
    color: #0d0d0d;
    text-shadow: none;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
    .post-layout,
    .home-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-layout.sidebar-left {
        grid-template-columns: 1fr;
    }
    
    .post-layout.sidebar-left .post-content-single,
    .post-layout.sidebar-left .sidebar {
        order: unset;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-status {
        display: none;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .content-header .header-right {
        display: none;
    }
    
    .post-content-single .post-title,
    .page-title {
        font-size: 1.5rem;
    }
    
    .post-feature-image,
    .page-feature-image {
        height: 250px;
    }
    
    .footer-status {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-status .divider {
        display: none;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .viewport-corner {
        width: 10px;
        height: 10px;
    }
    
    .pages-nav {
        gap: 1rem;
    }
    
    .pages-nav .page-link {
        font-size: 0.625rem;
    }
}