/* ═══════════════════════════════════════════
   BLOG POST PAGE STYLES — Datoo IPTV
   ═══════════════════════════════════════════ */

/* ── Hero image ──────────────────────────────── */
.post-hero-img-wrap {
  width: 100%; height: 420px; position: relative; overflow: hidden;
  background: hsl(222 30% 8%);
  margin-top: 72px; /* below fixed header */
}
.post-hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, hsl(222 47% 4%) 100%);
}

/* ── Breadcrumb ──────────────────────────────── */
.post-breadcrumb {
  padding: 1.25rem 0 0;
  margin-top: 72px; /* if no hero img */
  border-bottom: 1px solid var(--border);
}
.post-hero-img-wrap + .post-breadcrumb { margin-top: 0; }

.breadcrumb-list {
  display: flex; align-items: center; gap: 0.5rem;
  list-style: none; font-size: 0.8125rem; color: var(--muted-foreground);
  flex-wrap: wrap; padding: 0.75rem 0;
}
.breadcrumb-list a { color: var(--muted-foreground); transition: color 0.2s; }
.breadcrumb-list a:hover { color: hsl(196 100% 50%); }
.breadcrumb-list [aria-current] { color: var(--foreground); font-weight: 500; }

/* ── Layout ──────────────────────────────────── */
.post-layout { padding: 3rem 0 5rem; }
.post-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── Article ─────────────────────────────────── */
.post-article { min-width: 0; }

.post-header { margin-bottom: 2.5rem; }
.post-cat-badge {
  display: inline-flex; align-items: center;
  padding: 0.2em 0.75em; border-radius: 99px;
  font-size: 0.8125rem; font-weight: 600;
  color: hsl(196 100% 50%);
  background: hsl(196 100% 50% / 0.1);
  border: 1px solid hsl(196 100% 50% / 0.2);
  margin-bottom: 1rem;
}
.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 1rem;
}
.post-meta {
  display: flex; align-items: center; gap: 1rem;
  color: var(--muted-foreground); font-size: 0.875rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.post-tags-display {
  display: flex; gap: 0.375rem; flex-wrap: wrap;
}
.tag-chip {
  padding: 0.15em 0.6em; background: hsl(222 30% 12%);
  border: 1px solid var(--border); border-radius: 99px;
  font-size: 0.75rem; color: var(--muted-foreground);
}
.post-excerpt-display {
  font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7;
  border-left: 3px solid hsl(196 100% 50% / 0.6);
  padding-left: 1.25rem;
  font-style: italic;
}

/* ── Post content typography ─────────────────── */
.post-content-display {
  font-size: 1.0625rem; line-height: 1.8; color: hsl(210 30% 88%);
}
.post-content-display h2 {
  font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem;
  color: var(--foreground);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.post-content-display h3 {
  font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.75rem;
  color: var(--foreground);
}
.post-content-display p  { margin-bottom: 1.25rem; }
.post-content-display ul, .post-content-display ol {
  padding-left: 1.75em; margin-bottom: 1.25rem;
}
.post-content-display li { margin-bottom: 0.5rem; }
.post-content-display a  { color: hsl(196 100% 60%); text-decoration: underline; }
.post-content-display a:hover { color: hsl(196 100% 75%); }
.post-content-display strong { color: var(--foreground); font-weight: 700; }
.post-content-display em { font-style: italic; color: hsl(210 20% 80%); }
.post-content-display blockquote {
  border-left: 3px solid hsl(196 100% 50%);
  padding: 0.75em 1.25em; color: var(--muted-foreground);
  background: hsl(196 100% 50% / 0.06); border-radius: 0 0.625rem 0.625rem 0;
  margin: 1.5rem 0; font-style: italic;
}
.post-content-display code {
  background: hsl(222 30% 12%); padding: 0.15em 0.4em; border-radius: 4px;
  font-size: 0.875em; color: hsl(196 100% 70%);
}
.post-content-display pre {
  background: hsl(222 30% 10%); border: 1px solid var(--border);
  border-radius: 0.625rem; padding: 1.25rem; overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content-display pre code { background: none; padding: 0; }
.post-content-display img {
  max-width: 100%; border-radius: 0.625rem; margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* ── Post footer / Share ─────────────────────── */
.post-footer {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.share-section { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-label { font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); }
.share-btns { display: flex; gap: 0.5rem; }
.share-btn {
  width: 36px; height: 36px;
  background: hsl(222 30% 10%); border: 1px solid var(--border);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); transition: all 0.2s; cursor: pointer;
}
.share-btn:hover { color: var(--foreground); border-color: hsl(196 100% 50% / 0.5); background: hsl(196 100% 50% / 0.1); }

/* ── Sidebar ─────────────────────────────────── */
.post-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 96px; }

.back-btn {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--muted-foreground); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.back-btn:hover { color: hsl(196 100% 50%); }

.sidebar-card {
  background: hsl(222 35% 8%);
  border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem;
}
.sidebar-title {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-foreground);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-list { display: flex; flex-direction: column; gap: 0.875rem; }
.related-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  text-decoration: none; color: inherit;
  transition: transform 0.2s;
}
.related-item:hover { transform: translateX(3px); }
.related-thumb {
  width: 56px; height: 56px; border-radius: 0.5rem;
  object-fit: cover; flex-shrink: 0;
  background: hsl(222 30% 12%);
}
.related-thumb-placeholder { background: hsl(222 30% 12%); width: 56px; height: 56px; border-radius: 0.5rem; flex-shrink: 0; }
.related-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--foreground); }
.related-item:hover .related-title { color: hsl(196 100% 60%); }
.related-date  { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.2rem; }

.sidebar-cta {
  background: hsl(196 100% 50% / 0.06);
  border: 1px solid hsl(196 100% 50% / 0.2);
  border-radius: 1rem; padding: 1.5rem;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 0.625rem;
}
.sidebar-cta svg { color: hsl(196 100% 50%); }
.sidebar-cta h4 { font-size: 1rem; font-weight: 700; }
.sidebar-cta p  { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; }
.sidebar-cta .btn-neon { width: 100%; }

/* ── Not found ───────────────────────────────── */
.post-not-found { margin-top: 72px; min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .post-container { grid-template-columns: 1fr; }
  .post-sidebar { position: static; order: -1; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 260px; }
  .sidebar-cta  { flex: 1; min-width: 240px; }
  .post-hero-img-wrap { height: 280px; }
}
@media (max-width: 640px) {
  .post-hero-img-wrap { height: 200px; }
  .post-layout { padding: 1.5rem 0 3rem; }
  .post-sidebar { flex-direction: column; }
}
