/* ============================================================================
   POST HEADER - Blog V2
   Title, meta, breadcrumb, featured image
   Extracted from blog-v2.css
   ============================================================================ */

.post-header {
  margin-bottom: var(--sp-5, 32px);
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--sp-3, 16px);
  color: var(--c-text);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2, 12px);
}

.post-meta .separator {
  margin: 0 4px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1, 8px);
}

.post-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.post-tags .tag:hover {
  background: var(--c-accent-light, rgba(59, 130, 246, 0.1));
  color: var(--c-accent);
}

.post-featured-image {
  margin: 0 0 var(--sp-5, 32px);
  border-radius: var(--radius-cartoon, 12px);
  overflow: hidden;
  display: flex;
  width: 100%;
}

.post-featured-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Positioning Modifiers */
.post-featured-image--left,
.post-featured-image--top-left,
.post-featured-image--bottom-left {
  justify-content: flex-start;
}

/* "Top" maps to flex-start (Left) to match standard flow expectations */
.post-featured-image--top {
  justify-content: flex-start;
}

.post-featured-image--center,
.post-featured-image--bottom {
  justify-content: center;
}

.post-featured-image--right,
.post-featured-image--top-right,
.post-featured-image--bottom-right {
  justify-content: flex-end;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--sp-4, 24px);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 12px);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--c-text-dim);
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-cartoon, 18px);
  background: var(--c-bg-alt);
  border: 2px solid var(--c-border);
  color: var(--c-text-dim);
  text-decoration: none;
  transition: all var(--motion-med) var(--motion-curve);
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(4, 43, 51, 0.2);
}

.breadcrumb a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateX(-3px);
  box-shadow: 0 3px 0 var(--c-border);
}

.breadcrumb a:active {
  transform: translateX(-1px);
  box-shadow: 0 2px 0 var(--c-border);
}

.breadcrumb li[aria-current="page"] span {
  color: var(--c-text);
  font-weight: 600;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb a {
    transition: none;
  }
  .breadcrumb a:hover,
  .breadcrumb a:active {
    transform: none;
  }
}

@media (max-width: 640px) {
  .breadcrumb li[aria-current="page"] span {
    max-width: 200px;
  }
}
