/* ══════════════════════════════════════════════════════════
   blog-post.css  —  Growth Tuning blog post page styles
   ══════════════════════════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.bp-page {
  min-height: 100vh;
  padding-top: 64px;
  background: hsl(43, 20%, 90%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ── ARTICLE COLUMN ── */
.bp-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 120px;
}

/* ── BACK NAV ── */
.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(220, 10%, 54%);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.18s;
}
.bp-back:hover { color: hsl(220, 62%, 28%); }
.bp-back svg { transition: transform 0.2s; }
.bp-back:hover svg { transform: translateX(-2px); }

/* ── ARTICLE HEADER ── */
.bp-cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(200, 75%, 36%);
  background: hsla(200, 78%, 56%, 0.1);
  border: 1px solid hsla(200, 75%, 56%, 0.2);
  padding: 5px 13px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.bp-h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.125rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: hsl(220, 64%, 16%);
  margin: 0 0 24px;
}
.bp-h1 em {
  font-style: normal;
  color: hsl(200, 72%, 36%);
}

.bp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid hsl(220, 16%, 84%);
}
.bp-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: hsl(220, 10%, 50%);
  font-weight: 400;
}
.bp-meta-item svg { color: hsl(220, 10%, 64%); }
.bp-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: hsl(220, 10%, 72%);
  margin: 0 14px;
  flex-shrink: 0;
}

/* ── SHARE ROW ── */
.bp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.bp-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(220, 10%, 56%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-right: 2px;
}
.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  cursor: pointer;
  border: 1px solid hsl(220, 16%, 84%);
  background: transparent;
  color: hsl(220, 18%, 36%);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}
.bp-share-btn:hover {
  background: hsl(220, 62%, 20%);
  color: hsl(200, 85%, 64%);
  border-color: hsl(220, 62%, 20%);
}

/* ── COVER IMAGE ── */
.bp-cover-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2/1;
  background: hsl(220, 64%, 18%);
  margin-bottom: 56px;
  box-shadow: 0 2px 12px hsla(220, 40%, 12%, 0.1), 0 8px 36px hsla(220, 40%, 12%, 0.1);
}
.bp-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bp-cover-wrap:hover img { transform: scale(1.025); }

/* ── PART BADGE (for series) ── */
.bp-part-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(220, 62%, 20%, 0.06);
  border: 1px solid hsl(220, 40%, 80%);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 36px;
  font-size: 0.875rem;
  color: hsl(220, 30%, 35%);
}
.bp-part-badge strong { color: hsl(220, 62%, 22%); font-weight: 700; }
.bp-part-badge a { color: hsl(220, 60%, 32%); }

/* ── PROSE ── */
.bp-prose {
  font-size: 1.125rem;
  line-height: 1.88;
  color: hsl(220, 20%, 16%);
}

.bp-prose h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: hsl(220, 64%, 16%);
  margin-top: 80px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid hsl(220, 16%, 86%);
  scroll-margin-top: 68px;
}
.bp-prose h2:first-child { margin-top: 0; }

.bp-prose h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.005em;
  line-height: 1.32;
  color: hsl(220, 58%, 22%);
  margin-top: 52px;
  margin-bottom: 13px;
  scroll-margin-top: 68px;
}

.bp-prose p { margin-bottom: 26px; }
.bp-prose p:last-child { margin-bottom: 0; }

.bp-prose ul,
.bp-prose ol {
  list-style: none;
  padding: 0;
  margin-bottom: 26px;
}
.bp-prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.bp-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(200, 80%, 48%);
}
.bp-prose ol { counter-reset: bpc; }
.bp-prose ol li::before {
  counter-increment: bpc;
  content: counter(bpc) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: hsl(200, 75%, 38%);
  font-weight: 700;
  font-size: 0.9em;
}

.bp-prose strong { color: hsl(220, 64%, 16%); font-weight: 700; }
.bp-prose em { font-style: italic; color: hsl(220, 20%, 34%); }
.bp-prose a {
  color: hsl(220, 60%, 32%);
  font-weight: 500;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.16s;
}
.bp-prose a:hover { color: hsl(200, 72%, 34%); }

.bp-prose code {
  background: hsla(220, 55%, 22%, 0.08);
  color: hsl(220, 60%, 26%);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.875em;
  font-family: 'Fira Code', 'SF Mono', monospace;
  border: 1px solid hsl(220, 38%, 85%);
}

/* ── BLOCKQUOTE ── */
.bp-prose blockquote {
  position: relative;
  margin: 44px 0;
  border-left: 3px solid hsl(220, 62%, 32%);
  padding: 4px 0 4px 28px;
}
.bp-prose blockquote p {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.7;
  font-style: italic;
  color: hsl(220, 30%, 28%);
  font-weight: 400;
}
.bp-prose blockquote cite {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  color: hsl(220, 12%, 52%);
}
.bp-prose blockquote cite::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: hsl(220, 40%, 70%);
  flex-shrink: 0;
}

/* ── HR ── */
.bp-prose hr {
  border: none;
  margin: 64px 0;
  height: 1px;
  background: hsl(220, 14%, 86%);
}

/* ── CALLOUT BOX ── */
.bp-callout {
  display: flex;
  gap: 16px;
  background: hsla(220, 62%, 20%, 0.04);
  border: 1px solid hsl(220, 40%, 86%);
  border-left: 3px solid hsl(220, 62%, 32%);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 36px 0;
}
.bp-callout-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: hsl(220, 62%, 22%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.bp-callout-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: hsl(220, 62%, 20%);
  margin: 0 0 5px;
}
.bp-callout-body {
  font-size: 0.9375rem;
  color: hsl(220, 16%, 36%);
  line-height: 1.65;
  margin: 0;
}

/* ── INSIGHT BOX ── */
.bp-insight {
  background: hsl(220, 62%, 20%);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
  border: 1px solid hsla(220, 48%, 28%, 0.5);
  position: relative;
  overflow: hidden;
}
.bp-insight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(200, 82%, 62%, 0.28), transparent);
}
.bp-insight-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(200, 78%, 52%);
  margin-bottom: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.bp-insight-text {
  font-size: 0.9375rem;
  color: hsl(215, 14%, 62%);
  line-height: 1.7;
  margin: 0;
}

/* ── STAT ROW ── */
.bp-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0;
}
.bp-stat-card {
  background: hsl(220, 62%, 20%);
  border-radius: 16px;
  padding: 24px 14px 20px;
  text-align: center;
  border: 1px solid hsla(220, 48%, 28%, 0.5);
}
.bp-stat-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: hsl(200, 85%, 62%);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.bp-stat-lbl {
  font-size: 0.8rem;
  color: hsl(215, 16%, 57%);
  line-height: 1.5;
}

/* ── IMPLICATION LIST ── */
.bp-impl-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.bp-impl-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid hsl(220, 14%, 86%);
}
.bp-impl-item:last-child { border-bottom: none; }
.bp-impl-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: hsl(200, 78%, 44%);
  background: hsla(200, 78%, 56%, 0.1);
  border: 1px solid hsla(200, 75%, 56%, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.bp-impl-head {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: hsl(220, 64%, 18%);
  margin-bottom: 6px;
}
.bp-impl-body {
  font-size: 0.9375rem;
  color: hsl(220, 16%, 36%);
  line-height: 1.65;
  margin: 0;
}

/* ── FLOW DIAGRAM ── */
.bp-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px auto;
  gap: 0;
  max-width: 320px;
}
.bp-flow-step {
  width: 100%;
  text-align: center;
  background: hsl(220, 62%, 20%);
  color: hsl(200, 85%, 72%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid hsl(220, 46%, 30%);
}
.bp-flow-arrow {
  font-size: 1.25rem;
  color: hsl(220, 20%, 60%);
  line-height: 1.6;
  user-select: none;
}

/* ── IMAGE BLOCK ── */
.bp-img-block {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  background: hsl(220, 20%, 94%);
  border: 1px dashed hsl(220, 20%, 80%);
}
.bp-img-block img {
  width: 100%;
  height: auto;
  display: block;
}
.bp-diagram-img {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px hsla(220, 40%, 12%, 0.08);
}
.bp-diagram-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── TABLE ── */
.bp-table-wrap {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: 12px;
  border: 1px solid hsl(220, 16%, 86%);
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.bp-table th {
  background: hsl(220, 62%, 20%);
  color: hsl(200, 85%, 62%);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}
.bp-table th:first-child { border-radius: 11px 0 0 0; }
.bp-table th:last-child  { border-radius: 0 11px 0 0; }
.bp-table td {
  padding: 12px 18px;
  color: hsl(220, 20%, 22%);
  border-top: 1px solid hsl(220, 14%, 90%);
  vertical-align: top;
  line-height: 1.5;
}
.bp-table tr:nth-child(even) td { background: hsl(220, 20%, 97%); }
.bp-table td:first-child { font-weight: 600; color: hsl(220, 50%, 28%); }

/* ── TAGS ── */
.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid hsl(220, 14%, 84%);
}
.bp-tag {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: hsl(220, 50%, 28%);
  border: 1px solid hsl(220, 40%, 80%);
  cursor: default;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.bp-tag:hover {
  background: hsl(220, 62%, 22%);
  color: hsl(200, 85%, 62%);
  border-color: hsl(220, 62%, 22%);
}

/* ── AUTHOR BOX ── */
.bp-author {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 30px;
  border-radius: 18px;
  background: hsl(220, 62%, 20%);
  border: 1px solid hsla(220, 46%, 26%, 0.5);
}
.bp-author-av {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: hsla(200, 85%, 60%, 0.12);
  border: 1.5px solid hsla(200, 80%, 60%, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  color: hsl(200, 85%, 62%);
}
.bp-author-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 3px;
}
.bp-author-role {
  font-size: 0.7rem;
  color: hsl(215, 14%, 55%);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bp-author-bio {
  font-size: 0.9rem;
  color: hsl(215, 12%, 57%);
  line-height: 1.7;
}

/* ── NEWSLETTER CTA ── */
.bp-nl {
  margin-top: 60px;
  padding: 40px 36px;
  border-radius: 20px;
  background: hsl(220, 62%, 20%);
  text-align: center;
  border: 1px solid hsla(220, 46%, 26%, 0.5);
  position: relative;
  overflow: hidden;
}
.bp-nl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(200, 82%, 62%, 0.3), transparent);
}
.bp-nl-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(200, 80%, 54%);
  margin-bottom: 12px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.bp-nl-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.bp-nl-sub {
  font-size: 0.9375rem;
  color: hsl(215, 14%, 58%);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 26px;
}
.bp-nl-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.bp-nl-input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border-radius: 9px;
  background: hsl(220, 40%, 28%);
  border: 1px solid hsl(220, 36%, 34%);
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
}
.bp-nl-input::placeholder { color: hsl(215, 14%, 52%); }
.bp-nl-input:focus { border-color: hsla(200, 80%, 54%, 0.6); }
.bp-nl-submit {
  padding: 11px 24px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  background: hsla(200, 80%, 54%, 0.16);
  color: hsl(200, 85%, 62%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid hsla(200, 80%, 54%, 0.3);
  transition: background 0.18s;
  white-space: nowrap;
}
.bp-nl-submit:hover { background: hsla(200, 80%, 54%, 0.28); }

/* ── RELATED ARTICLES ── */
.bp-related { margin-top: 72px; }
.bp-related-head {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(220, 10%, 56%);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid hsl(220, 14%, 84%);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.bp-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bp-rel-card {
  background: hsl(43, 14%, 94%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid hsl(220, 14%, 86%);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  cursor: default;
}
.bp-rel-card.linked {
  cursor: pointer;
}
.bp-rel-card.linked:hover {
  border-color: hsl(220, 30%, 72%);
  box-shadow: 0 4px 20px hsla(220, 20%, 14%, 0.08);
}
.bp-rel-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: hsl(220, 62%, 20%);
}
.bp-rel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bp-rel-card.linked:hover .bp-rel-img-wrap img { transform: scale(1.04); }
.bp-rel-body { padding: 18px 20px; }
.bp-rel-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(200, 72%, 36%);
  margin-bottom: 8px;
}
.bp-rel-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: hsl(220, 62%, 18%);
  line-height: 1.4;
  margin-bottom: 12px;
}
.bp-rel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: hsl(220, 10%, 54%);
}
.bp-rel-read {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(220, 62%, 28%);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .bp-related-grid { grid-template-columns: 1fr; }
  .bp-col { padding-top: 36px; padding-bottom: 96px; }
  .bp-stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bp-col { padding-left: 18px; padding-right: 18px; }
  .bp-prose { font-size: 1.0625rem; }
  .bp-author { padding: 22px 20px; flex-wrap: wrap; gap: 14px; }
  .bp-nl { padding: 28px 22px; }
  .bp-share { gap: 8px; }
}
