/* ============================================================
   DriveSelect — Blog Post Page Styles
   css/post.css
   ============================================================ */

/* ── Layout ───────────────────────────────────────────────── */
.post-article {
  padding-top: var(--space-2);
  padding-bottom: var(--space-16);
}

/* ── Breadcrumb (shared style, in car.css too) ────────────── */
.breadcrumb {
  padding: var(--space-5) 0 var(--space-6);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb a {
  font-size: var(--text-sm);
  color: var(--ink-500);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb i {
  font-size: 12px;
  color: var(--ink-300);
}

.breadcrumb li:last-child {
  font-size: var(--text-sm);
  color: var(--ink-900);
  font-weight: 500;
}

/* ── Post header ──────────────────────────────────────────── */
.post-header {
  margin-bottom: var(--space-8);
}

.post-category-badge {
  margin-bottom: var(--space-4);
}

.post-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--text-xl), 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1.08;
  margin-bottom: var(--space-4);
}

.post-subtitle {
  font-size: var(--text-md);
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  font-style: italic;
}

/* Byline */
.post-byline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-light);
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-dark);
  flex-shrink: 0;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.post-meta {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-300);
}

/* ── Hero image ───────────────────────────────────────────── */
.post-hero-img {
  margin-bottom: var(--space-8);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 7;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article body typography ──────────────────────────────── */
.post-body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink-700);
  margin-bottom: var(--space-8);
}

.post-body p {
  margin-bottom: var(--space-5);
}

.post-body h2 {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-light);
}

.post-body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* Figures */
.post-figure {
  margin: var(--space-8) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.post-figure img {
  width: 100%;
  display: block;
}

.post-figure figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--ink-300);
  font-style: italic;
}

/* Lists */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
}

.post-list li {
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  color: var(--ink-700);
  line-height: 1.7;
}

.post-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* Blockquote */
.post-quote {
  border-left: 3px solid var(--brand);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--brand-faint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.post-quote p {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.post-quote cite {
  font-size: var(--text-sm);
  color: var(--ink-300);
  font-style: normal;
}

/* ── Tags ─────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.post-tag {
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink-500);
  border: var(--border-light);
}

/* ── Share bar ────────────────────────────────────────────── */
.post-share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-5) 0;
  border-top: var(--border-light);
  border-bottom: var(--border-light);
  margin-bottom: var(--space-5);
}

.share-label {
  font-size: var(--text-xs);
  color: var(--ink-300);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: var(--border-mid);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.share-btn:hover {
  background: var(--surface-2);
}

/* URL display */
.url-display {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--ink-500);
}

.url-display code {
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--ink-700);
  word-break: break-all;
}

/* ── Related posts section ────────────────────────────────── */
.related-posts-section {
  padding-block: var(--space-12);
}

.related-posts-section .section-title {
  margin-bottom: var(--space-6);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* ── Not found ────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: var(--space-20);
  color: var(--ink-300);
}

.not-found i {
  font-size: 48px;
  display: block;
  margin-bottom: var(--space-4);
}

.not-found h2 {
  font-size: var(--text-lg);
  color: var(--ink-700);
  margin-bottom: var(--space-3);
}

.not-found p {
  color: var(--ink-500);
  margin-bottom: var(--space-6);
}

/* Loading */
.loading-full {
  text-align: center;
  padding: var(--space-16);
  color: var(--ink-300);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}