:root {
    /* Dark bases */
    --deep-black: #0a0a0f;
    --dark-slate: #16161d;
    --midnight-purple: #1f1f2e;
    --dark-indigo: #2a2a3e;
    
    /* Neon accents */
    --electric-pink: #ff006e;
    --hot-pink: #ff3d8f;
    --blazing-orange: #ff8500;
    --amber-glow: #ffa033;
    --cyber-green: #00ff88;
    --mint-glow: #33ffa3;
    
    /* Text */
    --text-primary: #e8e8e8;
    --text-secondary: #9a9a9a;
    --text-dim: #5a5a5a;
}

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

body {
    font-family: 'DM Mono', monospace;
    background: var(--deep-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Vertical neon lines feature - left side */
.neon-feature {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 0 10px;
}

.line {
    flex: 1;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        currentColor 20%, 
        currentColor 80%, 
        transparent 100%);
    filter: blur(1px);
}

.line:nth-child(1) {
    color: var(--electric-pink);
    animation-delay: 0s;
}

.line:nth-child(2) {
    color: var(--blazing-orange);
    animation-delay: 0.8s;
}

.line:nth-child(3) {
    color: var(--cyber-green);
    animation-delay: 1.6s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1.0; }
}

/* Header - simplified for post page */
body > header {
    position: fixed;
    top: 0;
    left: 40px;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, var(--deep-black) 0%, var(--deep-black) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 100;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease-out;
}

.home-link:hover {
    color: var(--electric-pink);
}

.logo {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.3));
}

.wordmark-small {
    font-family: 'Space Mono', monospace;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
}

.wordmark-small .d { color: var(--electric-pink); }
.wordmark-small .a { color: var(--blazing-orange); }
.wordmark-small .y { color: var(--cyber-green); }

.wordmark-small .d { 
    color: var(--electric-pink); 
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.6), 0 0 30px rgba(255, 0, 110, 0.3); 
}

.wordmark-small .a { 
    color: var(--blazing-orange); 
    text-shadow: 0 0 10px rgba(255, 133, 0, 0.6), 0 0 30px rgba(255, 133, 0, 0.3); 
}

.wordmark-small .y { 
    color: var(--cyber-green); 
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3); 
}

nav {
    display: flex;
    gap: 30px;
    animation: fadeInRight 0.8s ease-out;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyber-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Article content */
article {
    margin-left: 40px;
    padding-top: 200px;
    padding-right: 60px;
    padding-bottom: 120px;
    padding-left: 100px;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.post-header {
    margin-top: 0;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-date {
    color: var(--cyber-green);
}

.post-title {
    font-family: 'Space Mono', monospace;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.post-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-content {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.post-content h2 {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 20px;
    color: var(--text-primary);
}

.post-content h3 {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 15px;
    color: var(--text-secondary);
}

.post-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.post-content p strong {
    color: var(--text-primary);
}

.post-content a {
    color: var(--cyber-green);
    text-decoration: none;
    border-bottom: 1px solid var(--cyber-green);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--mint-glow);
    border-bottom-color: var(--mint-glow);
}

.post-content ul, .post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.post-content blockquote {
    border-left: 3px solid var(--electric-pink);
    padding-left: 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--dark-slate);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--cyber-green);
}

.post-content pre {
    background: var(--dark-slate);
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid var(--midnight-purple);
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Prism.js theme overrides — match neon palette */
pre[class*='language-'],
code[class*='language-'] {
    font-family: 'DM Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    background: var(--dark-slate);
    color: #8899bb;
    text-shadow: none;
}

pre[class*='language-'] {
    background: var(--dark-slate);
    border: 1px solid var(--midnight-purple);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

/* Inline code should not be affected by Prism */
:not(pre) > code[class*='language-'] {
    background: var(--dark-slate);
    color: var(--cyber-green);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Neon token overrides */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: var(--text-dim);
    font-style: italic;
}

.token.keyword,
.token.atrule,
.token.attr-value {
    color: var(--electric-pink);
}

.token.function,
.token.class-name {
    color: var(--cyber-green);
}

.token.string,
.token.char,
.token.template-string {
    color: var(--amber-glow);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: var(--blazing-orange);
    background: transparent;
}

.token.number,
.token.boolean,
.token.constant {
    color: var(--hot-pink);
}

.token.property,
.token.tag,
.token.symbol,
.token.deleted {
    color: var(--electric-pink);
}

.token.selector,
.token.attr-name,
.token.builtin,
.token.inserted {
    color: var(--cyber-green);
}

.token.punctuation {
    color: #667799;
}

.token.variable,
.token.regex,
.token.important {
    color: var(--mint-glow);
}

/* Additional token types for better coverage */
.token.decorator,
.token.annotation,
.token.decorator .token.at,
.token.decorator .token.function {
    color: var(--blazing-orange);
}

.token.type,
.token.type-definition {
    color: #78f3e9;
}

.token.parameter {
    color: var(--amber-glow);
}

.token.macro,
.token.directive,
.token.directive-hash {
    color: var(--blazing-orange);
}

.token.include,
.token.header-name {
    color: var(--amber-glow);
}

.token.return-type,
.token.known-class-name {
    color: #78f3e9;
}

/* Format specifiers and escape sequences */
.token.format-spec,
.token.escape {
    color: var(--blazing-orange);
}

/* Triple-quoted strings / docstrings */
.token.triple-quoted-string {
    color: var(--amber-glow);
    font-style: italic;
}

/* Language label above code blocks */
.post-content pre[class*='language-'] {
    position: relative;
}

.post-content pre[class*='language-']::before {
    content: attr(class);
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: var(--midnight-purple);
    border-radius: 0 8px 0 8px;
}

.post-content pre.language-python::before {
    content: 'python';
}

.post-content pre.language-c::before {
    content: 'c';
}

.post-content pre.language-javascript::before,
.post-content pre.language-js::before {
    content: 'javascript';
}

.post-content pre.language-html::before {
    content: 'html';
}

.post-content pre.language-css::before {
    content: 'css';
}

/* Post images */
.post-image {
    margin: 30px 0;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--midnight-purple);
}

.post-image figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    font-style: italic;
}

/* Post footer */
.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--midnight-purple);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.post-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background: var(--dark-slate);
    color: var(--text-secondary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--midnight-purple);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--cyber-green);
    color: var(--cyber-green);
    transform: translateY(-2px);
}

/* Navigation corners */
.corner-nav {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 200;
}

.corner-button {
    width: 100px;
    height: 100px;
    background: var(--dark-slate);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.corner-button.prev {
    border: 2px solid var(--blazing-orange);
    box-shadow: 0 0 30px rgba(255, 133, 0, 0.3);
}

.corner-button.next {
    border: 2px solid var(--cyber-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.corner-button.home {
    border: 2px solid var(--electric-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.corner-button:hover {
    transform: scale(1.1);
}

.corner-button.prev:hover {
    box-shadow: 0 0 50px rgba(255, 133, 0, 0.6);
}

.corner-button.next:hover {
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.6);
}

.corner-button.home:hover {
    box-shadow: 0 0 50px rgba(255, 0, 110, 0.6);
}

.corner-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
}

.corner-button.prev .corner-text { color: var(--blazing-orange); }
.corner-button.next .corner-text { color: var(--cyber-green); }
.corner-button.home .corner-text { color: var(--electric-pink); }

.corner-overlay {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    pointer-events: none;
}

.corner-overlay.active {
    transform: scale(50);
    border-radius: 0;
}

.corner-overlay.prev {
    background: var(--blazing-orange);
    bottom: 40px;
    right: 160px;
}

.corner-overlay.next {
    background: var(--cyber-green);
    bottom: 40px;
    right: 40px;
}

.corner-overlay.home {
    background: var(--electric-pink);
    bottom: 40px;
    right: 40px;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .neon-feature {
        width: 20px;
        gap: 4px;
        padding: 0 5px;
    }

    body > header {
        left: 20px;
        right: 0;
        height: 100px;
        padding: 0 20px;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .wordmark-small {
        font-size: 16px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    article {
        margin-left: 20px;
        padding: 140px 20px 80px;
    }

    .post-header {
        margin-bottom: 40px;
    }

    .post-meta {
        gap: 15px;
        font-size: 11px;
        margin-bottom: 15px;
    }

    .post-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .post-subtitle {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 24px;
        margin: 40px 0 15px;
    }

    .post-content h3 {
        font-size: 20px;
        margin: 30px 0 12px;
    }

    .post-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .post-content ul, .post-content ol {
        margin: 20px 0;
        padding-left: 25px;
    }

    .post-content li {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .post-content blockquote {
        padding-left: 20px;
        margin: 25px 0;
        font-size: 15px;
    }

    .post-content pre {
        padding: 20px;
        margin: 25px 0;
        font-size: 13px;
    }

    .post-content pre[class*='language-'],
    pre[class*='language-'] {
        padding: 30px 20px 20px;
        font-size: 13px;
        margin: 25px 0;
    }

    pre[class*='language-'],
    code[class*='language-'] {
        font-size: 13px;
    }

    .post-footer {
        margin-top: 60px;
        padding-top: 30px;
    }

    .post-tags {
        gap: 10px;
    }

    .tag {
        padding: 5px 12px;
        font-size: 11px;
    }

    .corner-nav {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .corner-button {
        width: 65px;
        height: 65px;
    }

    .corner-text {
        font-size: 9px;
    }

    .corner-overlay.prev {
        right: 95px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .neon-feature {
        width: 15px;
        gap: 3px;
        padding: 0 3px;
    }

    body > header {
        left: 15px;
        height: 80px;
        padding: 0 15px;
    }

    .home-link {
        gap: 12px;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .wordmark-small {
        font-size: 14px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 11px;
    }

    article {
        margin-left: 15px;
        padding: 120px 15px 80px;
    }

    .post-title {
        font-size: 26px;
    }

    .post-subtitle {
        font-size: 14px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .post-content p,
    .post-content li {
        font-size: 14px;
    }

    .post-content pre[class*='language-'],
    pre[class*='language-'] {
        padding: 28px 12px 12px;
        font-size: 12px;
        margin: 20px 0;
        border-radius: 6px;
    }

    pre[class*='language-'],
    code[class*='language-'] {
        font-size: 12px;
    }

    .post-content pre[class*='language-']::before {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 0 6px 0 6px;
    }

    .corner-nav {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .corner-button {
        width: 55px;
        height: 55px;
    }

    .corner-text {
        font-size: 8px;
    }

    .corner-overlay.prev {
        right: 78px;
    }
}
