/*
 * single-bai-viet.css
 * Page-specific styles for the Blog Post (Bài Viết) single post template.
 * Requires style.css to be loaded first.
 */

/* ──────────────────────────────────────────
   READING PROGRESS BAR
────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ──────────────────────────────────────────
   ARTICLE HERO
────────────────────────────────────────── */
.article-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(41,214,181,.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 70%, rgba(232,255,71,.05) 0%, transparent 60%),
    linear-gradient(to bottom, var(--bg) 0%, var(--surface) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
}

.article-hero .container {
  position: relative;
  z-index: 2;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .35; }

/* ── Article meta top row ── */
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.article-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent3);
  background: rgba(41,214,181,.1);
  padding: 4px 14px;
  border-radius: 99px;
  border: 1px solid rgba(41,214,181,.2);
}

.article-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.article-read-time svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Article title ── */
.article-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: .03em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 900px;
}

.article-title em {
  font-style: normal;
  color: var(--accent);
}

.article-excerpt {
  font-size: 17px;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Author row ── */
.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.author-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), #0a7f6e);
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
  overflow: hidden;
}

.author-ava img { width: 100%; height: 100%; object-fit: cover; }

.author-info b    { font-size: 14px; display: block; }
.author-info span { font-size: 12px; color: var(--muted); }

.author-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.article-date {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-date svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.article-share-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.share-btn:hover { background: var(--accent); }
.share-btn:hover svg { stroke: #000; }
.share-btn svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; transition: stroke .2s; }

/* ── Hero image ── */
.hero-image-wrap {
  position: relative;
  margin-top: 44px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  background: linear-gradient(135deg, #1d2133 0%, #111520 100%);
}

.hero-image-inner {
  aspect-ratio: 21/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-image-inner svg.hero-bg-svg {
  width: 160px;
  height: 160px;
  stroke: rgba(255,255,255,.07);
  fill: none;
  stroke-width: .5;
}

.hero-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(10,12,16,.8), transparent);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-style: italic;
}

/* Hero image decorative elements */
.hero-img-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.hero-img-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.hero-img-orb-1 { width: 300px; height: 300px; background: rgba(41,214,181,.12); top: -80px; right: 10%; }
.hero-img-orb-2 { width: 200px; height: 200px; background: rgba(232,255,71,.08); bottom: -40px; left: 20%; }

.hero-img-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-img-chair { opacity: .18; }
.hero-img-chair svg { width: 180px; height: 180px; stroke: white; fill: none; stroke-width: .6; }

.hero-img-stats { display: flex; flex-direction: column; gap: 16px; }

.hero-stat-pill {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.hero-stat-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(41,214,181,.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-stat-pill-icon svg { width: 18px; height: 18px; stroke: var(--accent3); fill: none; stroke-width: 1.8; }
.hero-stat-pill b    { font-size: 14px; color: #fff; display: block; }
.hero-stat-pill span { font-size: 11px; color: rgba(255,255,255,.45); }

/* ──────────────────────────────────────────
   ARTICLE LAYOUT (2-column)
────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 52px 0 80px;
  align-items: start;
}

/* ──────────────────────────────────────────
   ARTICLE BODY
────────────────────────────────────────── */
.article-body { min-width: 0; }

/* Inline table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent3);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 44px;
}

.toc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title svg { width: 14px; height: 14px; stroke: var(--accent3); fill: none; stroke-width: 2; }

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list li a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .2s;
}
.toc-list li a:hover { color: var(--accent3); }
.toc-list li a:hover::before { background: var(--accent3); }
.toc-list li.active a { color: var(--accent); }
.toc-list li.active a::before { background: var(--accent); }

/* ──────────────────────────────────────────
   ARTICLE TYPOGRAPHY
────────────────────────────────────────── */
.article-content { display: flex; flex-direction: column; gap: 0; }

.article-content h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: .04em;
  line-height: 1.1;
  color: var(--text);
  margin: 48px 0 18px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: 90px;
}

.article-content h2::before {
  content: '';
  display: block;
  width: 4px;
  min-width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 15px;
  color: rgba(232,234,240,.8);
  line-height: 1.9;
  margin-bottom: 18px;
}

.article-content strong { color: var(--text); font-weight: 800; }
.article-content em { color: var(--accent3); font-style: italic; }

.article-content ul,
.article-content ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 18px;
}

.article-content ul li,
.article-content ol li {
  font-size: 15px;
  color: rgba(232,234,240,.8);
  line-height: 1.85;
  padding: 4px 0 4px 22px;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}

/* ── Blockquote ── */
.article-content blockquote {
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
}

.article-content blockquote p {
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 10px;
}

.blockquote-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.blockquote-author-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), #0a7f6e);
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: .9rem;
  color: #000;
  flex-shrink: 0;
}

.blockquote-author b    { font-size: 13px; display: block; }
.blockquote-author span { font-size: 11px; color: var(--muted); }

/* ── Highlight box (yellow/accent) ── */
.highlight-box {
  margin: 32px 0;
  background: rgba(232,255,71,.05);
  border: 1px solid rgba(232,255,71,.15);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
}

.highlight-box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232,255,71,.1);
  display: grid;
  place-items: center;
}
.highlight-box-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.highlight-box-content b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.highlight-box-content p { font-size: 14px; color: rgba(232,234,240,.75); line-height: 1.8; margin: 0; }

/* ── Info box (teal/accent3) ── */
.info-box {
  margin: 32px 0;
  background: rgba(41,214,181,.06);
  border: 1px solid rgba(41,214,181,.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
}

.info-box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(41,214,181,.12);
  display: grid;
  place-items: center;
}
.info-box-icon svg { width: 22px; height: 22px; stroke: var(--accent3); fill: none; stroke-width: 2; }
.info-box-content b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 8px;
  display: block;
}
.info-box-content p { font-size: 14px; color: rgba(232,234,240,.75); line-height: 1.8; margin: 0; }

/* ── Warning box (orange/accent2) ── */
.warn-box {
  margin: 32px 0;
  background: rgba(255,92,53,.06);
  border: 1px solid rgba(255,92,53,.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
}

.warn-box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,92,53,.12);
  display: grid;
  place-items: center;
}
.warn-box-icon svg { width: 22px; height: 22px; stroke: var(--accent2); fill: none; stroke-width: 2; }
.warn-box-content b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
  display: block;
}
.warn-box-content p { font-size: 14px; color: rgba(232,234,240,.75); line-height: 1.8; margin: 0; }

/* ── Article inline image ── */
.article-img {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1d2133 0%, #111520 100%);
}

.article-img-inner {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.article-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.article-img-inner svg { width: 64px; height: 64px; stroke: rgba(255,255,255,.12); fill: none; }
.article-img-caption {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* ── Pro/Con grid ── */
.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.pro-list,
.con-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.pro-list { border-top: 3px solid var(--accent3); }
.con-list { border-top: 3px solid var(--accent2); }

.pc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro-list .pc-title { color: var(--accent3); }
.con-list .pc-title { color: var(--accent2); }
.pc-title svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.pc-items { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-items li {
  font-size: 13px;
  color: rgba(232,234,240,.75);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.pc-items li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.pro-list .pc-items li::before { background: var(--accent3); }
.con-list .pc-items li::before { background: var(--accent2); }

/* ── Frequency / Data table ── */
.freq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.freq-table thead th {
  background: var(--surface2);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.freq-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.freq-table tbody tr:hover { background: rgba(255,255,255,.02); }
.freq-table tbody tr:last-child { border-bottom: none; }

.freq-table tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: rgba(232,234,240,.8);
}
.freq-table tbody td:first-child { font-weight: 800; color: var(--text); }

.td-ok   { color: var(--accent3) !important; font-weight: 800 !important; }
.td-warn { color: var(--accent)  !important; font-weight: 800 !important; }
.td-bad  { color: var(--accent2) !important; font-weight: 800 !important; }

/* ── Numbered steps list ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232,255,71,.1);
  border: 1px solid rgba(232,255,71,.2);
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.step-body h4 { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.step-body p  { font-size: 13px; color: rgba(232,234,240,.65); line-height: 1.75; margin: 0; }

/* ── Expert card ── */
.expert-card {
  margin: 40px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
}

.expert-ava {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent3), #0a7f6e);
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 1.8rem;
  color: #000;
  flex-shrink: 0;
  overflow: hidden;
}
.expert-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.expert-info     { flex: 1; }
.expert-label    { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent3); margin-bottom: 4px; }
.expert-name     { font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.expert-title    { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.expert-quote    { font-size: 14px; color: rgba(232,234,240,.75); line-height: 1.85; font-style: italic; border-left: 3px solid var(--accent3); padding-left: 16px; }

/* ── Article tags ── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}
.article-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Reactions bar ── */
.article-reactions {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reaction-label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--ff-body);
  color: var(--muted);
  font-weight: 700;
}
.reaction-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.reaction-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(232,255,71,.08); }
.reaction-count { font-size: 13px; }
.article-reactions-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Article prev/next navigation ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.article-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .25s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.article-nav-btn:hover { border-color: rgba(232,255,71,.2); transform: translateY(-2px); }
.article-nav-btn.next  { flex-direction: row-reverse; text-align: right; }

.nav-arrow {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-arrow svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2.5; }
.article-nav-btn:hover .nav-arrow svg { stroke: var(--accent); }

.nav-btn-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.nav-btn-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ──────────────────────────────────────────
   SIDEBAR
────────────────────────────────────────── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-head svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; }

.sidebar-body { padding: 18px 20px; }

/* TOC sidebar */
.toc-sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-sidebar-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .2s;
  font-weight: 600;
}
.toc-sidebar-list li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: all .2s;
}
.toc-sidebar-list li a:hover { color: var(--text); background: var(--surface2); }
.toc-sidebar-list li a:hover::before { background: var(--accent); }
.toc-sidebar-list li.active-toc a { color: var(--accent); background: rgba(232,255,71,.06); }
.toc-sidebar-list li.active-toc a::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(232,255,71,.15); }

/* Product CTA card */
.product-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.product-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(41,214,181,.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.product-cta-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1d2133, #111520);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-cta-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-cta-thumb svg { width: 70px; height: 70px; stroke: rgba(255,255,255,.12); fill: none; position: relative; z-index: 1; }
.product-cta-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

.product-cta-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.product-cta-brand { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent3); }
.product-cta-name  { font-weight: 800; font-size: 14px; line-height: 1.4; }

.product-cta-price { display: flex; align-items: baseline; gap: 10px; }
.product-cta-price .sale { font-family: var(--ff-head); font-size: 1.35rem; color: var(--accent); letter-spacing: .03em; }
.product-cta-price .old  { font-size: 12px; color: var(--muted); text-decoration: line-through; }

.product-cta-stars { display: flex; gap: 2px; }
.product-cta-stars .s { font-size: 12px; color: var(--accent); }

/* Related articles in sidebar */
.related-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.related-article:last-child { border-bottom: none; padding-bottom: 0; }

.related-article-thumb {
  width: 64px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d2133, #111520);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.related-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-article-thumb svg { width: 24px; height: 24px; stroke: rgba(255,255,255,.15); fill: none; }

.related-article-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.related-article:hover .related-article-title { color: var(--accent3); }
.related-article-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Newsletter / Subscribe card */
.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.newsletter-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.newsletter-title { font-family: var(--ff-head); font-size: 1.2rem; letter-spacing: .04em; }
.newsletter-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; }

.newsletter-input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--muted); }

/* ──────────────────────────────────────────
   POST ANIMATIONS
────────────────────────────────────────── */
.fade-in    { animation: fadeUp .5s ease both; }
.fade-in-d1 { animation: fadeUp .5s .1s ease both; }
.fade-in-d2 { animation: fadeUp .5s .2s ease both; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .article-title { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  .pro-con-grid  { grid-template-columns: 1fr; }
  .article-nav   { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .hero-img-stats  { display: none; }
}

@media (max-width: 520px) {
  .article-reactions { flex-direction: column; align-items: flex-start; }
}
