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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060912;
  --bg2: #0c1120;
  --bg3: #111827;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.07);
  --cyan: #06d6f0;
  --violet: #7c3aed;
  --lime: #a3e635;
  --pink: #f472b6;
  --amber: #fbbf24;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --glow-cyan: 0 0 20px rgba(6,214,240,0.3);
  --glow-violet: 0 0 20px rgba(124,58,237,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(6,214,240,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(163,230,53,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,9,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--card);
}

.nav-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* MAIN CONTENT */
.main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* GLASS CARD */
.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.12);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.btn-ghost {
  background: var(--card);
  color: var(--text-dim);
  border: 1px solid var(--card-border);
}

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

.btn-cyan {
  background: rgba(6,214,240,0.1);
  color: var(--cyan);
  border: 1px solid rgba(6,214,240,0.25);
}
.btn-cyan:hover {
  background: rgba(6,214,240,0.18);
  box-shadow: var(--glow-cyan);
}

.btn-violet {
  background: rgba(124,58,237,0.1);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.25);
}
.btn-violet:hover {
  background: rgba(124,58,237,0.18);
  box-shadow: var(--glow-violet);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* CODE / TEXTAREA */
.code-area {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 16px;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.code-area:focus {
  border-color: rgba(6,214,240,0.4);
  box-shadow: 0 0 0 3px rgba(6,214,240,0.08);
}

.code-area::placeholder { color: var(--text-muted); }

/* PANEL */
.panel {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
}

.panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.panel-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.panel-dot.violet { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.panel-dot.lime { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.panel-dot.pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.panel-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.panel-body { padding: 20px; }

/* STATUS BADGE */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.status-badge.success { background: rgba(163,230,53,0.1); color: var(--lime); border: 1px solid rgba(163,230,53,0.2); }
.status-badge.error { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.status-badge.info { background: rgba(6,214,240,0.1); color: var(--cyan); border: 1px solid rgba(6,214,240,0.2); }
.status-badge.warn { background: rgba(251,191,36,0.1); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }

/* TOOL HERO */
.tool-hero {
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.tool-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.tool-breadcrumb a:hover { color: var(--cyan); }

.tool-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.75rem;
}

.tool-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.tool-name {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.6;
}

/* TOOL WORKSPACE */
.tool-workspace {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* COPY TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(6,214,240,0.1);
  border: 1px solid rgba(6,214,240,0.3);
  color: var(--cyan);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-delay-1 { animation: fadeUp 0.5s 0.1s ease both; }
.fade-up-delay-2 { animation: fadeUp 0.5s 0.2s ease both; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .tool-hero, .tool-workspace { padding-left: 1rem; padding-right: 1rem; }
  .tool-name { font-size: 1.5rem; }
}

/* TWO COLUMN LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--card-border);
  margin: 1.5rem 0;
}

/* INPUT GROUP */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'JetBrains Mono', monospace;
}

.text-input {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.text-input:focus {
  border-color: rgba(6,214,240,0.4);
  box-shadow: 0 0 0 3px rgba(6,214,240,0.08);
}

/* MATCH HIGHLIGHT */
.match-highlight {
  background: rgba(251,191,36,0.3);
  color: var(--amber);
  border-radius: 2px;
  padding: 0 1px;
}

/* TAG */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
}

/* ============================================
   BLOG SYSTEM STYLES
   ============================================ */

/* ---- Blog listing page ---- */
.blog-hero {
  padding: 4.5rem 2rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(6,214,240,0.08);
  border: 1px solid rgba(6,214,240,0.2);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.blog-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.blog-hero-title .g {
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ---- Blog controls bar ---- */
.blog-controls {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.blog-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}

.blog-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.blog-search {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 9px 14px 9px 36px;
  outline: none;
  transition: var(--transition);
}

.blog-search:focus {
  border-color: rgba(6,214,240,0.35);
  box-shadow: 0 0 0 3px rgba(6,214,240,0.07);
}

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

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  user-select: none;
}

.filter-chip:hover {
  border-color: rgba(6,214,240,0.3);
  color: var(--text);
}

.filter-chip.active {
  background: rgba(6,214,240,0.1);
  border-color: rgba(6,214,240,0.3);
  color: var(--cyan);
}

/* ---- Blog grid ---- */
.blog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 860px) { .blog-featured-grid { grid-template-columns: 1fr; } }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

/* ---- Blog card base ---- */
.blog-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.blog-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,214,240,0.2));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-cover-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.blog-card-cover-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}

.blog-card-cover-art .cover-icon {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 2.5rem;
  opacity: 0.8;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.blog-cat-badge.tutorial   { background: rgba(6,214,240,0.1);   color: var(--cyan);  border: 1px solid rgba(6,214,240,0.2); }
.blog-cat-badge.guide      { background: rgba(163,230,53,0.1);  color: var(--lime);  border: 1px solid rgba(163,230,53,0.2); }
.blog-cat-badge.deep-dive  { background: rgba(124,58,237,0.12); color: #a78bfa;      border: 1px solid rgba(124,58,237,0.25); }
.blog-cat-badge.tips       { background: rgba(251,191,36,0.1);  color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.blog-cat-badge.news       { background: rgba(244,114,182,0.1); color: var(--pink);  border: 1px solid rgba(244,114,182,0.2); }

.blog-read-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-excerpt {
  color: var(--text-dim);
  font-size: 0.845rem;
  line-height: 1.65;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.blog-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Featured card ---- */
.blog-card.featured .blog-card-cover {
  height: 240px;
}

.blog-card.featured .blog-card-title {
  font-size: 1.3rem;
}

.blog-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(6,9,18,0.8);
  color: var(--cyan);
  border: 1px solid rgba(6,214,240,0.3);
  backdrop-filter: blur(8px);
}

/* ---- No results ---- */
.blog-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  display: none;
}

.blog-no-results.show { display: block; }
.blog-no-results-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.blog-no-results-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-dim); }

/* ============================================
   BLOG POST PAGE
   ============================================ */

.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .post-layout { padding: 2rem 1rem 3rem; } }

/* Post header */
.post-header { margin-bottom: 2rem; }

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--cyan); }
.post-breadcrumb .sep { opacity: 0.4; }

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 50%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.post-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}

.post-author-info { flex: 1; }
.post-author-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.post-author-role { font-size: 0.78rem; color: var(--text-muted); }

.post-stats {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.post-stat { text-align: right; }
.post-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--text-dim); font-weight: 600; }
.post-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* Post cover */
.post-cover {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--card-border);
}

.post-cover-art {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-cover-art .cover-glyph {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 7rem;
  opacity: 0.12;
  position: absolute;
  user-select: none;
}

.post-cover-art .cover-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

.post-cover-art .cover-label h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 0.5rem;
}

.post-cover-art .cover-label p {
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Article body typography ---- */
.post-body {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
}

.post-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--card-border);
  scroll-margin-top: 80px;
}

.post-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 80px;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(6,214,240,0.3);
  transition: border-color 0.2s;
}

.post-body a:hover { border-color: var(--cyan); }

.post-body strong { color: var(--text); font-weight: 600; }

.post-body em { color: var(--text); font-style: italic; }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-body li { color: var(--text-dim); }

.post-body li::marker { color: var(--cyan); }

/* Inline code */
.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: rgba(6,214,240,0.07);
  border: 1px solid rgba(6,214,240,0.15);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Code block */
.post-body pre {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  position: relative;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
}

.post-body pre .copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.post-body pre .copy-code-btn:hover {
  background: rgba(6,214,240,0.1);
  color: var(--cyan);
  border-color: rgba(6,214,240,0.25);
}

/* Callout / Note boxes */
.callout {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.65;
}

.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { flex: 1; }
.callout-title { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; }

.callout.tip    { background: rgba(163,230,53,0.07);  border: 1px solid rgba(163,230,53,0.2);  color: var(--text-dim); }
.callout.tip .callout-title  { color: var(--lime); }
.callout.info   { background: rgba(6,214,240,0.07);   border: 1px solid rgba(6,214,240,0.2);   color: var(--text-dim); }
.callout.info .callout-title { color: var(--cyan); }
.callout.warn   { background: rgba(251,191,36,0.07);  border: 1px solid rgba(251,191,36,0.2);  color: var(--text-dim); }
.callout.warn .callout-title { color: var(--amber); }
.callout.danger { background: rgba(239,68,68,0.07);   border: 1px solid rgba(239,68,68,0.2);   color: var(--text-dim); }
.callout.danger .callout-title { color: #f87171; }

/* Table */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.post-body th {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.post-body td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-dim);
  vertical-align: top;
}

.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: rgba(255,255,255,0.02); }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.post-tag {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: all 0.2s;
  text-decoration: none;
}
.post-tag:hover { color: var(--cyan); border-color: rgba(6,214,240,0.3); background: rgba(6,214,240,0.06); }

/* ---- Sidebar ---- */
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.25rem; }

.sidebar-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* TOC */
.toc-list {
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-item a:hover, .toc-item a.active {
  color: var(--cyan);
  background: rgba(6,214,240,0.07);
}

.toc-item a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

.toc-item.h3 a { padding-left: 20px; font-size: 0.78rem; }

/* Related tool card */
.related-tool-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}

.related-tool-name { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.related-tool-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }

/* Share buttons */
.share-buttons {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  white-space: nowrap;
}
.share-btn:hover { background: rgba(255,255,255,0.07); color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ---- Related posts ---- */
.post-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.post-related-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-related-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

/* Progress reading bar */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 99;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   BLOG TEMPLATE GUIDE (shown in _template)
   ============================================ */
.template-guide {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.template-guide h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.template-guide .step {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.template-guide .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.template-guide .step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.template-guide .step p, .template-guide .step li {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.template-guide .step code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  background: rgba(163,230,53,0.08);
  border: 1px solid rgba(163,230,53,0.15);
  color: var(--lime);
  padding: 2px 6px;
  border-radius: 5px;
}

.template-guide .step ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.template-guide .step li { margin-bottom: 4px; }
