/* ─── Post Hero ──────────────────────────────────────────── */
.post-hero {
  padding: 56px 0 24px;
}

.post-hero .container {
  width: min(960px, calc(100% - 32px));
}

.post-category-pill {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(77,163,255,0.12);
  color: #b9cbff;
  border: 1px solid rgba(77,163,255,0.2);
  margin-bottom: 14px;
}

.post-page-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.post-meta {
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Featured Image ─────────────────────────────────────── */
.post-featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 28px 0;
  display: block;
}

/* ─── Article Card ───────────────────────────────────────── */
.article-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.article-excerpt {
  color: #cfd8f4;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── Post Content (rendered HTML) ──────────────────────── */
.article-content {
  color: #e8eeff;
  line-height: 1.9;
  font-size: 1.04rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 24px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  color: #9dd6ff;
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--cyan);
}

.article-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  background: rgba(77,163,255,0.06);
  border-radius: 0 12px 12px 0;
  color: #cfd8f4;
  font-style: italic;
}

.article-content pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 18px;
}

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.93em;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 6px;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 16px 0;
}

/* ─── Related Posts ──────────────────────────────────────── */
.related-posts {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.related-posts h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.related-posts ul {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
  color: var(--muted);
}

.related-posts a {
  color: #9dd6ff;
}

.related-posts a:hover {
  color: var(--cyan);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .post-hero {
    padding: 40px 0 16px;
  }

  .article-card {
    padding: 22px;
    border-radius: 20px;
  }
}