/* ============================================================
   VidLab blog — distinctive long-form reading design.
   Layers on top of ../style.css (light theme, Outfit + JetBrains).
   ============================================================ */

/* reading-progress bar */
.read-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #FF006E, #7C3AED, #0090C8);
  z-index: 999; transition: width 80ms linear;
}

/* ---- article hero ---- */
.post-hero {
  position: relative;
  padding: 60px 20px 42px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(255,0,110,0.10), transparent 60%),
    radial-gradient(60% 120% at 85% 10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(50% 120% at 50% 100%, rgba(0,144,200,0.08), transparent 60%);
}
.post-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #FF006E;
  background: rgba(255,0,110,0.08);
  border: 1px solid rgba(255,0,110,0.22);
  border-radius: 9999px; padding: 5px 14px; margin-bottom: 18px;
}
.post-h1 {
  max-width: 820px; margin: 0 auto 16px;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.08;
  font-weight: 800; letter-spacing: -1px;
}
.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1px; color: rgba(20,20,31,0.5);
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.post-meta b { color: #14141F; font-weight: 600; }

/* ---- article body ---- */
.post {
  max-width: 720px; margin: 0 auto; padding: 8px 20px 60px;
  font-size: 17.5px; line-height: 1.78; color: #2b2b38;
}
.post > p:first-of-type::first-letter {
  float: left; font-size: 62px; line-height: 0.82;
  font-weight: 800; color: #FF006E;
  padding: 6px 12px 0 0;
}
.post p { margin: 0 0 20px; }
.post strong { color: #14141F; font-weight: 700; }
.post a { color: #C1005A; text-decoration: underline; text-underline-offset: 2px; }
.post a:hover { color: #FF006E; }

.post h2 {
  font-size: 27px; font-weight: 800; letter-spacing: -0.5px;
  margin: 44px 0 14px; padding-left: 14px; line-height: 1.2;
  border-left: 4px solid #FF006E; scroll-margin-top: 80px;
}
.post h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.post ul, .post ol { margin: 0 0 22px; padding-left: 24px; }
.post li { margin: 0 0 10px; }
.post img { max-width: 100%; border-radius: 14px; display: block; margin: 26px auto; }

/* table of contents */
.post-toc {
  background: #F6F6FB;
  border: 1px solid rgba(20,20,31,0.08);
  border-radius: 14px; padding: 18px 22px; margin: 6px 0 30px;
}
.post-toc h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(20,20,31,0.5); margin: 0 0 10px;
}
.post-toc ol { margin: 0; padding-left: 20px; }
.post-toc li { margin: 5px 0; font-size: 15px; }
.post-toc a { color: #3a3a48; text-decoration: none; }
.post-toc a:hover { color: #FF006E; }

/* key-takeaway / note callouts */
.callout {
  position: relative; margin: 26px 0; padding: 18px 20px 18px 54px;
  background: linear-gradient(120deg, rgba(255,0,110,0.05), rgba(124,58,237,0.05));
  border: 1px solid rgba(255,0,110,0.18);
  border-radius: 14px; font-size: 16px; line-height: 1.6;
}
.callout::before {
  content: '💡'; position: absolute; left: 18px; top: 18px; font-size: 20px;
}
.callout.warn { background: linear-gradient(120deg, rgba(217,138,0,0.07), rgba(217,138,0,0.03)); border-color: rgba(217,138,0,0.25); }
.callout.warn::before { content: '⚠️'; }
.callout b { color: #14141F; }

/* pull quote */
.pullquote {
  margin: 30px 0; padding: 8px 0 8px 22px;
  border-left: 4px solid #7C3AED;
  font-size: 22px; line-height: 1.4; font-weight: 600; color: #14141F;
}

/* inline CTA to a tool */
.cta-card {
  margin: 34px 0; padding: 24px;
  background: #14141F; color: #fff; border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cta-card .cta-txt { flex: 1 1 260px; }
.cta-card h4 { font-size: 19px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.cta-card p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.cta-card .btn { white-space: nowrap; }

/* inline ad slot */
.ad-inline {
  margin: 34px auto; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* related posts */
.related { max-width: 900px; margin: 10px auto 60px; padding: 0 20px; }
.related h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(20,20,31,0.5);
  margin: 0 0 16px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card {
  display: block; padding: 16px 18px; border-radius: 14px;
  background: #F6F6FB; border: 1px solid rgba(20,20,31,0.08);
  text-decoration: none; color: #14141F;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(255,0,110,0.35); box-shadow: 0 10px 26px rgba(255,0,110,0.10); }
.related-card .rc-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #FF006E; }
.related-card h4 { font-size: 15.5px; font-weight: 600; margin: 6px 0 0; line-height: 1.35; }

/* ---- blog index cards ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid rgba(20,20,31,0.09);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(255,0,110,0.35); box-shadow: 0 16px 40px rgba(20,20,31,0.10); }
.blog-cover { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.blog-body { padding: 18px 20px 22px; }
.blog-body .bc-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #FF006E; }
.blog-body h3 { font-size: 18px; font-weight: 700; margin: 8px 0 8px; line-height: 1.3; color: #14141F; }
.blog-body p { font-size: 14px; line-height: 1.55; color: rgba(20,20,31,0.6); margin: 0 0 12px; }
.blog-body .bc-read { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #C1005A; }

@media (prefers-color-scheme: dark) {
  /* the site is light-first; keep the blog readable if a browser forces dark */
  .post { color: #2b2b38; }
}
