/* ─────────────────────────────────────────────
   Blog Post Page — TLA / Askaprice Theme
   Font: Poppins via Google Fonts
   ───────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand:     #0279ff;
  --brand-lt:  rgba(2, 121, 255, 0.08);
  --dark:      #0d1b2a;
  --mid:       #4a5568;
  --muted:     #a0aec0;
  --border:    #e2e8f0;
  --bg-tint:   rgba(2, 121, 255, 0.04);
  --white:     #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.bp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.bp-article .hs-responsive-embed-wrapper {
  max-width: 100% !important;
  max-height: none !important;
}

/* ── Post header ── */
.bp-header {
  padding: 180px 0 56px;
  border-bottom: 0;
}

.bp-header__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Back link ── */
.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s, gap 0.15s;
}

.bp-back:hover {
  color: var(--dark);
  gap: 8px;
}

.bp-header__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bp-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-lt);
  padding: 4px 10px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s;
}

.bp-tag:hover {
  background: rgba(2, 121, 255, 0.14);
}

.bp-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.bp-header__intro {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 48px;
}

.bp-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #0079ff;
}

.bp-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-author__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tint);
  flex-shrink: 0;
}

.bp-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-author__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.bp-author__role {
  font-size: 11px;
  color: var(--muted);
}

.bp-header__meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.bp-header__meta-item {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-header__meta-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

/* ── Featured image ── */
.bp-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-tint);
  border-radius: 12px;
}

.bp-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Layout: centred single column ── */
.bp-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 100px;
}

/* ── Article body ── */
.bp-article {}

.bp-article h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
  line-height: 1.35;
  margin: 48px 0 16px;
}

.bp-article h2:first-child { margin-top: 0; }

.bp-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--dark);
  line-height: 1.45;
  margin: 36px 0 12px;
}

.bp-article h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin: 28px 0 10px;
}

.bp-article p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 20px;
}

.bp-article p:last-child { margin-bottom: 0; }

.bp-article a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(2, 121, 255, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.bp-article a:hover {
  text-decoration-color: var(--brand);
}

.bp-article strong {
  font-weight: 600;
  color: var(--dark);
}

.bp-article em {
  font-style: italic;
}

/* Lists */
.bp-article ul,
.bp-article ol {
  margin: 0 0 20px 20px;
}

.bp-article li {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 6px;
}

.bp-article ul li::marker {
  color: var(--brand);
}

.bp-article ol li::marker {
  color: var(--brand);
  font-weight: 600;
}

/* Blockquote */
.bp-article blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-lt);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
}

.bp-article blockquote p {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 0;
}

.bp-article blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Code */
.bp-article code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(13, 27, 42, 0.06);
  color: var(--dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.bp-article pre {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  margin: 32px 0;
}

.bp-article pre code {
  font-size: 13px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 0;
  border-radius: 0;
}

/* Stat / callout block */
.bp-callout {
  border-left: 3px solid var(--brand);
  background: var(--brand-lt);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.bp-callout__stat {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}

.bp-callout__label {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
}

/* Divider */
.bp-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}


/* ── Related posts ── */
.bp-related {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.bp-related__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bp-related__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.bp-related__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.bp-related__all:hover { gap: 8px; }

.bp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Related card with shimmer ── */
@property --bp-shimmer {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes bp-shimmer-spin {
  to { --bp-shimmer: 360deg; }
}

.bp-related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
  transition: box-shadow 0.2s;
}

.bp-related-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.bp-related-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.bp-related-card:hover::before {
  background: conic-gradient(from var(--bp-shimmer) at 50% 50%, transparent 0deg, rgba(0, 121, 255, 0.9) 60deg, transparent 120deg);
  animation: bp-shimmer-spin 4s linear infinite;
}

.bp-related-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tint);
}

.bp-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-related-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.bp-related-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.bp-related-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.45;
  flex: 1;
}

.bp-related-card__meta {
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bp-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .bp-container { padding: 0 24px; }
  .bp-header { padding: 100px 0 40px; }
  .bp-hero-img { aspect-ratio: 16 / 9; }
  .bp-layout { padding: 40px 0 72px; }
  .bp-related__grid { grid-template-columns: 1fr; }
  .bp-related { padding: 56px 0 72px; }
}
