/* Shared blog post styles */
:root {
  --navy: #0a0e27;
  --navy-2: #131838;
  --navy-deep: #060920;
  --pink: #f27eb3;
  --pink-soft: #f9b9d8;
  --white: #ffffff;
  --text-soft: #c5cce4;
  --text-mute: #8b91b3;
  --border: rgba(255,255,255,0.08);
  --max: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
.bp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,39,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.bp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bp-back {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 700;
}
.bp-cta {
  background: var(--pink);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bp-cta:hover { text-decoration: none; transform: translateY(-2px); }

/* Reading progress bar (top of viewport) */
.bp-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink-soft));
  z-index: 60;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(242,126,179,0.6);
}

/* Hero with halo (matches index.html aesthetic) */
.bp-hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 0;
  overflow: visible;
}
.bp-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,126,179,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bp-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
}
.bp-hero-text { min-width: 0; text-align: center; }
.bp-hero-text .bp-meta { justify-content: center; }
.bp-hero-illu {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(242,126,179,0.18));
}
.bp-hero-illu svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .bp-hero { padding: 40px 22px 0; }
  .bp-hero-inner { gap: 24px; }
  .bp-hero::before { width: 400px; height: 400px; top: -100px; }
}

article.bp {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.bp-tag {
  display: inline-block;
  background: rgba(242,126,179,0.15);
  color: var(--pink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.bp h1 {
  font-family: 'Archivo Black', sans-serif;
  color: var(--white);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.bp .lead {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.6;
}
.bp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.bp-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-author img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  min-width: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.bp-author strong { color: var(--white); display: block; font-size: 14px; line-height: 1.2; }
.bp-author span { font-size: 12px; color: var(--text-mute); }
.bp h2 {
  font-family: 'Archivo Black', sans-serif;
  color: var(--white);
  font-size: 28px;
  line-height: 1.25;
  margin: 88px 0 28px;
  text-align: center;
  position: relative;
  padding-top: 24px;
}
.bp h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--pink-soft));
  border-radius: 2px;
}
.bp h3 {
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
  margin: 56px 0 20px;
  text-align: center;
}
.bp p { margin-bottom: 24px; }
.bp ul, .bp ol { margin: 0 0 24px 22px; }
.bp li { margin-bottom: 10px; }
.bp strong { color: var(--white); }
.bp blockquote {
  border-left: 3px solid var(--pink);
  padding: 14px 22px;
  margin: 28px 0;
  background: var(--navy-2);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-soft);
}
.bp .key-takeaway {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pink);
  padding: 22px 26px;
  border-radius: 12px;
  margin: 32px 0;
}
.bp .key-takeaway h4 {
  color: var(--pink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  font-weight: 800;
}
.bp .key-takeaway p { margin-bottom: 0; color: var(--white); }
.bp .cta-block {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  margin: 56px 0 0;
  text-align: center;
}
.bp .cta-block h3 {
  color: var(--white);
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
}
.bp .cta-block p { font-size: 15px; margin-bottom: 22px; }
.bp .cta-block a {
  display: inline-block;
  background: var(--pink);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.bp .cta-block a:hover { text-decoration: none; transform: translateY(-2px); }
.bp-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  border-top: 1px solid var(--border);
}
.bp-related h3 {
  color: var(--white);
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.bp-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bp-related li a {
  display: block;
  padding: 16px 18px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s;
}
.bp-related li a:hover { border-color: var(--pink); color: var(--white); text-decoration: none; }

/* Related cards with thumbnail */
.bp-related ul.with-thumbs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bp-related ul.with-thumbs li a {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bp-related ul.with-thumbs .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bp-related ul.with-thumbs .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(242,126,179,0.25), transparent 60%);
}
.bp-related ul.with-thumbs .thumb svg {
  width: 60%;
  height: 60%;
  position: relative;
  z-index: 1;
}
.bp-related ul.with-thumbs .thumb-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(10,14,39,0.85);
  color: var(--pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}
.bp-related ul.with-thumbs .thumb-title {
  padding: 14px 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.4;
}
.bp-related ul.with-thumbs li a:hover .thumb-title { color: var(--white); }

/* Sticky floating CTA (appears when scrolled past 60%) */
.bp-floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--pink);
  color: var(--navy);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(242,126,179,0.35), 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 55;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.bp-floating-cta.visible { transform: translateX(-50%) translateY(0); }
.bp-floating-cta:hover { text-decoration: none; }
@media (max-width: 760px) {
  .bp-floating-cta { bottom: 16px; padding: 12px 20px; font-size: 12px; }
}

/* Didactic mockups inside articles */
.bp .mockup {
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 32px 0;
  position: relative;
  font-family: 'Raleway', sans-serif;
}
.bp .mockup-label {
  position: absolute;
  top: -10px; left: 18px;
  background: var(--pink);
  color: var(--navy);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bp .mockup-li-msg {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  align-items: flex-start;
}
.bp .mockup-li-msg .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}
.bp .mockup-li-msg .bubble {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 100%;
}
.bp .mockup-li-msg .bubble strong { color: var(--white); }
.bp .mockup-li-msg .bubble .meta { display: block; font-size: 11px; color: var(--text-mute); margin-top: 4px; font-weight: 600; }

.bp .mockup-checklist { padding-left: 0; }
.bp .mockup-checklist li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}
.bp .mockup-checklist li:last-child { border-bottom: none; }
.bp .mockup-checklist li::before {
  content: '✓';
  color: var(--pink);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.bp .mockup-checklist li strong { color: var(--white); display: block; margin-bottom: 4px; }
.bp .mockup-checklist li span { color: var(--text-mute); font-size: 13px; }

.bp .mockup-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 0;
  font-size: 14px;
}
.bp .mockup-table th, .bp .mockup-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.bp .mockup-table th {
  color: var(--pink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.bp .mockup-table td { color: var(--text-soft); }
.bp .mockup-table td strong { color: var(--white); }

@media (max-width: 760px) {
  .bp .mockup { padding: 20px 18px; }
  .bp .mockup-table { font-size: 12px; }
  .bp .mockup-table th, .bp .mockup-table td { padding: 8px 10px; }
}
.bp-footer {
  text-align: center;
  padding: 30px 24px 50px;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) {
  article.bp { padding: 50px 22px 40px; }
  .bp h2 { font-size: 24px; margin: 64px 0 22px; padding-top: 20px; }
  .bp h3 { font-size: 18px; margin: 40px 0 16px; }
  .bp .cta-block { padding: 28px 22px; }
}
