/*
 * Single blog post — visual parity with virket.com (dark post header,
 * elevated featured image, prose column). Reuses the --vkt-* tokens from
 * header-footer.css and the --vkt-section-bg/card tokens from blog-home.css
 * (also enqueued on singular posts so the "related articles" grid below
 * reuses .vkt-blog-section / .vkt-blog-card as-is).
 */

.vkt-post,
.vkt-post * {
  box-sizing: border-box;
  font-family: var(--vkt-font);
}

/* ---------- Post header ---------- */

.vkt-post-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--vkt-hero);
  color: var(--vkt-hero-foreground);
  margin-top: calc(-1 * var(--vkt-header-h));
  padding: calc(48px + var(--vkt-header-h)) 20px 48px;
}
@media (min-width: 640px) {
  .vkt-post-hero { padding: calc(64px + var(--vkt-header-h)) 24px 56px; }
}
@media (min-width: 1024px) {
  .vkt-post-hero { padding: calc(96px + var(--vkt-header-h)) 56px 76px; }
}

.vkt-post-hero--media { padding-bottom: 140px; }
@media (min-width: 640px) {
  .vkt-post-hero--media { padding-bottom: 168px; }
}
@media (min-width: 1024px) {
  .vkt-post-hero--media { padding-bottom: 196px; }
}

.vkt-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in oklab, var(--vkt-brand-violet) 26%, transparent), transparent 45%),
    radial-gradient(circle at 6% 90%, color-mix(in oklab, var(--vkt-brand-blue) 22%, transparent), transparent 50%);
  pointer-events: none;
}

.vkt-post-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.vkt-post-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--vkt-brand-blue);
  text-decoration: none;
}
.vkt-post-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--vkt-brand-blue);
  display: inline-block;
}

.vkt-post-hero__title {
  margin: 16px 0 0;
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}
@media (min-width: 640px) {
  .vkt-post-hero__title { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .vkt-post-hero__title { font-size: 3.1rem; }
}

.vkt-post-hero__meta {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in oklab, var(--vkt-hero-foreground) 68%, transparent);
}
.vkt-post-hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.7;
}

/* ---------- Featured image (elevated, overlapping card) ---------- */

.vkt-post-media {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: -108px auto 0;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .vkt-post-media { margin-top: -130px; padding: 0 24px; }
}
@media (min-width: 1024px) {
  .vkt-post-media { margin-top: -152px; padding: 0 56px; }
}

.vkt-post-media__frame {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--vkt-card-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.vkt-post-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Content section ---------- */

.vkt-post-section {
  background-color: var(--vkt-section-bg);
  padding: 56px 20px 96px;
}
@media (min-width: 1024px) {
  .vkt-post-section { padding: 72px 56px 120px; }
}

.vkt-post-layout {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .vkt-post-layout { grid-template-columns: 64px minmax(0, 1fr); gap: 48px; align-items: start; }
}

.vkt-post-share {
  order: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
@media (min-width: 1024px) {
  .vkt-post-share {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: calc(var(--vkt-header-h) + 24px);
  }
}

.vkt-post-share__label {
  display: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vkt-muted);
}
@media (min-width: 1024px) {
  .vkt-post-share__label { display: block; margin-bottom: 4px; }
}

.vkt-post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--vkt-card-border);
  background-color: var(--vkt-card-bg);
  color: var(--vkt-muted);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.vkt-post-share__btn:hover {
  background-color: var(--vkt-brand-blue);
  border-color: var(--vkt-brand-blue);
  color: #ffffff;
}
.vkt-post-share__btn svg { width: 18px; height: 18px; }

.vkt-post-content {
  order: 1;
  min-width: 0;
  color: var(--vkt-muted);
  font-size: 16px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .vkt-post-content { order: 2; }
}

.vkt-post-content h2,
.vkt-post-content h3 {
  margin: 40px 0 16px;
  color: var(--vkt-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.vkt-post-content h2 { font-size: 1.5rem; }
.vkt-post-content h3 { font-size: 1.2rem; }

.vkt-post-content p { margin: 0 0 20px; }

.vkt-post-content a {
  color: var(--vkt-brand-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vkt-post-content a:hover { color: color-mix(in oklab, var(--vkt-brand-blue) 80%, transparent); }

.vkt-post-content strong,
.vkt-post-content b { color: var(--vkt-text); font-weight: 700; }

.vkt-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px 0;
  display: block;
}

.vkt-post-content ul,
.vkt-post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.vkt-post-content li { margin-bottom: 10px; }
.vkt-post-content ul li::marker { color: var(--vkt-brand-blue); }

.vkt-post-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--vkt-brand-blue);
  color: var(--vkt-text);
  font-style: italic;
}
