/* ═══════════════════════════════════════════════════════════════
   SimplisticNode Blog – Stylesheet
   Design: Dark void (#030712) + Neon Cyan (#06b6d4)
   Font:   Plus Jakarta Sans / JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --brand-50:  #ecfeff;
    --brand-100: #cffafe;
    --brand-200: #a5f3fc;
    --brand-300: #67e8f9;
    --brand-400: #22d3ee;
    --brand-500: #06b6d4;
    --brand-600: #0891b2;
    --brand-700: #0e7490;
    --brand-800: #155e75;
    --brand-900: #164e63;
    --brand-950: #083344;

    --void-800: #1e293b;
    --void-900: #0f172a;
    --void-950: #020617;

    --bg:      #030712;
    --surface: #0f172a;
    --border:  rgba(255,255,255,0.06);
    --text:    #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ── Glass Nav ────────────────────────────────────────────────── */
.glass-nav {
    background: rgba(3,7,18,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: var(--text);
    flex-shrink: 0;
}

.nav-logo-img {
    height: 24px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nav-logo-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: var(--brand-500);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.nav-search input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px 8px 36px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text);
    width: 200px;
    transition: border-color 0.2s, width 0.3s;
    outline: none;
}

.nav-search input:focus {
    border-color: var(--brand-500);
    width: 260px;
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.mobile-menu.open { display: block; }

.mobile-link {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-link:hover, .mobile-link.accent { color: var(--brand-400); }

.mobile-search {
    padding: 12px 0;
}

.mobile-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    outline: none;
}

.mobile-search input:focus { border-color: var(--brand-500); }

.nav-spacer { height: 64px; }

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Cyber Grid Background ────────────────────────────────────── */
.cyber-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
}

/* ── Section ──────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-400);
}

.section-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.section-link:hover { color: var(--brand-400); }

/* ── Post Cards ───────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6,182,212,0.2);
    box-shadow: 0 12px 40px rgba(6,182,212,0.06);
}

.post-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--void-800);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(3,7,18,0.8);
    backdrop-filter: blur(8px);
    color: var(--brand-400);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(6,182,212,0.2);
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 23px;
}

.post-card-title a {
    color: #f8fafc;
    transition: color 0.2s;
}

.post-card-title a:hover { color: var(--brand-400); }

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.post-card-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.post-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ── Featured Post ────────────────────────────────────────────── */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
}

.featured-post:hover {
    border-color: rgba(6,182,212,0.15);
}

.featured-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--void-800);
}

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

.featured-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-400);
    margin-bottom: 16px;
}

.featured-content h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.featured-content h2 a {
    color: var(--text);
    transition: color 0.2s;
}

.featured-content h2 a:hover { color: var(--brand-400); }

.featured-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-content { padding: 24px; }
}

/* ── Post Hero Banner ──────────────────────────────────────────── */
.post-hero {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    filter: blur(40px) saturate(1.5);
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(3,7,18,0.5) 0%,
        var(--surface) 50%,
        var(--bg) 100%
    );
}

.post-hero-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    opacity: 0.6;
}

.post-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.post-hero-content .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-400);
    margin-bottom: 20px;
    padding: 5px 14px;
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: 6px;
    background: rgba(6,182,212,0.06);
    transition: all 0.2s;
}

.post-hero-content .category-badge:hover {
    background: rgba(6,182,212,0.12);
    border-color: rgba(6,182,212,0.4);
}

.post-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 720px;
    margin: 0 auto 16px;
    color: var(--text);
}

.post-hero-excerpt {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.post-author-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* ── Single Post Author Row ────────────────────────────────────── */

.post-author-row img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.post-author-row .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.post-featured-img {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-featured-img img {
    width: 100%;
    display: block;
}

/* Post body content */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
}

.post-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 36px 0 12px;
}

.post-body p { margin-bottom: 20px; }

.post-body a {
    color: var(--brand-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover { color: var(--brand-300); }

.post-body img {
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid var(--border);
}

.post-body blockquote {
    border-left: 3px solid var(--brand-500);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(6,182,212,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body pre {
    background: var(--void-950);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 14px;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

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

.post-body ul, .post-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-body li { margin-bottom: 8px; }

/* Tags below post */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px auto 0;
    max-width: 720px;
}

.tag-chip {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.tag-chip:hover {
    color: var(--brand-400);
    border-color: rgba(6,182,212,0.3);
    background: rgba(6,182,212,0.06);
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-400);
    margin-bottom: 16px;
}

.sidebar-widget a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.sidebar-widget a:last-child { border-bottom: none; }
.sidebar-widget a:hover { color: var(--text); }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--brand-500);
    color: var(--brand-400);
    background: rgba(6,182,212,0.06);
}

.pagination .active {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--bg);
    font-weight: 700;
}

/* ── Empty / Search ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.search-header {
    padding: 60px 0 20px;
    text-align: center;
}

.search-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-header p {
    color: var(--text-secondary);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--brand-500);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--brand-400);
    box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
    margin-top: 80px;
}

.footer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 20px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--brand-400); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ── RSS Icon ─────────────────────────────────────────────────── */
.rss-link {
    color: var(--text-muted);
    transition: color 0.2s;
}
.rss-link:hover { color: #f97316; }

/* ── Utility ──────────────────────────────────────────────────── */
.text-brand { color: var(--brand-400); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* ── Category / Tag page header ───────────────────────────────── */
.archive-header {
    padding: 60px 0 20px;
    text-align: center;
}

.archive-header .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-400);
    margin-bottom: 8px;
}

.archive-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.archive-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}
