/* ══════════════════════════════════════════════════════════════
   BLOG-POST.PHP — individual article page
   Namespace: .bp-
   Reuses .lg-hero / .lg-content typography from legal.css and
   .bl-tag / .bl-av from blog.css for category tag + author avatar.
══════════════════════════════════════════════════════════════ */

.bp-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.bp-byline-name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.bp-byline-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.bp-byline-views {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.bp-byline-views svg { width: 15px; height: 15px; flex-shrink: 0; }

.bp-cover-wrap {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.bp-cover-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: block;
}

/* Article body reuses .lg-content typography as-is, just remove the
   sidebar-TOC max-width constraint since this page is single-column. */
.bp-article-content { max-width: 760px; margin: 0 auto; }
.bp-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 8px 0 20px;
  display: block;
}
.bp-article-content img.img-sm   { width: 25%; }
.bp-article-content img.img-md   { width: 50%; }
.bp-article-content img.img-lg   { width: 75%; }
.bp-article-content img.img-full { width: 100%; }

.bp-tags {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-tag-chip {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

.bp-faq {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bp-faq-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A78BFA;
  margin: 0 0 16px;
}
.bp-faq-list { display: grid; gap: 12px; }
.bp-faq-item {
  background: #0E0C1C;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.bp-faq-item.open { border-color: rgba(124,58,237,0.35); }
.bp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.bp-faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(124,58,237,0.14);
  color: #A78BFA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  transition: transform .25s, background .25s, color .25s;
}
.bp-faq-item.open .bp-faq-icon { transform: rotate(45deg); background: #7C3AED; color: #fff; }
.bp-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.bp-faq-a-inner { padding: 0 20px 18px; }
.bp-faq-a p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.58);
  margin: 0;
}
.bp-faq-item.open .bp-faq-a { max-height: 500px; }

.bp-related {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bp-related-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A78BFA;
  margin: 0 0 16px;
}
.bp-related-list { display: flex; flex-direction: column; gap: 10px; }
.bp-related-item {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 12px 16px;
  background: #0E0C1C;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, color .2s;
}
.bp-related-item:hover { border-color: rgba(124,58,237,0.35); color: #fff; }

/* ── Author card ── */
.bp-author-card {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 28px;
  background: #0E0C1C;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.bp-author-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bp-author-card-top .bl-av { width: 56px; height: 56px; font-size: 18px; }
.bp-author-card-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A78BFA;
  margin: 0 0 2px;
}
.bp-author-card-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.bp-author-card-bio {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  margin: 0 0 20px;
}
.bp-author-card-stats {
  display: flex;
  gap: 32px;
  padding-top: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
}
.bp-author-card-stats div { display: flex; flex-direction: column; }
.bp-author-card-stats strong {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.bp-author-card-stats span {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.bp-author-card-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-author-cat-chip {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 13px;
}

@media (max-width: 640px) {
  .bp-cover-wrap { padding: 0 20px; }
}

/* ── Preview bar ── */
#bp-preview-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: #f59e0b;
  color: #1c1917;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Dark post theme ── */
body.bp-theme-dark #lg-body {
  background: #0a0818;
}
body.bp-theme-dark .lg-content { color: rgba(255,255,255,0.82); }
body.bp-theme-dark .lg-content h2,
body.bp-theme-dark .lg-content h3,
body.bp-theme-dark .lg-content h4 { color: #fff; }

/* ── Social share ── */
.bp-share {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bp-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A78BFA;
  margin: 0 0 14px;
}
.bp-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  line-height: 1;
}
.bp-share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.bp-share-btn:hover { opacity: .82; transform: translateY(-1px); }
.bp-share-btn--li { background: #0A66C2; color: #fff; }
.bp-share-btn--tw { background: #000; color: #fff; }
.bp-share-btn--fb { background: #1877F2; color: #fff; }
.bp-share-btn--wa { background: #25D366; color: #fff; }
.bp-share-btn--em { background: #0E0C1C; color: rgba(255,255,255,.8); border-color: var(--border); }
.bp-share-btn--cp { background: #0E0C1C; color: rgba(255,255,255,.8); border-color: var(--border); }

@media (max-width: 480px) {
  .bp-share-btn { font-size: 11.5px; padding: 6px 10px; }
}

.bp-share-btn--ig {
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff;
  border: none;
}
body:has(#bp-preview-bar) #sp { top: 37px; }
body:has(#bp-preview-bar) #topbar { margin-top: 37px; }
