/* ══════════════════════════════════════════════════════════════════
   style.css — ijoo.org Blog Theme
   Version  : 1.2.0
   Aesthetic : Light Futuristic / Cybersec Terminal
   Fonts     : JetBrains Mono + Sora
   Layout    : Collapsible sidebar + horizontal feed cards
══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Sora:wght@300;400;500;600&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:            #f0f2f5;
  --bg-card:       #ffffff;
  --bg-sidebar:    #f8f9fb;
  --fg:            #0d1117;
  --fg-mid:        #3d4452;
  --fg-muted:      #6e7891;
  --fg-ghost:      #aab1c4;

  --cyan:          #00c8d4;
  --cyan-dim:      rgba(0,200,212,.1);
  --cyan-glow:     rgba(0,200,212,.3);
  --indigo:        #3a5cff;
  --indigo-dim:    rgba(58,92,255,.07);

  --border:        #dde1ec;
  --border-strong: #c4cad8;

  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --font-body:     'Sora', system-ui, sans-serif;

  --sidebar-w:     220px;
  --sidebar-w-col: 48px;   /* collapsed width */
  --radius:        6px;
  --radius-lg:     10px;

  --shadow-sm:     0 1px 4px rgba(13,17,23,.06);
  --shadow-md:     0 4px 16px rgba(13,17,23,.08);
  --shadow-lg:     0 12px 40px rgba(13,17,23,.1), 0 3px 10px rgba(13,17,23,.06);
  --shadow-cyan:   0 0 20px rgba(0,200,212,.18);

  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(circle, rgba(0,200,212,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(240,242,245,.9);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--indigo) 55%, transparent 100%);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}
.logo-bracket { color: var(--cyan); }
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--cyan-glow); }
  50%     { opacity:.35; box-shadow: none; }
}

.header-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-link {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--cyan); border-color: var(--cyan-dim); background: var(--cyan-dim); }
.nav-link.active { color: var(--cyan); border-color: rgba(0,200,212,.25); background: var(--cyan-dim); }

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 68px 0 52px;
}

/* Canvas background animation */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -60px;
  width: 500px; height: 500px;
  border: 1px solid rgba(0,200,212,.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: 60px; top: 10px;
  width: 300px; height: 300px;
  border: 1px solid rgba(0,200,212,.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--cyan);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--cyan); }

.hero-sub {
  font-size: .95rem;
  font-weight: 300;
  color: var(--fg-muted);
  max-width: 400px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.stat-block {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-ghost);
  text-align: right;
  line-height: 1.4;
}
.stat-block strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg-mid);
  letter-spacing: -.04em;
}
.stat-block span { color: var(--cyan); }

/* ════════════════════════════════════════════════════════════════
   LAYOUT WRAP — sidebar + feed
════════════════════════════════════════════════════════════════ */
.layout-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 300px);
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 56px;               /* below header */
  height: calc(100vh - 56px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width var(--transition), min-width var(--transition);
  flex-shrink: 0;
}

/* Collapsed state */
.sidebar.collapsed {
  width: var(--sidebar-w-col);
  min-width: var(--sidebar-w-col);
}

/* ── Sidebar Header ──────────────── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 52px;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  color: var(--fg-mid);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--transition);
}
.sidebar.collapsed .sidebar-title { opacity: 0; pointer-events: none; }

.sidebar-title-icon { color: var(--cyan); }

/* Toggle button */
.sidebar-toggle {
  width: 26px; height: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.sidebar-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.toggle-icon {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--fg-muted);
  line-height: 1;
}
.sidebar-toggle:hover .toggle-icon { color: var(--cyan); }

/* ── Sidebar Body ────────────────── */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
}

/* Hide body content when collapsed */
.sidebar.collapsed .sidebar-body { opacity: 0; pointer-events: none; }

/* ── Topic list ──────────────────── */
.topic-list { padding: 4px 10px; flex: 1; }

.topic-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.topic-item:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0,200,212,.15);
}
.topic-item.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0,200,212,.25);
}

.topic-arrow {
  font-size: .7rem;
  color: var(--fg-ghost);
  transition: color var(--transition);
  width: 10px;
  flex-shrink: 0;
}
.topic-item.active .topic-arrow,
.topic-item:hover .topic-arrow { color: var(--cyan); }

.topic-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.topic-count {
  font-size: .62rem;
  color: var(--fg-ghost);
  background: var(--border);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.topic-item.active .topic-count { background: rgba(0,200,212,.15); color: var(--cyan); }

/* ── Sidebar Footer ──────────────── */
.sidebar-footer {
  padding: 10px 20px 4px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sidebar-ver {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--fg-ghost);
}

/* ════════════════════════════════════════════════════════════════
   FEED MAIN
════════════════════════════════════════════════════════════════ */
.feed-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 64px 28px;
  overflow: hidden;
}

/* Feed header bar */
.feed-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.feed-header-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .08em;
}
.feed-total-badge {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--fg-ghost);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Posts feed container */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;               /* jarak antar card */
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ════════════════════════════════════════════════════════════════
   FEED CARD — boxed horizontal layout + hover effects
════════════════════════════════════════════════════════════════ */
.feed-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;       /* ← jangan hidden, agar gap tidak terpotong */
  padding: 10px;           /* ← padding dalam box, image tidak menempel tepi */
  transition:
    transform .25s cubic-bezier(.22,1,.36,1),
    box-shadow .25s,
    border-color .25s;
  animation: fadeSlideUp .45s both;
}

.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  border-color: rgba(0,200,212,.45);
}

/* Featured card */
.feed-card--featured {
  border-color: rgba(0,200,212,.2);
  background: #fdfeff;
}
.feed-card--featured:hover { border-color: rgba(0,200,212,.55); }

/* ── Corner brackets (v1.1.0 style) ── */
.corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 10;
  pointer-events: none;
}
.feed-card:hover .corner { opacity: 1; }
.corner.tl { top: 6px;    left: 6px;   border-width: 2px 0 0 2px; }
.corner.tr { top: 6px;    right: 6px;  border-width: 2px 2px 0 0; }
.corner.bl { bottom: 6px; left: 6px;   border-width: 0 0 2px 2px; }
.corner.br { bottom: 6px; right: 6px;  border-width: 0 2px 2px 0; }

/* ── Index number (v1.1.0 style) ── */
.feed-index {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--fg-ghost);
  letter-spacing: .04em;
  pointer-events: none;
  transition: color .22s ease;
}
.feed-card:hover .feed-index { color: var(--cyan); }

/* ── Card link grid ── */
.feed-card-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  color: inherit;
  align-items: stretch;
}

.feed-card--featured .feed-card-link {
  grid-template-columns: 260px 1fr;
}

/* ── Thumbnail ── */
.feed-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  border-radius: var(--radius);
  width: 200px;
  min-width: 200px;
  min-height: 150px;
  align-self: stretch;
}

.feed-card--featured .feed-thumb-wrap {
  width: 260px;
  min-width: 260px;
  min-height: 186px;
}

.feed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s cubic-bezier(.22,1,.36,1), filter .4s;
  filter: saturate(.85);
}
.feed-card:hover .feed-thumb {
  transform: scale(1.05);
  filter: saturate(1.1);
}

/* Scanline overlay on image */
.feed-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.025) 3px, rgba(0,0,0,.025) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* No-image placeholder */
.feed-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf0f6, #e4e8f2);
  position: relative;
  border-radius: var(--radius);
}
.thumb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,212,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,212,.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.thumb-letter {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(0,200,212,.22);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: var(--cyan);
  padding: 3px 9px;
  border-radius: 3px;
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* ── Content ── */
.feed-content {
  padding: 14px 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  min-width: 0;
}
.feed-card--featured .feed-content { padding: 20px 22px 20px 22px; }

.feed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tag with glow on hover (v1.1.0 style) */
.feed-cat {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,212,.2);
  padding: 2px 8px;
  border-radius: 3px;
  transition: box-shadow .22s, border-color .22s;
}
.feed-card:hover .feed-cat {
  box-shadow: 0 0 8px var(--cyan-glow);
  border-color: rgba(0,200,212,.5);
}

.feed-date,
.feed-rtime {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--fg-ghost);
}
.feed-rtime::before { content: '·'; margin-right: 8px; }

.feed-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--fg);
  transition: color var(--transition);
}
.feed-card--featured .feed-title { font-size: 1.22rem; }
.feed-card:hover .feed-title { color: var(--cyan); }

.feed-excerpt {
  font-size: .875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card--featured .feed-excerpt { -webkit-line-clamp: 4; }

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.feed-source {
  display: none;           /* ← hidden per request */
}
.src-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #3d8c40;
  flex-shrink: 0;
}

.feed-cta {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--fg-ghost);
  letter-spacing: .08em;
  transition: color var(--transition), letter-spacing var(--transition);
}
.feed-card:hover .feed-cta {
  color: var(--cyan);
  letter-spacing: .14em;
}

/* ════════════════════════════════════════════════════════════════
   LOADING / ERROR / EMPTY
════════════════════════════════════════════════════════════════ */
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  gap: 14px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.loading-state.full-page { min-height: 60vh; }

.spinner {
  width: 26px; height: 26px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-retry {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  background: transparent;
  letter-spacing: .06em;
  transition: all var(--transition);
}
.btn-retry:hover { background: var(--cyan); color: #fff; box-shadow: var(--shadow-cyan); }

.feed-empty {
  padding: 56px 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--fg-ghost);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.page-btn {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg-mid);
  background: var(--bg-card);
  letter-spacing: .04em;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

.page-info {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-ghost);
  letter-spacing: .06em;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(255,255,255,.5);
  margin-top: 0;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-ghost);
  letter-spacing: .03em;
}
.footer-ver {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  border: 1px solid rgba(0,200,212,.25);
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--cyan-dim);
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — single clean block, no duplicates
════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .feed-card-link { grid-template-columns: 150px 1fr; }
  .feed-thumb-wrap { width: 150px; min-width: 150px; }
  .feed-card--featured .feed-card-link { grid-template-columns: 210px 1fr; }
  .feed-card--featured .feed-thumb-wrap { width: 210px; min-width: 210px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 54px;
    height: calc(100vh - 54px);
    z-index: 200;
    box-shadow: var(--shadow-md);
    width: var(--sidebar-w-col);
    min-width: var(--sidebar-w-col);
  }
  .sidebar.mobile-open {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
  }

  .layout-wrap { padding: 0 12px 0 60px; }
  .feed-card { padding: 8px; }

  .feed-card-link { grid-template-columns: 110px 1fr; }
  .feed-thumb-wrap { width: 110px; min-width: 110px; min-height: 120px; }

  .feed-card--featured .feed-card-link { grid-template-columns: 1fr; }
  .feed-card--featured .feed-thumb-wrap {
    width: 100%; min-width: 0; height: 160px; min-height: 160px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .hero-title { font-size: 2.4rem; }
  .corner { display: none; }
}

@media (max-width: 480px) {
  .feed-card { padding: 6px; }
  .feed-card-link { grid-template-columns: 86px 1fr; }
  .feed-thumb-wrap { width: 86px; min-width: 86px; min-height: 100px; }
  .feed-content { padding: 10px 12px 10px 10px; gap: 5px; }
  .feed-title { font-size: .92rem; }
  .feed-index { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   BLOG.PHP — Hero dynamic post meta
════════════════════════════════════════════════════════════════ */
.hero-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-post-cat {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,212,.25);
  padding: 3px 10px;
  border-radius: 3px;
}
.hero-post-date,
.hero-post-rtime {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-ghost);
}
.hero-post-rtime::before { content: '·'; margin-right: 10px; }

.hero-post-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--fg);
  margin-bottom: 14px;
}
.hero-post-author {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .06em;
}

/* ════════════════════════════════════════════════════════════════
   ARTICLE PANEL
════════════════════════════════════════════════════════════════ */
.article-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 20px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.article-panel.visible { opacity: 1; transform: translateY(0); }
.article-panel:hover .corner { opacity: 1; }

/* ── TOP ROW: title/meta left, image right ── */
.article-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

/* Left col */
.article-header-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-cat {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,212,.2);
  padding: 2px 8px;
  border-radius: 3px;
}
.article-date,
.article-rtime {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--fg-ghost);
}
.article-rtime::before { content: '·'; margin-right: 8px; }

/* Title */
.article-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--fg);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Right col — featured image */
.article-img-col {
  flex-shrink: 0;
}
.article-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  width: 140px;
  height: 80px;
  background: var(--bg);
}
.article-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.article-panel:hover .article-img { transform: scale(1.03); }

.article-thumb-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.02) 3px, rgba(0,0,0,.02) 4px
  );
  pointer-events: none;
  z-index: 1;
}

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

/* ── Body — full width WordPress HTML ── */
.article-body {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--fg-mid);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h1, .article-body h2,
.article-body h3, .article-body h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--fg);
  margin: 2em 0 .75em;
}
.article-body h2 {
  font-size: 1.35rem;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}
.article-body h3 { font-size: 1.15rem; }
.article-body h4 { font-size: 1rem; }
.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,200,212,.35);
}
.article-body a:hover { text-decoration-color: var(--cyan); }
.article-body strong { font-weight: 600; color: var(--fg); }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: .45em; }
.article-body blockquote {
  border-left: 2px solid var(--cyan);
  padding: 12px 20px;
  margin: 1.8em 0;
  background: var(--cyan-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--fg-muted);
}
.article-body pre {
  background: var(--fg);
  color: #a8d8e8;
  padding: 20px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 1.4em;
  border: 1px solid rgba(0,200,212,.1);
}
.article-body pre::before {
  content: '// CODE';
  display: block;
  font-size: .62rem;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: 10px;
  opacity: .65;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0,200,212,.15);
  padding: 1px 5px;
  border-radius: 3px;
}
.article-body pre code { background: none; border: none; padding: 0; color: inherit; }
.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.6em 0;
  border: 1px solid var(--border);
}
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
.article-body figure { margin: 2em 0; }
.article-body figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-ghost);
  margin-top: 8px;
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .875rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-body th {
  background: var(--indigo-dim);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Back nav ── */
.article-nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.back-link {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .05em;
  transition: opacity .2s;
}
.back-link:hover { opacity: .7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-img-wrap { width: 120px; height: 70px; }
}
@media (max-width: 768px) {
  .article-panel { padding: 20px 18px; }
  .article-top {
    grid-template-columns: 1fr;
  }
  .article-img-col { display: none !important; } /* hide image on mobile, save space */
  .article-title { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .article-panel { padding: 16px 14px; }
  .article-body { font-size: .925rem; }
}
