/* ============================================================
   Vootkit Blog — Premium Design System v2
   World-class blog CSS: hub + articles + all widgets
   ============================================================ */

/* ---------- Dark mode theme variables ---------- */
html[data-theme="dark"] {
  --bg:       #0d1117;
  --bg-2:     #161b27;
  --card:     #1c2333;
  --line:     #2d3653;
  --text:     #e8ecf5;
  --muted:    #8892b0;
  --shadow:   0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 18px 50px rgba(0,0,0,.5);
}
html[data-theme="dark"] body {
  background: radial-gradient(900px 520px at 100% -5%, #1a1d35, transparent),
              radial-gradient(820px 520px at -5% 12%, #0d1e1a, transparent),
              var(--bg);
}
html[data-theme="dark"] header.site { background: rgba(13,17,23,.88); }

/* ---------- Reading progress bar ---------- */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .1s linear;
}

/* Suppress app.js's #to-top on blog pages — we use #back-top instead */
#to-top { display: none !important; }

/* ---------- Back-to-top button ---------- */
#back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(108,92,231,.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  font-size: 18px;
}
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--violet-2); }

/* ---------- Dark-mode toggle ---------- */
#theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbs2 {
  font-size: 13px; color: var(--muted); margin: 14px 0 4px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.crumbs2 a { color: var(--muted); text-decoration: none; }
.crumbs2 a:hover { color: var(--brand); }
.crumbs2 span { color: var(--text); }
.crumbs2 .sep { opacity: .5; }

/* ============================================================
   BLOG HUB — HERO FEATURED SECTION
   ============================================================ */
.blog-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}
@media (max-width: 860px) { .blog-hero { grid-template-columns: 1fr; } }

.blog-hero .feat {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); min-height: 320px;
  display: block; text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.blog-hero .feat:hover { transform: translateY(-3px); }
.blog-hero .feat img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.blog-hero .feat:hover img { transform: scale(1.03); }
.blog-hero .feat .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 20%, rgba(8,10,24,.9));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
}
.blog-hero .feat .overlay .cat-badge { align-self: flex-start; margin-bottom: 8px; }
.blog-hero .feat .overlay h2 {
  color: #fff; margin: 0 0 8px; font-size: 26px; line-height: 1.2;
}
.blog-hero .feat .overlay p { color: #c8d0ee; margin: 0 0 12px; font-size: 14px; }
.blog-hero .feat .overlay .meta-row { color: #8892b0; font-size: 12px; display: flex; gap: 12px; }

.blog-hero .side {
  display: flex; flex-direction: column; gap: 12px;
}
.blog-hero .side a {
  display: flex; gap: 12px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.blog-hero .side a:hover { border-color: var(--brand); transform: translateX(3px); }
.blog-hero .side a img {
  width: 90px; height: 68px; object-fit: cover;
  border-radius: 10px; flex: none;
}
.blog-hero .side a .info { flex: 1; min-width: 0; }
.blog-hero .side a .cat-badge { margin-bottom: 4px; }
.blog-hero .side a h3 {
  margin: 2px 0 4px; font-size: 14px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.blog-hero .side a .meta-row { color: var(--muted); font-size: 11.5px; }

/* ============================================================
   TRENDING CAROUSEL
   ============================================================ */
.trending-wrap {
  margin: 30px 0 0;
}
.trending-wrap h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.trending-wrap h3::before { content: "🔥"; font-size: 16px; }
.trending-scroll {
  display: flex; gap: 14px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px;
  scrollbar-width: none;
}
.trending-scroll::-webkit-scrollbar { display: none; }
.trend-card {
  flex: none; width: 220px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.trend-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.trend-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.trend-card .tc-body { padding: 10px 12px; }
.trend-card .cat-badge { margin-bottom: 6px; }
.trend-card h4 { margin: 0 0 4px; font-size: 13.5px; line-height: 1.3; }
.trend-card .meta-row { color: var(--muted); font-size: 11.5px; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.blog-search-wrap {
  display: flex; gap: 10px; align-items: center; margin: 24px 0 4px;
  flex-wrap: wrap;
}
.blog-search {
  position: relative; flex: 1; min-width: 240px; max-width: 520px;
}
.blog-search input {
  width: 100%; padding: 12px 16px 12px 44px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  font-size: 15px; box-shadow: var(--shadow);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.blog-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108,92,231,.18);
}
.blog-search .si {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%); opacity: .5; pointer-events: none;
}
.blog-search .ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 50; display: none;
}
.blog-search .ac a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none; color: var(--text);
  font-size: 14px; border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.blog-search .ac a:last-child { border-bottom: 0; }
.blog-search .ac a:hover { background: var(--bg-2); }
.blog-search .ac a small { color: var(--muted); margin-left: auto; font-size: 12px; }
.blog-search .ac .no-res { padding: 12px 14px; color: var(--muted); font-size: 14px; }

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 8px; margin: 4px 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button {
  white-space: nowrap; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  flex-shrink: 0;
}
.cat-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.cat-tabs button.on {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

/* ============================================================
   BLOG GRID (article cards)
   ============================================================ */
.blog-grid-section { margin-top: 8px; }
.section-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 28px 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-label a { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--brand); text-decoration: none; }
.section-label a:hover { text-decoration: underline; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.post-card:hover {
  border-color: var(--brand); transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(108,92,231,.18);
}
.post-card .thumb {
  overflow: hidden; aspect-ratio: 16/9; flex: none;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body {
  padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column;
}
.post-card .body .cat-badge { align-self: flex-start; margin-bottom: 8px; }
.post-card .body h3 {
  margin: 0 0 8px; font-size: 15.5px; line-height: 1.3; flex: 1;
}
.post-card .body p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.post-card .body .meta-row {
  display: flex; gap: 10px; align-items: center;
  color: var(--muted); font-size: 12px; flex-wrap: wrap;
  margin-top: auto;
}
.post-card .cta-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  text-decoration: none; margin-top: 10px;
}
.post-card .cta-link:hover { text-decoration: underline; }

/* ============================================================
   CATEGORY BADGE (global)
   ============================================================ */
.cat-badge {
  display: inline-block;
  background: rgba(108,92,231,.12); color: var(--brand);
  border: 1px solid rgba(108,92,231,.28);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 3px 10px; border-radius: 999px;
}
.cat-badge.green  { background:rgba(0,184,148,.12);color:#00b894;border-color:rgba(0,184,148,.28); }
.cat-badge.orange { background:rgba(253,126,20,.12);color:#fd7e14;border-color:rgba(253,126,20,.28); }
.cat-badge.red    { background:rgba(231,76,92,.12);color:#e74c5c;border-color:rgba(231,76,92,.28); }
.cat-badge.teal   { background:rgba(0,206,201,.12);color:#00cec9;border-color:rgba(0,206,201,.28); }
.cat-badge.pink   { background:rgba(253,29,127,.12);color:#fd1d7f;border-color:rgba(253,29,127,.28); }

/* Meta row utilities */
.meta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.meta-row .dot-sep::before { content: "·"; }
.view-ct::before { content: "👁 "; font-size: 11px; }
.read-time::before { content: "⏱ "; font-size: 11px; }

/* ============================================================
   RECENTLY UPDATED STRIP
   ============================================================ */
.recently-updated {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px; margin: 28px 0;
  box-shadow: var(--shadow);
}
.recently-updated h4 {
  margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .4px; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.recently-updated h4::before { content: "🔄"; }
.upd-list { display: flex; flex-direction: column; gap: 10px; }
.upd-item {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; padding: 8px;
  border-radius: 10px; transition: background .12s;
}
.upd-item:hover { background: var(--bg-2); }
.upd-item .upd-icon { font-size: 20px; width: 36px; height: 36px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.upd-item .upd-info h5 { margin: 0 0 2px; font-size: 14px; }
.upd-item .upd-info span { font-size: 12px; color: var(--muted); }

/* ============================================================
   POPULAR ARTICLES WIDGET (sidebar)
   ============================================================ */
.widget {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.widget h4 {
  margin: 0 0 12px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
}
.widget .pop {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; align-items: flex-start;
}
.widget .pop:last-child { border-bottom: 0; padding-bottom: 0; }
.widget .pop .n {
  font-weight: 900; color: var(--brand); font-size: 19px;
  width: 24px; flex: none; line-height: 1;
}
.widget .pop h5 {
  margin: 0 0 3px; font-size: 13.5px; line-height: 1.3; font-weight: 600;
}
.widget .pop .meta { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   STICKY TOC
   ============================================================ */
.toc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
}
.toc h4 {
  margin: 0 0 10px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
}
.toc a {
  display: block; padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line); color: var(--muted);
  text-decoration: none; font-size: 13.5px; line-height: 1.4;
  transition: color .12s, border-color .12s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* ============================================================
   BLOG LAYOUT: article + sidebar
   ============================================================ */
.blog-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; align-items: start; margin-top: 18px;
}
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: 2; }
}
.blog-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }

/* ============================================================
   ARTICLE: post head, meta, hero image
   ============================================================ */
.post-head h1 {
  font-size: clamp(26px, 4vw, 42px); line-height: 1.16;
  margin: 8px 0 12px; letter-spacing: -.5px;
}
.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; margin-bottom: 16px;
}
.post-meta strong { color: var(--text); }
.post-cover {
  width: 100%; border-radius: 16px; aspect-ratio: 16/9;
  object-fit: cover; display: block; margin: 18px 0;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   ARTICLE: quick answer box
   ============================================================ */
.quick-answer {
  background: rgba(0,184,148,.08);
  border: 1px solid rgba(0,184,148,.28);
  border-left: 4px solid var(--brand-2);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.quick-answer strong {
  color: var(--brand-2); display: block; margin-bottom: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
}
.quick-answer p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ============================================================
   ARTICLE: body prose styles
   ============================================================ */
article.post { color: var(--text); }
article.post h2 {
  font-size: clamp(20px, 2.5vw, 26px); line-height: 1.25;
  margin: 36px 0 12px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
article.post h3 { font-size: 18px; margin: 24px 0 8px; }
article.post p { font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
article.post ul, article.post ol { padding-left: 20px; margin: 0 0 16px; }
article.post li { font-size: 15.5px; line-height: 1.7; margin-bottom: 6px; }
article.post strong { color: var(--text); }
article.post a { color: var(--brand); }
article.post a:hover { text-decoration: underline; }
article.post blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-2);
  margin: 20px 0; padding: 14px 18px; border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--muted);
}
article.post code {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; font-size: 13.5px;
  font-family: "Fira Code", "Cascadia Code", monospace;
}
article.post pre {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; overflow-x: auto;
  margin: 16px 0;
}
article.post pre code { background: none; border: none; padding: 0; font-size: 13px; }

/* ============================================================
   TOOL RECOMMENDATION BOX
   ============================================================ */
.toolbox {
  background: linear-gradient(135deg, rgba(108,92,231,.08), rgba(0,184,148,.06));
  border: 1px solid rgba(108,92,231,.25);
  border-radius: 16px; padding: 18px 20px; margin: 24px 0;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.toolbox .tb-ico { font-size: 32px; }
.toolbox .tb-body { flex: 1 1 200px; }
.toolbox .tb-body h4 { margin: 0 0 4px; font-size: 16px; }
.toolbox .tb-body p { margin: 0; color: var(--muted); font-size: 13.5px; }
.toolbox .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--violet-2));
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: 0 4px 14px rgba(108,92,231,.35);
  transition: transform .15s, box-shadow .15s; white-space: nowrap;
}
.toolbox .btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(108,92,231,.45);
}

/* ============================================================
   CTA BANNERS
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--brand), var(--violet-2));
  color: #fff; border-radius: 18px; padding: 28px 30px;
  margin: 28px 0; display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(108,92,231,.35);
}
.cta-banner .cta-text { flex: 1 1 200px; }
.cta-banner .cta-text h3 { margin: 0 0 6px; font-size: 20px; }
.cta-banner .cta-text p { margin: 0; opacity: .88; font-size: 14px; }
.cta-banner .btn-white {
  background: #fff; color: var(--brand);
  border: none; border-radius: 10px; padding: 12px 24px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap;
  transition: transform .15s;
}
.cta-banner .btn-white:hover { transform: translateY(-2px); }

.cta-banner-sm {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cta-banner-sm .ico { font-size: 28px; }
.cta-banner-sm .body { flex: 1; }
.cta-banner-sm .body h4 { margin: 0 0 3px; font-size: 15px; }
.cta-banner-sm .body p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ============================================================
   PILLAR PAGE CTA
   ============================================================ */
.pillar-cta {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--violet-2));
  color: #fff; border-radius: 16px; padding: 22px 24px;
  margin: 20px 0; box-shadow: 0 8px 24px rgba(108,92,231,.35);
  transition: transform .15s, box-shadow .15s;
}
.pillar-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(108,92,231,.45); }
.pillar-cta span { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; opacity: .8; }
.pillar-cta h3 { margin: 4px 0 0; font-size: 20px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-acc details {
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; background: var(--card); overflow: hidden;
}
.faq-acc summary {
  cursor: pointer; font-weight: 700; padding: 16px 18px;
  list-style: none; font-size: 15.5px; display: flex;
  justify-content: space-between; align-items: center;
  transition: background .1s;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary:hover { background: var(--bg-2); }
.faq-acc summary .faq-icon {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--brand);
  flex-shrink: 0; transition: transform .2s;
}
.faq-acc details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-acc .faq-body { padding: 4px 18px 16px; }
.faq-acc .faq-body p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
html[data-theme="dark"] .faq-acc .faq-body p { color: #9ba8cc; }

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.author-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; margin: 26px 0;
  box-shadow: var(--shadow);
}
.author-card .av {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 20px;
}
.author-card .au-info h4 { margin: 0 0 3px; font-size: 16px; }
.author-card .au-info .role { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.author-card .au-info .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.author-card .au-info .tags span {
  font-size: 11px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; color: var(--muted);
}
.author-card .au-socials { margin-left: auto; display: flex; gap: 8px; }
.author-card .au-socials a {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted); font-size: 14px;
  transition: border-color .12s, color .12s;
}
.author-card .au-socials a:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   SHARE + HELPFUL RATING
   ============================================================ */
.share-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0;
}
.share-row .share-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.share-row a, .share-row button {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; text-decoration: none; font-size: 15px;
  transition: border-color .12s, color .12s, background .12s;
}
.share-row a:hover, .share-row button:hover { border-color: var(--brand); color: var(--brand); }

.helpful {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; text-align: center; margin: 28px 0;
}
.helpful p { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.helpful-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.helpful-btns button {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 22px; cursor: pointer;
  font-weight: 700; color: var(--text); font-size: 14px;
  transition: border-color .12s, background .12s;
}
.helpful-btns button:hover { border-color: var(--brand); background: var(--bg-2); }

/* ============================================================
   RELATED ARTICLES GRID
   ============================================================ */
.related-section { margin: 32px 0; }
.related-section h3 { font-size: 20px; margin: 0 0 16px; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMMENTS PLACEHOLDER
   ============================================================ */
.comments-section {
  margin: 32px 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; text-align: center;
}
.comments-section h3 { margin: 0 0 8px; font-size: 18px; }
.comments-section p { color: var(--muted); margin: 0; font-size: 14px; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, #1c2333, #3a2f6e);
  color: #fff; border-radius: 20px; padding: 32px;
  text-align: center; margin: 36px 0;
  box-shadow: 0 12px 40px rgba(58,47,110,.4);
}
.newsletter .nl-icon { font-size: 36px; margin-bottom: 10px; }
.newsletter h3 { margin: 0 0 8px; font-size: 24px; }
.newsletter p { margin: 0 0 18px; color: #a8b2d8; font-size: 14.5px; }
.newsletter form {
  display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter input {
  flex: 1 1 200px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 14px; outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { border-color: rgba(255,255,255,.5); }
.newsletter .btn-nl {
  background: linear-gradient(135deg, #ff3d8b, #d6336c);
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 22px; font-weight: 700; cursor: pointer;
  font-size: 14px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(214,51,108,.45);
}
.newsletter .btn-nl:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(214,51,108,.5); }
.newsletter .nl-note { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 10px; }

/* ============================================================
   AD ZONES — performance-safe placements
   ============================================================ */
.ad-zone {
  margin: 28px 0; min-height: 90px; text-align: center;
  border-radius: 10px; overflow: hidden;
}
.ad-zone-sidebar {
  margin: 0 0 18px; min-height: 250px;
  border-radius: 10px; overflow: hidden;
}
.ad-zone-mobile {
  display: none; margin: 20px 0; text-align: center;
}
@media (max-width: 600px) { .ad-zone-mobile { display: block; } }
.ad-placeholder {
  background: var(--bg-2); border: 1px dashed var(--line);
  border-radius: 10px; color: var(--muted); text-align: center;
  padding: 18px; font-size: 12px;
}

/* ============================================================
   MOBILE STICKY FOOTER AD
   ============================================================ */
.sticky-mob-ad {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 8px; text-align: center; box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
@media (max-width: 600px) { .sticky-mob-ad { display: block; } }

/* ============================================================
   HUB: STATS STRIP
   ============================================================ */
.stats-strip {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  margin: 28px 0; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.stat-item { text-align: center; min-width: 100px; }
.stat-item .num { font-size: 28px; font-weight: 900; color: var(--brand); }
.stat-item .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ============================================================
   PILLAR PAGES GRID
   ============================================================ */
.pillar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 14px 0;
}
@media (max-width: 860px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.pillar-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.pillar-card .pi { font-size: 28px; }
.pillar-card h4 { margin: 0; font-size: 13.5px; line-height: 1.3; }

/* ============================================================
   UTILITY: section-head
   ============================================================ */
.section-head { margin: 28px 0 20px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.divider { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ============================================================
   FOOTER EXTRAS
   ============================================================ */
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0 24px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 0 0 10px; }
.foot-cols a { display: block; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 7px; }
.foot-cols a:hover { color: var(--brand); }
.brand { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp .4s ease both; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .blog-sidebar, .ad-zone, .newsletter, .share-row, .helpful,
  #read-progress, #back-top, .sticky-mob-ad { display: none !important; }
  .blog-layout { grid-template-columns: 1fr; }
  article.post { font-size: 12pt; }
}

/* ============================================================
   BLOG PAGE HERO
   ============================================================ */
.blog-page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 -20px 40px;
  padding: 64px 20px 56px;
  background: linear-gradient(135deg, #0d0a2e 0%, #0f1535 40%, #0a1a2e 100%);
  border-radius: 0 0 28px 28px;
  text-align: center;
}

html:not([data-theme="dark"]) .blog-page-hero {
  background: linear-gradient(135deg, #3b1fa8 0%, #5b4cff 40%, #1a6bb5 100%);
}

/* Glows */
.bph-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.bph-glow-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,111,255,.55), transparent 70%);
  top: -120px; left: -80px;
  animation: bph-float 8s ease-in-out infinite;
}
.bph-glow-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,229,168,.4), transparent 70%);
  top: -80px; right: -60px;
  animation: bph-float 10s ease-in-out infinite reverse;
}
.bph-glow-3 {
  width: 280px; height: 180px;
  background: radial-gradient(circle, rgba(91,76,255,.3), transparent 70%);
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  animation: bph-float 12s ease-in-out infinite;
}
@keyframes bph-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.06); }
}
.bph-glow-3 { animation: bph-float3 12s ease-in-out infinite; }
@keyframes bph-float3 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-16px); }
}

.bph-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* Category chips */
.bph-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.bph-chips span {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  backdrop-filter: blur(6px);
  letter-spacing: .3px;
}

/* Title */
.bph-title {
  font-size: clamp(26px, 6vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #ffffff 0%, #c8b8ff 50%, #7ff5d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}
html:not([data-theme="dark"]) .bph-title {
  background: linear-gradient(135deg, #ffffff 0%, #e8d8ff 60%, #b8fff0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.bph-sub {
  color: rgba(255,255,255,.75);
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* Stats row */
.bph-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 14px 24px;
  backdrop-filter: blur(8px);
}
.bph-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.bph-stat strong {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.bph-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.bph-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .blog-page-hero { padding: 48px 16px 44px; margin: 0 -16px 28px; border-radius: 0 0 20px 20px; }
  .bph-chips span { font-size: 11px; padding: 4px 10px; }
  .bph-stats { padding: 12px 16px; }
  .bph-stat { padding: 0 12px; }
  .bph-stat strong { font-size: 17px; }
}

