/* ═══════════════════════════════════════════════════════════
   DNK Labs — Blog Layout Styles
   ═══════════════════════════════════════════════════════════ */

/* ── BLOG HEADER ── */
.blog-header {
  padding: 10rem 3rem 5rem;
  border-bottom: 0.5px solid var(--border);
  background: linear-gradient(180deg, #0D0D0D 0%, var(--black) 100%);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tag-bg);
  border: 0.5px solid var(--tag-border);
  padding: 0.28rem 0.75rem;
}

.blog-date,
.blog-read-time {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

h1.blog-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 800px;
  margin-bottom: 2rem;
}

h1.blog-title em { font-style: normal; color: var(--accent); }

.blog-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
}

.blog-hero-image {
  width: 100%;
  max-width: 900px;
  margin: 4rem 0 0;
  border: 0.5px solid var(--border);
  display: block;
}

/* ── ARTICLE BODY ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.article-body { min-width: 0; }

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 3.5rem 0 1.25rem;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin: 2.5rem 0 0.75rem;
}

.article-body p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.article-body strong { color: var(--cream); font-weight: 500; }

.article-body ul,
.article-body ol { margin: 1.25rem 0 1.5rem 1.5rem; }

.article-body li {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.85;
  margin-bottom: 0.6rem;
}

.article-body li strong { color: var(--cream); font-weight: 500; }

/* ── CALLOUT ── */
.callout {
  border-left: 2px solid var(--accent);
  background: var(--tag-bg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 2px 2px 0;
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream) !important;
  opacity: 1;
}

.callout-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── INLINE CTA ── */
.inline-cta {
  display: block;
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border: 0.5px solid var(--border);
  background: #0D0D0D;
  text-decoration: none;
  transition: border-color var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out);
}

.inline-cta:hover {
  border-color: var(--accent);
  background: rgba(200, 255, 0, 0.02);
}

.inline-cta-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.inline-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.inline-cta-sub {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
}

.inline-cta-arrow {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── SIDEBAR ── */
.article-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.toc {
  border: 0.5px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.toc-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.toc ul { list-style: none; }
.toc li { margin-bottom: 0.75rem; }

.toc a {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease, font-weight 0.25s ease;
}

.toc a:hover { color: var(--accent); }

.toc a.active {
  color: var(--accent);
  font-weight: 500;
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent);
  transition: color var(--dur-normal) var(--ease-out), padding-left var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
}

.sidebar-cta {
  background: var(--accent);
  padding: 2rem 1.75rem;
  text-align: center;
}

.sidebar-cta-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
}

.sidebar-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--black);
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.sidebar-cta-btn:hover { opacity: 0.85; }

/* ── RELATED POSTS ── */
.related-posts {
  border-top: 0.5px solid var(--border);
  padding: 5rem 3rem;
}

.related-label {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.related-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 0.5px;
  background: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 0.5px solid var(--border);
}

.related-card {
  padding: 2.5rem;
  text-decoration: none;
  border-right: 0.5px solid var(--border);
  transition: background var(--dur-normal) var(--ease-out);
}

.related-card:last-child { border-right: none; }
.related-card:hover { background: rgba(200, 255, 0, 0.02); }

.related-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.related-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.related-excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.related-arrow {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

/* ── BLOG INLINE LINKS ── */
.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0.5px solid var(--accent);
  transition: opacity var(--dur-normal) var(--ease-out);
}

.article-body a:hover { opacity: 0.75; }

/* ── BLOG RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-header { padding: 8rem 1.5rem 3.5rem; }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }

  .article-sidebar { position: static; }

  .related-grid { grid-template-columns: 1fr; }

  .related-card {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .related-card:last-child { border-bottom: none; }
  .related-posts { padding: 4rem 1.5rem; }
}
