/* ===== BLOG POST PAGE STYLES ===== */

/* Breadcrumb */
.post-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}
.post-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span { margin: 0 8px; }

/* Post Hero */
.post-hero {
  padding: 100px 40px 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  color: #fff;
}
.post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.post-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.post-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 20px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.post-hero-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-hero-meta .author-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Layout */
.post-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* Prose content */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}
.post-content p { margin-bottom: 22px; }
.post-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 44px 0 16px;
  color: var(--text-main);
}
.post-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-main);
}
.post-content ul, .post-content ol {
  margin: 0 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content li { line-height: 1.7; }
.post-content strong { color: var(--text-main); font-weight: 700; }
.post-content a { color: var(--primary); text-decoration: none; font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-content hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 40px 0;
}

/* Code blocks */
.post-content code {
  background: rgba(0,87,255,.07);
  border: 1px solid rgba(0,87,255,.15);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: #0057ff;
}
.post-content pre {
  background: #0f172a;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 28px 0;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.7;
}
.post-content pre .kw  { color: #93c5fd; }
.post-content pre .str { color: #86efac; }
.post-content pre .cm  { color: #64748b; }
.post-content pre .fn  { color: #f9a8d4; }
.post-content pre .num { color: #fca5a5; }

/* Callout box */
.callout {
  background: rgba(0,87,255,.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
}
.callout strong { color: var(--primary); }
.callout-orange {
  background: rgba(255,107,0,.06);
  border-left-color: var(--accent);
}
.callout-orange strong { color: var(--accent); }
.callout-green {
  background: rgba(22,163,74,.06);
  border-left-color: #16a34a;
}
.callout-green strong { color: #16a34a; }

/* CTA inside post */
.post-cta {
  background: linear-gradient(135deg, rgba(0,87,255,.06), rgba(118,75,162,.06));
  border: 1.5px solid rgba(0,87,255,.2);
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0 8px;
  text-align: center;
}
.post-cta h3 { font-size: 20px; margin-bottom: 8px; }
.post-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

/* Author box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px;
  margin-top: 56px;
  border: 1.5px solid var(--border);
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box .author-av-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),#764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-box .ab-info h4 { font-size: 16px; margin-bottom: 4px; }
.author-box .ab-info .ab-role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.author-box .ab-info p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.post-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,87,255,.08);
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
}

/* Related posts */
.related-section {
  background: var(--bg-soft);
  padding: 64px 40px;
}
.related-section h2 {
  max-width: 1100px;
  margin: 0 auto 32px;
  font-size: 22px;
  font-weight: 800;
}
.related-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.related-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.related-card .rc-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.related-card .rc-body { padding: 16px 20px 20px; }
.related-card .rc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 6px; }
.related-card h3 { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.related-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Table of contents */
.toc {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 36px;
}
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { margin: 0 0 0 16px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--primary); font-size: 14px; font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Share row */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}
.share-row span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  transition: border-color .15s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
  .post-hero { padding: 90px 20px 48px; }
  .post-layout { padding: 32px 20px 60px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 20px; }
  .author-box { flex-direction: column; }
  .related-section { padding: 48px 20px; }
}
