/* ================================================================
   AI Agent News — main.css
   WordPress 6.7.2 / Hueman 3.7.27 child theme
   ================================================================ */

/* ──────────────────────────────────────────
   VARIABLES
────────────────────────────────────────── */
:root {
  --bg:       #0a0e27;
  --bg-card:  #0d1235;
  --bg-surf:  #111540;
  --purple:   #7c3aed;
  --cyan:     #06b6d4;
  --green:    #10b981;
  --gold:     #f59e0b;
  --pink:     #ec4899;
  --blue:     #3b82f6;
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --dim:      #4a5568;
  --border:   rgba(255,255,255,.07);
  --radius:   12px;
}

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 50% at 10% -5%,  rgba(124,58,237,.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 105%, rgba(6,182,212,.08)  0%, transparent 60%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1340px; margin: 0 auto; padding: 0 24px; }

/* ──────────────────────────────────────────
   HEADER
────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,14,39,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.site-header.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  max-width: 1340px; margin: 0 auto;
  transition: padding .3s;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple) 0%, #2563eb 60%, var(--cyan) 100%);
  display: grid; place-items: center; font-size: 17px; flex-shrink: 0;
  box-shadow: 0 0 18px rgba(124,58,237,.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-tagline { font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }

/* Header search */
.header-search { flex: 1; max-width: 340px; margin-left: auto; }
.search-form, .h-search-form, .searchform {
  display: flex; align-items: center;
  background: var(--bg-surf); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: border-color .2s;
}
.search-form:focus-within, .h-search-form:focus-within, .searchform:focus-within {
  border-color: rgba(124,58,237,.55);
}
.search-form input[type="search"],
.searchform input[type="search"],
.searchform input[type="text"],
.h-search-form input {
  background: transparent; border: none; color: var(--text);
  font-family: inherit; font-size: 13px; padding: 8px 14px; flex: 1; outline: none; min-width: 0;
}
.search-form input::placeholder,
.searchform input::placeholder { color: var(--dim); }
.search-form button, .searchform button, .searchform input[type="submit"],
.h-search-form button {
  background: transparent; border: none; color: var(--muted);
  padding: 8px 12px; font-size: 14px; transition: color .2s;
}
.search-form button:hover, .searchform button:hover,
.h-search-form button:hover { color: var(--cyan); }

/* Live badge */
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase; color: #34d399;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  border-radius: 20px; padding: 4px 10px; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
.live-dot { width: 5px; height: 5px; background: #34d399; border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }

/* Burger */
.burger-btn {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 4px; flex-shrink: 0;
}
.burger-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────
   MAIN NAV
────────────────────────────────────────── */
.main-nav { background: rgba(9,13,36,.97); border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 24px;
  display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 10px 15px;
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500;
  color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.nav-link:hover        { color: #e2e8f0; }
.nav-link.n-all        { color: var(--text); border-bottom-color: var(--cyan); }
.nav-link.n-ai:hover,     .nav-link.n-ai.active     { color: #a78bfa; border-bottom-color: var(--purple); }
.nav-link.n-llm:hover,    .nav-link.n-llm.active    { color: #22d3ee; border-bottom-color: var(--cyan); }
.nav-link.n-github:hover, .nav-link.n-github.active { color: #34d399; border-bottom-color: var(--green); }
.nav-link.n-prl:hover,    .nav-link.n-prl.active    { color: #fbbf24; border-bottom-color: var(--gold); }
.nav-link.n-tools:hover,  .nav-link.n-tools.active  { color: #f472b6; border-bottom-color: var(--pink); }
.nav-link.n-digest:hover, .nav-link.n-digest.active { color: #60a5fa; border-bottom-color: var(--blue); }

/* ──────────────────────────────────────────
   MOBILE MENU
────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300; overflow-y: auto;
  background: rgba(8,12,32,.98); backdrop-filter: blur(12px);
  transform: translateX(-100%); transition: transform .32s cubic-bezier(.22,.8,.38,1);
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateX(0); pointer-events: all; }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.is-visible { opacity: 1; pointer-events: all; }
.mobile-menu-inner { padding: 20px 24px 40px; }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.mobile-close {
  background: rgba(255,255,255,.08); border: none; color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; font-size: 14px;
  display: grid; place-items: center; transition: color .2s, background .2s;
}
.mobile-close:hover { color: var(--text); background: rgba(255,255,255,.12); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--muted); transition: background .15s, color .15s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* ──────────────────────────────────────────
   TICKER
────────────────────────────────────────── */
.ticker-bar {
  background: rgba(124,58,237,.08); border-bottom: 1px solid rgba(124,58,237,.18); padding: 7px 0; overflow: hidden;
}
.ticker-inner { max-width: 1340px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker-badge {
  background: var(--purple); color: #fff; font-family: 'Inter', sans-serif;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.ticker-track-wrap { flex: 1; overflow: hidden; min-width: 0; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track {
  display: flex; width: max-content;
  animation: tickerScroll 40s linear infinite;
  font-size: 12.5px; color: var(--muted); white-space: nowrap; gap: 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding-right: 20px; }
.ticker-track strong { color: var(--text); }

/* ──────────────────────────────────────────
   MAIN / LAYOUT
────────────────────────────────────────── */
.site-main { padding: 32px 0 72px; }
.content-layout { display: grid; grid-template-columns: 1fr 316px; gap: 32px; align-items: start; }
.section-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--dim); white-space: nowrap; }
.section-rule { flex: 1; height: 1px; background: var(--border); }
.section-tally { font-size: 11px; color: var(--dim); background: rgba(255,255,255,.05); padding: 2px 8px; border-radius: 10px; }

/* ──────────────────────────────────────────
   CATEGORY BADGES
────────────────────────────────────────── */
.cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.cb-ai-agents { background: rgba(124,58,237,.18); color: #a78bfa; border: 1px solid rgba(124,58,237,.35); }
.cb-llm       { background: rgba(6,182,212,.14);  color: #22d3ee; border: 1px solid rgba(6,182,212,.3);   }
.cb-github    { background: rgba(16,185,129,.14); color: #34d399; border: 1px solid rgba(16,185,129,.3);  }
.cb-prl       { background: rgba(245,158,11,.14); color: #fbbf24; border: 1px solid rgba(245,158,11,.3);  }
.cb-tools     { background: rgba(236,72,153,.14); color: #f472b6; border: 1px solid rgba(236,72,153,.3);  }
.cb-digest    { background: rgba(59,130,246,.14); color: #60a5fa; border: 1px solid rgba(59,130,246,.3);  }

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
.hero-wrap { margin-bottom: 36px; }
.hero-card {
  display: block; position: relative; border-radius: 16px; overflow: hidden;
  height: 430px; cursor: pointer;
  background: linear-gradient(135deg, #12083a 0%, #071b45 55%, #0a0e27 100%);
}
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: opacity .4s; }
.hero-card:hover .hero-img img { opacity: .45; }
.hero-grid-layer {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,58,237,.07) 1px, transparent 1px), linear-gradient(90deg,rgba(124,58,237,.07) 1px, transparent 1px);
  background-size: 55px 55px;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-orb-1 { width: 300px; height: 300px; top: -60px; right: 15%; background: rgba(124,58,237,.22); }
.hero-orb-2 { width: 220px; height: 220px; bottom: -40px; right: 5%; background: rgba(6,182,212,.15); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,39,.98) 0%, rgba(10,14,39,.65) 45%, rgba(10,14,39,.15) 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 40px 36px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-date { font-size: 12px; color: var(--muted); }
.hero-title { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; line-height: 1.28; letter-spacing: -.5px; color: #fff; margin-bottom: 12px; max-width: 780px; text-wrap: pretty; }
.hero-excerpt { font-size: 14.5px; color: rgba(226,232,240,.72); line-height: 1.6; max-width: 640px; margin-bottom: 22px; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.hero-reading { font-size: 12px; color: var(--dim); }

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--purple), #4f46e5); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; transition: opacity .2s, transform .2s; letter-spacing: .1px;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

/* ──────────────────────────────────────────
   NEWS GRID & CARDS
────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

/* Card entrance animation */
@keyframes cardIn { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.news-card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; background: var(--bg-card); transition: transform .25s cubic-bezier(.22,.8,.38,1), box-shadow .25s; }
.news-card.will-animate { opacity: 0; }
.news-card.is-visible { animation: cardIn .5s cubic-bezier(.22,.8,.38,1) forwards; }
@media (prefers-reduced-motion: reduce) { .news-card.will-animate { opacity: 1; } .news-card { animation: none; } }

/* Category gradient borders */
.news-card.c-ai     { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(124,58,237,.55),rgba(6,182,212,.12)) border-box; --glow:rgba(124,58,237,.22); }
.news-card.c-llm    { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(6,182,212,.55),rgba(124,58,237,.12)) border-box; --glow:rgba(6,182,212,.22);  }
.news-card.c-github { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(16,185,129,.55),rgba(6,182,212,.1))  border-box; --glow:rgba(16,185,129,.22); }
.news-card.c-prl    { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(245,158,11,.55),rgba(236,72,153,.1)) border-box; --glow:rgba(245,158,11,.22); }
.news-card.c-tools  { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(236,72,153,.55),rgba(124,58,237,.12)) border-box; --glow:rgba(236,72,153,.22); }
.news-card.c-digest { border: 1px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, linear-gradient(145deg,rgba(59,130,246,.55),rgba(124,58,237,.12)) border-box; --glow:rgba(59,130,246,.22);  }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,0,0,.5), 0 0 28px var(--glow,rgba(124,58,237,.15)); }

/* Thumbnail */
.card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; display: block; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .card-thumb img { transform: scale(1.05); }
.thumb-ph { width: 100%; height: 100%; position: relative; display: grid; place-items: center; overflow: hidden; }
.thumb-ph.t-ai     { background: linear-gradient(135deg,#1c0b42 0%,#2d1468 45%,#0d1040 100%); }
.thumb-ph.t-llm    { background: linear-gradient(135deg,#021b34 0%,#093f60 45%,#0b1840 100%); }
.thumb-ph.t-github { background: linear-gradient(135deg,#031c18 0%,#0a3d30 45%,#071e1c 100%); }
.thumb-ph.t-prl    { background: linear-gradient(135deg,#1c1000 0%,#3d2800 45%,#100d00 100%); }
.thumb-ph.t-tools  { background: linear-gradient(135deg,#2c0a2a 0%,#480934 45%,#180830 100%); }
.thumb-ph.t-digest { background: linear-gradient(135deg,#041428 0%,#092a5e 45%,#041636 100%); }
.thumb-ph::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:22px 22px; }
.thumb-icon { position:relative; z-index:1; font-size:30px; opacity:.45; }

/* Card body */
.card-body { padding: 15px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.card-date { font-size: 11px; color: var(--dim); }
.card-title { font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.1px; color: #dde6f0; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; transition: color .18s; }
.card-title a { color: inherit; }
.news-card:hover .card-title { color: #fff; }
.card-excerpt { font-size: 12px; color: var(--muted); line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.card-read-time { font-size: 11px; color: var(--dim); }

/* ──────────────────────────────────────────
   SIDEBAR & WIDGETS
────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 108px; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-head { padding: 13px 17px 11px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.widget-head-title { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); }
.w-icon { font-size: 13px; }
.widget-body { padding: 15px 17px; }

/* Widget search */
.widget .searchform, .widget .search-form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.widget .searchform input, .widget .search-form input { background: transparent; border: none; color: var(--text); font-family: inherit; font-size: 13px; padding: 10px 12px; flex: 1; outline: none; }
.widget .searchform input::placeholder { color: var(--dim); }
.widget .searchform button, .widget .searchform input[type=submit] { background: var(--purple); border: none; color: #fff; padding: 10px 14px; transition: background .2s; }
.widget .searchform button:hover, .widget .searchform input[type=submit]:hover { background: #6d28d9; }

/* Category list */
.w-cats { display: flex; flex-direction: column; gap: 2px; }
.w-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border-radius: 7px; cursor: pointer; transition: background .15s; }
.w-cat-item:hover { background: rgba(255,255,255,.04); }
.w-cat-left { display: flex; align-items: center; gap: 9px; }
.w-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.w-cat-name { font-size: 13px; color: var(--text); }
.w-cat-count { font-size: 11px; color: var(--dim); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 10px; }

/* Recent */
.w-recent { display: flex; flex-direction: column; }
.w-recent-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.w-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.w-recent-item:first-child { padding-top: 0; }
.w-recent-thumb { width: 54px; height: 40px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.w-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-recent-info { flex: 1; min-width: 0; }
.w-recent-title { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s; }
.w-recent-item:hover .w-recent-title { color: var(--cyan); }
.w-recent-date { font-size: 11px; color: var(--dim); }

/* Archive */
.w-archive { display: flex; flex-direction: column; gap: 2px; }
.w-archive-item, .widget_archive ul li a { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border-radius: 7px; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; }
.w-archive-item:hover, .widget_archive ul li a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.w-archive-count { font-size: 11px; color: var(--dim); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 10px; }

/* ──────────────────────────────────────────
   SINGLE POST
────────────────────────────────────────── */
.single-hero {
  position: relative; border-radius: 16px; overflow: hidden; height: 380px; margin-bottom: 32px;
  background: linear-gradient(135deg,#12083a 0%,#071b45 55%,#0a0e27 100%);
}
.single-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 36px; }
.single-title { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: -.4px; color: #fff; margin: 12px 0 14px; text-wrap: pretty; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }

/* Post content typography */
.post-content { font-size: 15px; line-height: 1.78; color: rgba(226,232,240,.9); }
.post-content h2 { font-family:'Inter',sans-serif; font-size:22px; font-weight:700; color:#fff; margin:2em 0 .7em; letter-spacing:-.3px; }
.post-content h3 { font-family:'Inter',sans-serif; font-size:18px; font-weight:700; color:#e2e8f0; margin:1.8em 0 .6em; }
.post-content h4 { font-family:'Inter',sans-serif; font-size:16px; font-weight:600; color:#e2e8f0; margin:1.5em 0 .5em; }
.post-content p  { margin-bottom: 1.4em; text-wrap: pretty; }
.post-content a  { color:var(--cyan); text-decoration:underline; text-decoration-color:rgba(6,182,212,.4); transition:text-decoration-color .2s; }
.post-content a:hover { text-decoration-color: var(--cyan); }
.post-content strong { color:#fff; font-weight:700; }
.post-content code { background:rgba(124,58,237,.15); border:1px solid rgba(124,58,237,.25); color:#c4b5fd; font-family:'SF Mono','Fira Code',monospace; font-size:13px; padding:1px 6px; border-radius:4px; }
.post-content pre { background:#070b1f; border:1px solid rgba(124,58,237,.2); border-left:3px solid var(--purple); border-radius:8px; padding:20px 22px; overflow-x:auto; margin:1.5em 0; font-family:'SF Mono','Fira Code',monospace; font-size:13px; line-height:1.7; color:#c4b5fd; }
.post-content pre code { background:none; border:none; padding:0; color:inherit; }
.post-content blockquote { border-left:3px solid var(--cyan); background:rgba(6,182,212,.05); padding:16px 20px; border-radius:0 8px 8px 0; margin:1.5em 0; color:rgba(226,232,240,.8); font-style:italic; }
.post-content ul, .post-content ol { margin-bottom:1.4em; padding-left:1.5em; }
.post-content li { margin-bottom:.5em; }
.post-content img { border-radius:8px; margin:1.5em 0; }
.post-content table { width:100%; border-collapse:collapse; margin:1.5em 0; font-size:14px; }
.post-content th { background:rgba(124,58,237,.15); color:#e2e8f0; font-family:'Inter',sans-serif; font-weight:600; padding:10px 14px; text-align:left; border:1px solid rgba(124,58,237,.2); }
.post-content td { padding:10px 14px; border:1px solid var(--border); color:var(--muted); }
.post-content tr:hover td { background:rgba(255,255,255,.02); }

/* Tags */
.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; padding-top:24px; border-top:1px solid var(--border); }
.post-tag { font-size:12px; color:var(--muted); background:rgba(255,255,255,.05); border:1px solid var(--border); padding:4px 11px; border-radius:20px; transition:color .2s,border-color .2s; }
.post-tag:hover { color:var(--cyan); border-color:rgba(6,182,212,.4); }

/* Post navigation */
.post-nav { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:32px; }
.post-nav-item { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:14px 16px; transition:border-color .2s; display:block; }
.post-nav-item:hover { border-color:rgba(124,58,237,.4); }
.post-nav-label { font-size:10.5px; color:var(--dim); text-transform:uppercase; letter-spacing:.8px; font-family:'Inter',sans-serif; font-weight:600; margin-bottom:5px; }
.post-nav-title { font-family:'Inter',sans-serif; font-size:13px; font-weight:600; color:var(--text); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Related & comments */
.related-section { margin-top:48px; }
.comments-area { margin-top:48px; padding-top:36px; border-top:1px solid var(--border); }
.comment-form input, .comment-form textarea {
  background:var(--bg-surf); border:1px solid var(--border); color:var(--text);
  font-family:inherit; font-size:14px; padding:10px 14px; border-radius:8px; width:100%; outline:none; transition:border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color:rgba(124,58,237,.5); }
.comment-form textarea { min-height:120px; resize:vertical; }
.comment-form .submit { background:var(--purple); border:none; color:#fff; font-family:'Inter',sans-serif; font-size:13px; font-weight:600; padding:10px 24px; border-radius:8px; cursor:pointer; transition:background .2s; }
.comment-form .submit:hover { background:#6d28d9; }
.comment-list { list-style:none; }
.comment-body { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:16px 18px; margin-bottom:12px; }
.comment-author { font-family:'Inter',sans-serif; font-size:13px; font-weight:700; color:var(--text); }
.comment-meta { font-size:11px; color:var(--dim); margin-bottom:8px; }
.comment-content { font-size:14px; color:var(--muted); }

/* ──────────────────────────────────────────
   ARCHIVE HEADER
────────────────────────────────────────── */
.archive-header {
  display:flex; align-items:flex-start; gap:18px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:14px;
  padding:24px 28px; margin-bottom:32px;
}
.archive-icon { font-size:32px; flex-shrink:0; line-height:1; margin-top:2px; }
.archive-meta { flex:1; min-width:0; }
.archive-type { font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--dim); display:block; margin-bottom:6px; }
.archive-title { font-family:'Inter',sans-serif; font-size:22px; font-weight:800; color:#fff; letter-spacing:-.3px; }
.archive-desc { font-size:13px; color:var(--muted); margin-top:6px; line-height:1.6; }

/* ──────────────────────────────────────────
   PAGINATION
────────────────────────────────────────── */
.pagination { margin-top:32px; }
.pagination-inner { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pagination-inner a, .pagination-inner span {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; padding:0 12px; border-radius:8px;
  font-family:'Inter',sans-serif; font-size:13px; font-weight:500;
  background:var(--bg-card); border:1px solid var(--border); color:var(--muted);
  transition:background .15s, color .15s, border-color .15s;
}
.pagination-inner a:hover { background:rgba(124,58,237,.15); border-color:rgba(124,58,237,.4); color:var(--text); }
.pagination-inner .current { background:var(--purple); border-color:var(--purple); color:#fff; }
.pagination-inner .dots { background:transparent; border:none; color:var(--dim); }

/* ──────────────────────────────────────────
   STATIC PAGE
────────────────────────────────────────── */
.page-article { max-width: 760px; }
.page-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-title { font-family:'Inter',sans-serif; font-size:28px; font-weight:800; color:#fff; letter-spacing:-.4px; }

/* ──────────────────────────────────────────
   404
────────────────────────────────────────── */
.not-found { text-align:center; padding:80px 20px; }
.nf-code { font-family:'Inter',sans-serif; font-size:120px; font-weight:900; letter-spacing:-6px; background:linear-gradient(135deg,var(--purple),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; line-height:1; margin-bottom:16px; }
.nf-title { font-family:'Inter',sans-serif; font-size:24px; font-weight:700; color:#fff; margin-bottom:10px; }
.nf-desc { font-size:14px; color:var(--muted); margin-bottom:28px; }

/* No results */
.no-results { text-align:center; padding:60px 20px; }
.no-results p { color:var(--muted); font-size:15px; margin-bottom:24px; }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.site-footer { background:#060919; border-top:1px solid var(--border); padding-top:44px; }
.footer-top { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:40px; }
.footer-brand .logo-name { font-size:17px; }
.footer-desc { font-size:13px; color:var(--dim); line-height:1.65; margin-top:10px; max-width:270px; }
.footer-col-title { font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--dim); margin-bottom:14px; }
.footer-links { display:flex; flex-direction:column; gap:9px; }
.footer-link { font-size:13px; color:var(--muted); display:flex; align-items:center; gap:6px; transition:color .18s; }
.footer-link:hover { color:var(--cyan); }
.footer-link-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.footer-bottom { border-top:1px solid var(--border); padding:14px 0; }
.footer-copy { font-size:12px; color:var(--dim); }
.footer-meta { display:flex; align-items:center; gap:12px; }
.footer-tag { font-size:11px; color:var(--dim); background:rgba(255,255,255,.06); padding:3px 9px; border-radius:4px; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1100px) {
  .content-layout { grid-template-columns: 1fr 290px; gap: 24px; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position:static; display:grid; grid-template-columns:1fr 1fr; }
  .hero-card { height: 340px; }
  .hero-title { font-size: 22px; }
  .hero-content { padding: 0 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .header-search { max-width: 260px; }
  .post-nav { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .related-section .news-grid { grid-template-columns: 1fr; }
  .single-title { font-size: 22px; }
  .single-hero { height: 300px; }
  .single-hero-content { padding: 20px 24px; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .hero-card { height: 290px; }
  .hero-title { font-size: 18px; }
  .hero-excerpt { display: none; }
  .footer-top { display:flex; flex-direction:column; gap:24px; }
  .archive-header { flex-direction:column; gap:12px; }
  .nf-code { font-size:80px; }
  .ticker-bar { display: none; }
}

@media (max-width: 420px) {
  .hero-card { height: 250px; }
  .header-inner { padding: 12px 16px; }
}

/* ──────────────────────────────────────────
   PRINT
────────────────────────────────────────── */
@media print {
  .site-header, .main-nav, .ticker-bar, .sidebar, .site-footer,
  .mobile-menu, .mobile-overlay, .post-nav, .related-section { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .post-content { color: #000 !important; }
  .post-content a { color: #000 !important; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
