/* blog-post.css — shared styles for all individual blog post pages */

.post-hero {
  padding: 9rem 5% 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.post-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  width: 600px; height: 600px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  opacity: .6;
}

.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.post-breadcrumb a:hover { color: var(--blue-glow); }
.post-breadcrumb span { color: var(--border); }

.post-tag-pill {
  display: inline-block;
  background: #1e3a6e44;
  border: 1px solid var(--border-glow);
  color: var(--blue-glow);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.post-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.post-author-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

.post-author-name {
  font-size: .88rem;
  font-weight: 600;
}

.post-author-role {
  font-size: .75rem;
  color: var(--text-muted);
}

.post-meta-item {
  color: var(--text-muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.post-share {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.share-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .35rem .8rem;
  border-radius: 7px;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: 'DM Sans', sans-serif;
}
.share-btn:hover { border-color: var(--blue-primary); color: var(--blue-glow); }

/* Article body */
.post-body {
  background: var(--bg-primary);
}

.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.post-content { min-width: 0; }

.post-featured-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

.post-featured-img-inner {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.2rem 0 .9rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8rem 0 .7rem;
  color: var(--text-primary);
}

.post-content p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.post-content ul, .post-content ol {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-content li { margin-bottom: .5rem; }

.post-content a {
  color: var(--blue-glow);
  text-decoration: none;
  border-bottom: 1px solid #60a5fa44;
  transition: border-color .2s;
}
.post-content a:hover { border-color: var(--blue-glow); }

.post-callout {
  background: #1e3a6e22;
  border: 1px solid var(--border-glow);
  border-left: 3px solid var(--blue-primary);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.7;
}

.post-callout strong { color: var(--blue-glow); }

.post-tip {
  background: #05966915;
  border: 1px solid #05966933;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.post-tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.post-tip p { color: #6ee7b7; font-size: .9rem; line-height: 1.7; margin: 0; }

.post-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.post-steps li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-steps li:last-child { border-bottom: none; }

.post-steps li::before {
  content: counter(steps);
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: .82rem; font-weight: 700;
  flex-shrink: 0; color: #fff;
}

/* Sidebar */
.post-sidebar { position: sticky; top: 90px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.sidebar-card h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  padding: .3rem .5rem;
  border-radius: 6px;
  display: block;
  transition: background .2s, color .2s;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  background: #ffffff07;
  color: var(--text-primary);
  border-left-color: var(--blue-primary);
}

.related-post {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .2s;
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:hover { opacity: .8; }

.related-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.related-post strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .2rem;
}

.related-post span {
  font-size: .74rem;
  color: var(--text-muted);
}

/* CTA box */
.post-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.post-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 5%;
  text-align: center;
}

.post-cta h2 { font-size: 1.6rem; margin-bottom: .7rem; }
.post-cta p { color: var(--text-secondary); font-size: .92rem; margin-bottom: 1.8rem; }
.post-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Tags footer */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .78rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.post-tag:hover { border-color: var(--blue-primary); color: var(--blue-glow); }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
