/*
Theme Name: VulnWatch
Theme URI: https://github.com/your-repo/vuln-watch
Author: Your Name
Description: A clean, professional cybersecurity blog theme for vulnerability management — inspired by VulnCheck's design language.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vuln-watch
Tags: blog, dark, cybersecurity, responsive, two-columns, right-sidebar
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — VulnCheck-inspired dark palette
   ============================================================ */
:root {
    /* Backgrounds — dark navy like a professional security tool */
    --bg-base:        #0b0f1a;
    --bg-surface:     #0f1525;
    --bg-raised:      #141a2e;
    --bg-overlay:     #1a2240;
    --bg-nav:         #080c17;
    --bg-border:      rgba(255,255,255,0.07);

    /* Emerald green — VulnCheck's signature accent */
    --green-500:      #00d17a;
    --green-400:      #00f590;
    --green-300:      #4dffa8;
    --green-600:      #00a85f;
    --green-bg:       rgba(0, 209, 122, 0.08);
    --green-border:   rgba(0, 209, 122, 0.25);

    /* Text */
    --text-primary:   #e8eaf0;
    --text-secondary: #8892a4;
    --text-muted:     #505a6e;
    --text-accent:    #00d17a;

    /* Severity */
    --sev-critical:        #f43f5e;
    --sev-critical-bg:     rgba(244,63,94,0.1);
    --sev-critical-border: rgba(244,63,94,0.3);
    --sev-high:            #f97316;
    --sev-high-bg:         rgba(249,115,22,0.1);
    --sev-high-border:     rgba(249,115,22,0.3);
    --sev-medium:          #eab308;
    --sev-medium-bg:       rgba(234,179,8,0.1);
    --sev-medium-border:   rgba(234,179,8,0.3);
    --sev-low:             #3b82f6;
    --sev-low-bg:          rgba(59,130,246,0.1);
    --sev-low-border:      rgba(59,130,246,0.3);
    --sev-info:            #64748b;
    --sev-info-bg:         rgba(100,116,139,0.1);
    --sev-info-border:     rgba(100,116,139,0.3);

    /* Tag pills */
    --tag-bg:          rgba(255,255,255,0.05);
    --tag-border:      rgba(255,255,255,0.1);
    --tag-text:        #8892a4;
    --tag-bg-hover:    rgba(0,209,122,0.1);
    --tag-border-hover:rgba(0,209,122,0.3);
    --tag-text-hover:  #00d17a;

    /* Typography */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

    /* Layout */
    --container-max: 1216px;
    --sidebar-w:     312px;
    --gap:           24px;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     14px;
    --radius-xl:     20px;

    /* Shadows */
    --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,209,122,0.15);

    --transition: 0.18s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-600); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-400); }
a:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 3px; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.3rem; }
hr { border: none; border-top: 1px solid var(--bg-border); margin: 2rem 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

p { margin-bottom: 1.25rem; }
strong, b { color: var(--text-primary); font-weight: 600; }

blockquote {
    border-left: 2px solid var(--green-500);
    padding: 0.75rem 1.25rem;
    margin: 1.75rem 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-overlay);
    color: var(--green-400);
    padding: 0.15em 0.45em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-border);
}

pre {
    font-family: var(--font-mono);
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--green-400);
}

pre code { background: none; border: none; padding: 0; font-size: inherit; }

table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; }

th {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--bg-border); font-size: 0.9rem; }
tr:hover td { background: var(--bg-surface); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
    width: 100%;
}

.content-area { flex: 1; padding: 3rem 0; }

.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 40px;
    align-items: start;
}

.content-grid.full-width { grid-template-columns: 1fr; }

/* ============================================================
   HEADER — VulnCheck clean sticky nav
   ============================================================ */
.site-header {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--bg-border);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
    padding: 0 var(--gap);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.site-branding:hover { opacity: 0.85; }

.logo-img { height: 36px; width: auto; }

.logo-text { display: flex; flex-direction: column; }

.logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-title span { color: var(--green-500); }

.logo-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
}

/* Nav */
.main-nav { flex: 1; }

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* Header right — search + optional CTA */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search-form:focus-within { border-color: var(--green-border); }

.header-search-form input[type="search"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    width: 200px;
    outline: none;
}

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

.header-search-form button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.header-search-form button:hover { color: var(--green-500); }

/* Mobile burger */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    align-items: center;
    transition: border-color var(--transition), color var(--transition);
}

.nav-toggle:hover { border-color: var(--green-border); color: var(--green-500); }

/* ============================================================
   ANNOUNCEMENT BANNER — VulnCheck top alert bar
   ============================================================ */
.hero-banner {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-border);
    padding: 0.7rem var(--gap);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.banner-label {
    background: var(--green-500);
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2em 0.6em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.banner-text { color: var(--text-secondary); }

.banner-link {
    color: var(--green-500);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.banner-link:hover { color: var(--green-400); }

/* Page-level hero */
.page-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--bg-border);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    background: radial-gradient(ellipse at 80% 50%, rgba(0,209,122,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--green-500);
    border-radius: 9999px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--text-primary);
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ============================================================
   PILL TAGS — VulnCheck-style category tags
   ============================================================ */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25em 0.7em;
    border-radius: 9999px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--tag-text);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.tag:hover {
    background: var(--tag-bg-hover);
    border-color: var(--tag-border-hover);
    color: var(--tag-text-hover);
}

/* ============================================================
   SEVERITY BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25em 0.65em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    border: 1px solid;
}

.badge-critical { background: var(--sev-critical-bg); color: var(--sev-critical); border-color: var(--sev-critical-border); }
.badge-high     { background: var(--sev-high-bg);     color: var(--sev-high);     border-color: var(--sev-high-border); }
.badge-medium   { background: var(--sev-medium-bg);   color: var(--sev-medium);   border-color: var(--sev-medium-border); }
.badge-low      { background: var(--sev-low-bg);      color: var(--sev-low);      border-color: var(--sev-low-border); }
.badge-info     { background: var(--sev-info-bg);     color: var(--sev-info);     border-color: var(--sev-info-border); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--green-500);
    color: #000;
    border-color: var(--green-500);
}

.btn-primary:hover {
    background: var(--green-400);
    border-color: var(--green-400);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,209,122,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--bg-border);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
}

.btn-ghost:hover { color: var(--green-500); background: var(--green-bg); }

/* Read more — VulnCheck arrow-style inline link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--green-500);
    transition: gap var(--transition), color var(--transition);
}

.read-more:hover { color: var(--green-400); gap: 0.55em; }
.read-more::after { content: '→'; }

/* ============================================================
   POST CARDS — VulnCheck blog list style
   ============================================================ */
.posts-grid {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--bg-border);
    background: var(--bg-border); /* gap colour */
    gap: 1px;
}

.post-card {
    background: var(--bg-surface);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: background var(--transition);
    position: relative;
}

/* Green left accent on hover — VulnCheck-style */
.post-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: transparent;
    transition: background var(--transition);
}

.post-card:hover { background: var(--bg-raised); }
.post-card:hover::before { background: var(--green-500); }

/* Featured card — image header */
.post-card.featured {
    padding: 0;
    flex-direction: column;
}

.post-card.featured::before { display: none; }

.card-image {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--bg-overlay);
    display: none;
}

.post-card.featured .card-image { display: block; }

.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.75) saturate(0.8);
}

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

/* Image overlay gradient */
.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-surface), transparent);
    pointer-events: none;
}

.card-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.post-card:not(.featured) .card-body { padding: 0; }

/* Card meta: date + severity badge */
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0;
}

.post-card.featured .card-title { font-size: 1.5rem; }

.card-title a { color: inherit; }
.card-title a:hover { color: var(--green-500); }

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card.featured .card-excerpt { -webkit-line-clamp: 3; }

/* Card footer: tags left, read-more right */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: var(--bg-surface);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--bg-overlay);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.12);
}

.pagination .current {
    background: var(--green-500);
    border-color: var(--green-500);
    color: #000;
    font-weight: 700;
}

.pagination .dots { border-color: transparent; background: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--bg-border);
}

.post-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    color: var(--text-primary);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--bg-border);
}

.post-author-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.post-author-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-chip a { color: var(--text-primary); font-weight: 500; }

.post-featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid var(--bg-border);
    aspect-ratio: 16 / 7;
}

.post-featured-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.85);
}

/* Post body */
.post-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.post-content h2,
.post-content h3,
.post-content h4 { margin: 2.25rem 0 0.85rem; color: var(--text-primary); }

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.2rem; }

.post-content a {
    color: var(--green-500);
    border-bottom: 1px solid rgba(0,209,122,0.3);
}

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

.post-content ul li::marker,
.post-content ol li::marker { color: var(--green-500); }

/* CVE info box */
.cve-box {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-left: 3px solid var(--green-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.875rem;
}

.cve-box-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cve-box-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.cve-box-field { display: flex; flex-direction: column; gap: 0.2rem; }
.cve-box-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cve-box-value { color: var(--text-primary); font-weight: 500; font-family: var(--font-mono); }

/* Notice boxes */
.notice {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    border: 1px solid;
    display: flex;
    gap: 0.75rem;
}

.notice-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.notice-critical { background: var(--sev-critical-bg); border-color: var(--sev-critical-border); color: #fda4af; }
.notice-warning  { background: var(--sev-high-bg);     border-color: var(--sev-high-border);     color: #fdba74; }
.notice-info     { background: var(--sev-low-bg);      border-color: var(--sev-low-border);      color: #93c5fd; }
.notice-success  { background: var(--green-bg);         border-color: var(--green-border);        color: var(--green-400); }

/* Post tags */
.post-tags {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-border);
}

.post-tags-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

/* Author box */
.author-box {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--bg-border);
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.author-name a { color: inherit; }
.author-bio { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--bg-border);
}

.post-nav-item {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    transition: all var(--transition);
}

.post-nav-item:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-raised); }
.post-nav-item.next { text-align: right; }

.post-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.post-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 3.5rem; }

.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.comment-list { list-style: none; padding: 0; }

.comment {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.comment-author-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--text-muted); }
.comment-content { font-size: 0.9rem; color: var(--text-secondary); }

.comment-form-wrapper {
    margin-top: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.comment-form-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: var(--bg-overlay);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--green-border);
    box-shadow: 0 0 0 3px rgba(0,209,122,0.1);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   SIDEBAR — Clean widget panels
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.widget-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--bg-border);
}

.widget-body { padding: 1rem 1.25rem; }

.widget-recent-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--bg-border);
    align-items: flex-start;
}

.widget-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-recent-post:first-child { padding-top: 0; }

.widget-recent-thumb {
    width: 52px; height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    filter: saturate(0.6);
}

.widget-recent-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color var(--transition);
    display: block;
}

.widget-recent-title:hover { color: var(--green-500); }
.widget-recent-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.widget-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

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

.widget ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-border);
    font-size: 0.875rem;
}

.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: color var(--transition); }
.widget ul li a:hover { color: var(--green-500); }

.widget ul li span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-overlay);
    padding: 0.1em 0.5em;
    border-radius: 9999px;
}

.cvss-meter { display: flex; flex-direction: column; gap: 0.7rem; }
.cvss-row { display: flex; align-items: center; gap: 0.65rem; font-size: 0.8rem; }
.cvss-label { width: 62px; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.cvss-bar-track { flex: 1; height: 5px; background: var(--bg-overlay); border-radius: 9999px; overflow: hidden; }
.cvss-bar-fill { height: 100%; border-radius: 9999px; }
.cvss-count { width: 24px; text-align: right; color: var(--text-muted); font-size: 0.75rem; }

/* ============================================================
   FOOTER — VulnCheck four-column footer
   ============================================================ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-border);
    margin-top: auto;
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .logo-title { font-size: 1rem; }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 0.75rem;
    max-width: 240px;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--bg-border);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--text-primary); }

.footer-status { display: flex; align-items: center; gap: 0.5rem; }

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 8px rgba(0,209,122,0.6);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,209,122,0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 3px rgba(0,209,122,0.3); }
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-header { margin-bottom: 2rem; }

.archive-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.archive-title { margin-bottom: 0.4rem; }
.archive-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ============================================================
   404
   ============================================================ */
.error-404-page {
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 20vw, 12rem);
    color: var(--text-primary);
    line-height: 1;
    opacity: 0.04;
    font-weight: 700;
    letter-spacing: -0.05em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 100%;
}

.error-inner { position: relative; z-index: 1; }
.error-message { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.error-sub { color: var(--text-secondary); margin-bottom: 2.5rem; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-header { margin-bottom: 2rem; }
.search-query { color: var(--green-500); font-style: normal; font-weight: 700; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--green-500);
    color: #000;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { top: 0; color: #000; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --sidebar-w: 280px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .header-search-form input { width: 160px; }
}

@media (max-width: 768px) {
    :root { --gap: 16px; }

    .content-grid { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .main-content { order: 1; }

    .nav-toggle { display: flex; }

    .header-nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--bg-border);
        padding: 1rem var(--gap);
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    .header-nav-wrap.open { display: flex; }

    .main-nav { flex: none; width: 100%; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav a { padding: 0.65rem 0.85rem; width: 100%; }

    .header-right { width: 100%; }
    .header-search-form { width: 100%; }
    .header-search-form input { flex: 1; width: auto; }

    .post-card { padding: 1.25rem; }
    .post-card.featured .card-body { padding: 1.25rem; }

    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }

    .author-box { flex-direction: column; }
    .cve-box-row { flex-direction: column; gap: 0.6rem; }
}

@media (max-width: 480px) {
    .footer-main { grid-template-columns: 1fr; }
    .page-hero { padding: 2.5rem 0 2rem; }
    .post-card { padding: 1rem; }
}

@media print {
    .site-header, .sidebar, .site-footer, .post-nav, .comments-section { display: none; }
    .content-grid { grid-template-columns: 1fr; }
    body { background: white; color: #111; }
}
