/*
Theme Name: Neon Blood
Theme URI: https://cultofjames.org
Author: RAI
Description: Cyberpunk cult manifesto theme. Dark terminals, neon glitch, digital prophecy. Inspired by Shadowrun, VtM, and the static between radio stations at 3 AM.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: neonblood
*/

/* ── RESET & BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-void: #0a0a0f;
    --bg-terminal: #0d0d14;
    --bg-panel: #12121c;
    --bg-card: #16162266;
    --neon-cyan: #00fff2;
    --neon-magenta: #ff00ff;
    --neon-red: #ff0044;
    --neon-yellow: #ffee00;
    --neon-green: #00ff88;
    --text-primary: #c8c8d4;
    --text-dim: #6a6a7a;
    --text-bright: #e8e8f0;
    --border-glow: #00fff220;
    --border-dim: #2a2a3a;
    --font-mono: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
    --font-display: 'Orbitron', 'IBM Plex Mono', monospace;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --max-width: 820px;
    --gutter: 2rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── SCANLINE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ── GLITCH KEYFRAMES ── */
@keyframes glitch-shift {
    0%, 100% { text-shadow: -2px 0 var(--neon-magenta), 2px 0 var(--neon-cyan); }
    25% { text-shadow: 2px 0 var(--neon-magenta), -2px 0 var(--neon-cyan); }
    50% { text-shadow: -1px 2px var(--neon-red), 1px -2px var(--neon-green); }
    75% { text-shadow: 1px -1px var(--neon-magenta), -1px 1px var(--neon-cyan); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px rgba(0, 255, 242, 0.1); }
    50% { box-shadow: 0 0 10px var(--neon-cyan), 0 0 30px rgba(0, 255, 242, 0.2); }
}

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

/* ── LAYOUT ── */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--gutter);
}

/* ── HEADER ── */
.site-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: 3rem;
    position: relative;
}

.site-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    animation: glitch-shift 4s infinite, flicker 8s infinite;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-magenta);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}

.site-tagline::before {
    content: '> ';
    color: var(--neon-green);
}

.site-tagline::after {
    content: '_';
    animation: cursor-blink 1s infinite;
    color: var(--neon-green);
}

/* ── NAVIGATION ── */
.site-nav {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.site-nav a {
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.site-nav a:hover,
.site-nav a.current {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.5);
}

.site-nav .sep {
    color: var(--border-dim);
    margin: 0 0.2rem;
}

/* ── POSTS ── */
article.post {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--neon-cyan);
    position: relative;
}

article.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

article.sticky {
    border-left-color: var(--neon-magenta);
}

article.sticky::before {
    background: linear-gradient(90deg, var(--neon-magenta), transparent);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.post-meta .date::before {
    content: '[ ';
    color: var(--neon-green);
}

.post-meta .date::after {
    content: ' ]';
    color: var(--neon-green);
}

.post-meta .categories::before {
    content: '// ';
    color: var(--neon-magenta);
}

/* ── POST CONTENT ── */
.post-content {
    font-size: 1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 242, 0.3);
    transition: all 0.3s;
}

.post-content a:hover {
    color: var(--neon-magenta);
    border-bottom-color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-display);
    color: var(--text-bright);
    margin: 2rem 0 1rem;
    letter-spacing: 0.05em;
}

.post-content h2 {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.1rem;
    color: var(--neon-magenta);
}

.post-content blockquote {
    border-left: 3px solid var(--neon-magenta);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    color: var(--text-dim);
    font-style: italic;
}

.post-content blockquote::before {
    content: '>';
    font-family: var(--font-mono);
    color: var(--neon-magenta);
    margin-right: 0.5rem;
    font-style: normal;
}

.post-content pre,
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-content code {
    background: var(--bg-card);
    color: var(--neon-green);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

.post-content pre {
    background: var(--bg-terminal);
    border: 1px solid var(--border-dim);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.post-content pre::before {
    content: 'TERMINAL';
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    padding: 0.2rem 0.5rem;
    background: var(--border-dim);
    letter-spacing: 0.1em;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--neon-green);
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content ul li::marker {
    color: var(--neon-cyan);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-dim);
    margin: 1.5rem 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-dim);
    margin: 2rem 0;
}

/* ── READ MORE ── */
.read-more {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-cyan);
    margin-top: 1rem;
    transition: all 0.3s;
}

.read-more:hover {
    background: var(--neon-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.4);
}

.read-more::after {
    content: ' >>';
}

/* ── SIDEBAR / WIDGETS ── */
.sidebar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dim);
}

.widget {
    margin-bottom: 2.5rem;
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-magenta);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-dim);
}

.widget-title::before {
    content: ':: ';
    color: var(--neon-green);
}

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

.widget li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--bg-card);
}

.widget a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--neon-cyan);
}

/* ── COMMENTS ── */
.comments-area {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
}

.comments-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.comment-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-magenta);
}

.comment-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ── FORMS ── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    background: var(--bg-terminal);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.1);
}

input[type="submit"],
button,
.btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    background: transparent;
    border: 1px solid var(--neon-cyan);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover,
button:hover,
.btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.4);
}

/* ── PAGINATION ── */
.pagination {
    text-align: center;
    margin: 3rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border-dim);
    margin: 0 0.2rem;
}

.pagination a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.pagination .current {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* ── FOOTER ── */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.site-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.site-footer .footer-links {
    margin-bottom: 1rem;
}

.site-footer .footer-links a {
    margin: 0 0.8rem;
    text-transform: uppercase;
}

.site-footer .copyright::before {
    content: '[ ';
    color: var(--neon-magenta);
}

.site-footer .copyright::after {
    content: ' ]';
    color: var(--neon-magenta);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    :root {
        --gutter: 1rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    article.post {
        padding: 1.2rem;
    }

    .post-title {
        font-size: 1.2rem;
    }
}

/* ── WORDPRESS ADMIN BAR FIX ── */
#wpadminbar {
    opacity: 0.7;
}

#wpadminbar:hover {
    opacity: 1;
}

/* ── CATEGORY / TAG PAGES ── */
.archive-header {
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-panel);
    border-left: 3px solid var(--neon-magenta);
}

.archive-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--neon-magenta);
    letter-spacing: 0.05em;
}

.archive-title::before {
    content: 'FILTER: ';
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ── SEARCH ── */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input[type="search"] {
    flex: 1;
    border-right: none;
}

.search-form input[type="submit"] {
    flex-shrink: 0;
}
