/*
Theme Name: Cyberpunk Archive
Theme URI: https://example.com/cyberpunk
Author: Rodri
Author URI: https://rodri.dev
Description: Cyberpunk theme adapted from static site.
Version: 1.0
*/
:root {
    --bg-color: #050508;
    --surface-color: #11111a;
    --surface-light: #1a1a2e;
    --primary-color: #00f0ff;
    --secondary-color: #bd00ff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(189, 0, 255, 0.05) 0%, rgba(0, 240, 255, 0.02) 20%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: rotateBg 60s linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
}

.logo-bracket {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Sections */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 65, 0);
    }

    100% {
        transform: scale(0.95);
    }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #00ff41;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    50% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    50% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 2px);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
        transform: translate(-1px, -1px);
    }
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 1.5rem 0 3rem;
    min-height: 50px;
}

/* Code Window */
.code-window {
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(0, 240, 255, 0.05);
    transition: var(--transition);
}

.code-window:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.window-header {
    background: var(--surface-light);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.close {
    background: #ff5f56;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27c93f;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1rem;
    text-align: center;
    flex: 1;
}

.window-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.prompt {
    color: #00ff41;
}

.output {
    color: var(--text-muted);
    padding-left: 1rem;
}

/* Blog Section */
.section-header {
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sticky-post {
    border: 2px solid rgba(189, 0, 255, 0.5);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.15), inset 0 0 15px rgba(189, 0, 255, 0.05);
}

@media (min-width: 768px) {
    .sticky-post {
        grid-column: 1 / -1;
    }

    .sticky-post .card-image-wrapper {
        height: 300px;
    }
}

.sticky-post:hover {
    border-color: rgba(189, 0, 255, 0.8);
    box-shadow: 0 15px 40px rgba(189, 0, 255, 0.3), inset 0 0 20px rgba(189, 0, 255, 0.1);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tech-bg-1 {
    background: linear-gradient(45deg, #1a1a2e, #0f3460);
}

.tech-bg-2 {
    background: linear-gradient(45deg, #16213e, #e94560);
}

.tech-bg-3 {
    background: linear-gradient(45deg, #0f0c29, #302b63);
}

.blog-card:hover .card-image {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--primary-color);
}

.card-content {
    padding: 2rem;
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sticky-post .card-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    font-family: var(--font-mono);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.tech-tag {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: 50px;
    margin: 0.5rem 0.5rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface-color);
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    opacity: 0.6;
}

.admin-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Infinite Scroll Loader */
.infinite-loader {
    text-align: center;
    padding: 3rem 0;
    font-family: var(--font-mono);
    color: var(--primary-color);
    display: none;
    width: 100%;
}

.infinite-loader.is-loading {
    display: block;
}

.infinite-loader::before {
    content: "Sys.fetch(registros) > cargando...";
    animation: typing 1.5s infinite alternate;
}

@keyframes typing {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-color);
    }
}

/* =========================================
   SINGLE POST STYLES & TYPOGRAPHY
   ========================================= */
.single-post-main {
    max-width: 1400px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.single-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.single-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    word-break: break-word;
}

.single-meta {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
}

.single-featured-image {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.single-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(0, 240, 255, 0.3);
    transition: var(--transition);
}

.single-content a:hover {
    text-decoration-color: var(--primary-color);
}

.single-content blockquote {
    border-left: 4px solid var(--secondary-color);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: rgba(189, 0, 255, 0.05);
    font-style: italic;
    color: var(--text-muted);
}

.single-content pre,
.single-content code {
    font-family: var(--font-mono);
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.single-content code {
    padding: 0.2rem 0.4rem;
    color: var(--primary-color);
    font-size: 0.9em;
}

.single-content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.single-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.single-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-tags {
    margin-bottom: 2rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-navigation a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.post-navigation a:hover {
    color: var(--primary-color);
}

/* =========================================
   GLOBAL CYBERPUNK AESTHETICS (SCROLLBAR & SELECTION)
   ========================================= */
::selection {
    background: rgba(0, 240, 255, 0.4);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid rgba(0, 240, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* =========================================
   COMMENTS STYLES v3 — CARD LAYOUT
   ========================================= */
.comments-area {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px dashed rgba(0, 240, 255, 0.2);
    position: relative;
}

.comments-area::before {
    content: "SYS_COMMENTS_LOG";
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-color);
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.comments-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-count-badge {
    background: rgba(189, 0, 255, 0.15);
    border: 1px solid rgba(189, 0, 255, 0.4);
    color: var(--secondary-color);
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.comment-list {
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
}

/* Individual comment node */
.comment-node {
    margin-bottom: 1.5rem;
}

.comment-card {
    background: rgba(8, 8, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.comment-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: -4px 0 20px rgba(0, 240, 255, 0.1), 0 0 30px rgba(0, 240, 255, 0.05);
}

.comment-node.is-post-author>.comment-card {
    border-left-color: #00ff41;
    box-shadow: -3px 0 12px rgba(0, 255, 65, 0.1);
}

/* Comment header row */
.comment-card-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.comment-avatar-wrap .avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 0;
    border: 1px solid rgba(0, 240, 255, 0.3);
    filter: sepia(80%) hue-rotate(150deg) saturate(200%);
    display: block;
}

.author-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #00ff41;
    color: #000;
    font-size: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comment-author-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.sys-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 3px;
    opacity: 0.7;
}

.comment-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-date a {
    color: inherit;
    text-decoration: none;
}

.comment-date a:hover {
    color: var(--primary-color);
}

.comment-actions-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.comment-actions-top a,
.comment-actions-top .comment-reply-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.comment-actions-top a:hover,
.comment-actions-top .comment-reply-link:hover {
    color: white;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
}

.comment-body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #e2e8f0;
    word-break: break-word;
}

.comment-body-text p {
    margin: 0 0 0.75rem;
}

.comment-body-text p:last-child {
    margin: 0;
}

.comment-awaiting {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ffbd2e;
    background: rgba(255, 189, 46, 0.08);
    border: 1px solid rgba(255, 189, 46, 0.2);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

/* Nested comments */
.children {
    list-style: none;
    margin: 1.5rem 0 0 2.5rem;
    padding: 0;
    position: relative;
}

.children::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 240, 255, 0.3), transparent);
}

.children .comment-card {
    border-left-color: var(--secondary-color);
}

/* No comments state */
.no-comments {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ff5f56;
    padding: 1rem;
    border: 1px dashed rgba(255, 95, 86, 0.3);
    margin-bottom: 2rem;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 3rem;
}

/* =========================================
   COMMENT FORM v3
   ========================================= */
.comment-respond {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 2.5rem;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.03);
}

.comment-respond::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 240, 255, 0.4) 50%);
}

.comment-reply-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2rem;
}

.comment-reply-title .prompt {
    color: #00ff41;
}

.comment-form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .comment-form-fields-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group label .required {
    color: #ff5f56;
    margin-left: 2px;
}

.form-control,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(0, 240, 255, 0.4);
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    resize: vertical;
}

.form-control:focus,
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-left-color: var(--primary-color);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
    color: var(--primary-color);
}

.form-control::placeholder,
.comment-respond input::placeholder,
.comment-respond textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
}

.comment-submit-btn {
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 1px;
}

.form-submit {
    margin-top: 1.5rem;
}

.comment-notes {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   SINGLE POST EXTRAS — REACTIONS & READING TIME
   ========================================= */
.single-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reading-time-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.7rem;
}

.post-reactions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: rgba(0, 240, 255, 0.07);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--primary-color);
}

.reaction-btn.reacted {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.reaction-count {
    font-weight: 700;
    min-width: 1ch;
}

/* Terminal bar copy button */
.terminal-bar-actions {
    margin-left: auto;
}

.copy-link-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    line-height: 1;
}

.copy-link-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Toast notification */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Navigation Overrides for wp_nav_menu */
.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Simulated terminal top bar for single posts */
.single-terminal-bar {
    display: flex;
    align-items: center;
    background: #0d0d1a;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    gap: 0.75rem;
}

.single-terminal-bar .mac-btns {
    display: flex;
    gap: 6px;
}

.single-terminal-bar .mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.single-terminal-bar .close {
    background: #ff5f56;
}

.single-terminal-bar .minimize {
    background: #ffbd2e;
}

.single-terminal-bar .maximize {
    background: #27c93f;
}

.single-terminal-bar .title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-grow: 1;
    text-align: center;
}

.single-article {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 2.5rem 3rem;
}

@media (max-width: 768px) {
    main {
        padding: 0 0.5rem;
    }

    .single-post-main {
        padding: 0 0.25rem;
        margin-top: 5rem;
    }

    .single-article {
        padding: 1.5rem 0.5rem;
        border-radius: 0;
    }

    .single-terminal-bar {
        border-radius: 0;
    }

    .comment-card-header {
        grid-template-columns: 44px 1fr;
    }

    .comment-actions-top {
        grid-column: 1 / -1;
    }
}

.comments-area {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px dashed rgba(0, 240, 255, 0.2);
    position: relative;
}

.comments-area::before {
    content: "SYS_COMMENTS_LOG";
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-color);
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(189, 0, 255, 0.3);
}

.comment-list {
    list-style: none;
    margin: 0 0 3rem 0;
    padding: 0;
}

.comment {
    background: rgba(17, 17, 26, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.comment:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: -3px 0 15px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.comment-body {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 600px) {
    .comment-body {
        grid-template-columns: 1fr;
    }
}

.comment-author .avatar {
    border-radius: 0;
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 2px;
    background: var(--bg-color);
    filter: sepia(100%) hue-rotate(150deg) saturate(300%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.comment-content-wrapper {
    display: flex;
    flex-direction: column;
}

.comment-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.fn {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fn::after {
    content: "@SYS";
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 2px;
}

.comment-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.comment-text p {
    margin-bottom: 1rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    align-self: flex-end;
}

.reply a {
    display: inline-block;
    color: var(--bg-color);
    background: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.2s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.reply a:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
}

.children {
    list-style: none;
    padding-left: 0;
    margin-left: 3rem;
    margin-top: 2rem;
    position: relative;
}

.children::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 2rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.children .comment {
    border-left-color: var(--secondary-color);
}

/* Comment Form Refinements */
.comment-respond {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 2.5rem;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.comment-respond::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 240, 255, 0.5) 50%);
}

.comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    color: white;
}

.form-control {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    font-family: var(--font-mono);
    padding: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-left-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Simulated terminal top bar for single posts */
.single-terminal-bar {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 0;
}

.single-terminal-bar .mac-btns {
    display: flex;
    gap: 8px;
    margin-right: 1rem;
}

.single-terminal-bar .mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.single-terminal-bar .close {
    background: #ff5f56;
}

.single-terminal-bar .minimize {
    background: #ffbd2e;
}

.single-terminal-bar .maximize {
    background: #27c93f;
}

.single-terminal-bar .title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
}

.single-article {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 2rem 3rem;
}

@media (max-width: 768px) {
    .single-article {
        padding: 1.5rem 1rem;
    }
}