/* ========================================================
   Shared article page styles — Việt BIM Coder blog
   ======================================================== */

html { scroll-behavior: smooth; }
body {
  background: #0A0A0B;
  color: #E5E5E7;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0A0B; }
::-webkit-scrollbar-thumb { background: #2A2A2F; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #f36c4f; }

.btn-orange {
  background: #f36c4f;
  box-shadow: 0 14px 30px -12px rgba(243,108,79,0.6);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn-orange:hover {
  transform: translateY(-2px);
  background: #ff7d5e;
  box-shadow: 0 18px 40px -10px rgba(243,108,79,0.75);
}

.orange-bar::before {
  content: ''; display: inline-block; width: 2.25rem; height: 2px;
  background: #f36c4f; margin-right: .75rem; vertical-align: middle;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Article hero ============ */
.article-hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 3rem;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(243,108,79,0.18) 0%, rgba(243,108,79,0) 50%),
    radial-gradient(50% 70% at 0% 50%, rgba(243,108,79,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(243,108,79,0.95);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 999px;
}
.article-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.article-cover {
  width: 100%;
  height: clamp(280px, 50vh, 520px);
  object-fit: cover;
  background: #141416;
}

/* ============ Prose body ============ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(229,229,231,0.85);
}
.prose > * + * { margin-top: 1.4em; }
.prose p { color: rgba(229,229,231,0.82); }
.prose strong { color: #fff; font-weight: 700; }
.prose em { color: #f36c4f; font-style: normal; font-weight: 600; }
.prose a {
  color: #f36c4f;
  border-bottom: 1px solid rgba(243,108,79,0.4);
  transition: border-color .3s ease;
}
.prose a:hover { border-bottom-color: #f36c4f; }

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 2.6em;
  margin-bottom: 0.6em;
  position: relative;
}
.prose h2::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  background: #f36c4f;
  margin-bottom: 0.8rem;
}
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}
.prose h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5em 0;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 0.5rem;
  background: #f36c4f;
  border-radius: 1px;
  transform: rotate(45deg);
}
.prose ol > li {
  margin: 0.5em 0;
  padding-left: 0.4rem;
}
.prose ol > li::marker {
  color: #f36c4f;
  font-weight: 700;
}

.prose blockquote {
  border-left: 3px solid #f36c4f;
  padding: 0.4em 1.5em;
  margin: 2em 0;
  background: rgba(243,108,79,0.05);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  line-height: 1.6;
}
.prose blockquote p:first-child::before { content: '“'; color: #f36c4f; font-size: 1.4em; margin-right: 0.1em; }
.prose blockquote p:last-child::after { content: '”'; color: #f36c4f; font-size: 1.4em; margin-left: 0.1em; }

.prose img {
  width: 100%;
  border-radius: 4px;
  margin: 1.6em 0;
  background: #141416;
}
.prose figure { margin: 2em 0; }
.prose figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.6em;
  font-style: italic;
}

.prose code {
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #ffae93;
}
.prose pre {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 1.2em;
  overflow-x: auto;
  font-size: 0.92em;
  line-height: 1.65;
  margin: 1.6em 0;
}
.prose pre code {
  background: none;
  padding: 0;
  color: #E5E5E7;
}

/* Highlight callout — used for "key insight" boxes */
.callout {
  border-left: 3px solid #f36c4f;
  background: linear-gradient(90deg, rgba(243,108,79,0.10), rgba(243,108,79,0.02));
  padding: 1.2em 1.5em;
  border-radius: 0 4px 4px 0;
  margin: 1.8em 0;
}
.callout > p:first-child { margin-top: 0; }
.callout > p:last-child { margin-bottom: 0; }
.callout-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f36c4f;
  margin-bottom: 0.5em;
}

/* Related cards */
.blog-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-card img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 108, 79, 0.35);
  box-shadow: 0 20px 50px -20px rgba(243, 108, 79, 0.30),
              0 0 0 1px rgba(243, 108, 79, 0.20);
}
.blog-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.08);
}

/* ========================================================
   Section title typography — Saira Condensed
   Applied to h2 inside sections (and major page-section h2s in
   bai-viet / sub-pages), keeping h1 hero on Big Shoulders Display.
   ======================================================== */
section h2,
.section-title {
  font-family: 'Saira Condensed', 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
/* Bring back Inter for prose article body h2/h3 (not section h2) */
.prose h2 {
  font-family: 'Saira Condensed', 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
