/* ============================================================
   DeepYogaWay — 07_article.css
   Bruges i Simple Custom CSS & JS PRO → Single articles (Posts)
   Load order: 7 af 10
   ============================================================ */

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--clay);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Article header ── */
.article-header {
  padding-top: calc(var(--space-24) + 80px);
  padding-bottom: var(--space-10);
  background: var(--ivory);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--brown);
  margin-bottom: var(--space-6);
  opacity: 0.7;
}

.article-breadcrumb a {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.article-breadcrumb a:hover { color: var(--clay); opacity: 1; }

.article-header__inner {
  max-width: 760px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--olive);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--brown);
  opacity: 0.7;
}

.article-meta__sep { opacity: 0.4; }

/* ── Hero image ── */
.article-hero-image {
  width: 100%;
  overflow: hidden;
  background: var(--sand);
  max-height: 500px;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ── Article body wrapper ── */
.article-body {
  padding-block: var(--space-16) var(--space-12);
  background: var(--ivory);
}

/* ── Two-column layout: content + sidebar ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-14);
  align-items: start;
  max-width: 1060px;   /* kontrolleret bredde */
}

/* ── Article content ── */
.article-content {
  min-width: 0;        /* forhindrer overflow i grid */
  max-width: 720px;
}

.article-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--olive);
  margin-bottom: var(--space-8);
}

.article-content p {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.2;
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
  padding-top: var(--space-8);
  border-top: 1px solid var(--sand);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--olive);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-content em { color: var(--clay); font-style: italic; }
.article-content strong { font-weight: 500; color: var(--olive); }

.article-content ul,
.article-content ol {
  margin: var(--space-6) 0;
  padding-left: var(--space-7);
}

.article-content li {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.article-content a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.article-content a:hover { opacity: 0.7; }

/* Blockquote */
.article-content .blockquote,
.blockquote {
  border-left: 2px solid var(--clay);
  padding-left: var(--space-8);
  margin-block: var(--space-10);
}

.blockquote__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--olive);
}

.blockquote__cite {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--brown);
  letter-spacing: 0.05em;
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--sand);
}

.article-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--sand);
  padding: var(--space-2) var(--space-4);
}

/* ── Sidebar ── */
.article-sidebar {
  position: sticky;
  top: calc(64px + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.sidebar-block {
  padding: var(--space-7) var(--space-7);
  background: var(--white);
}

.sidebar-block + .sidebar-block { margin-top: 1px; }

.sidebar-cta { background: var(--olive); }

.sidebar-divider {
  height: var(--space-3);
  background: var(--ivory);
}

.sidebar-author {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.sidebar-author__image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand);
}

.sidebar-author__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.2;
}

.sidebar-author__role {
  font-size: var(--text-xs);
  color: var(--brown);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.sidebar-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  transition: letter-spacing var(--transition);
}

.sidebar-link:hover { letter-spacing: 0.16em; }

.sidebar-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--sand);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink);
  outline: none;
  margin-top: var(--space-4);
  transition: border-color var(--transition);
}

.sidebar-input:focus { border-color: var(--brown); }
.sidebar-input::placeholder { color: var(--brown); opacity: 0.5; }

/* ── Related articles — UNDER artiklen, ikke ved siden af ── */
.related-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */

/* Laptop (1025–1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: var(--space-10);
  }
}

/* Tablet — sidebar under content */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .article-header {
    padding-top: calc(var(--space-20) + 80px);
  }
}

/* Mobil */
@media (max-width: 768px) {

  .article-header {
    padding-top: calc(64px + 2rem);
    padding-bottom: var(--space-7);
  }

  .article-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .article-meta {
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-xs);
  }

  .article-hero-image {
    max-height: 280px;
  }

  .article-hero-image img {
    max-height: 280px;
    object-position: center center;
  }

  .article-body {
    padding-block: var(--space-10) var(--space-8);
  }

  .article-content p {
    font-size: var(--text-base);
    line-height: 1.75;
  }

  .article-lead {
    font-size: 1.15rem;
  }

  .article-content h2 {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Related cards på mobil */
  .related-section .card {
    box-shadow: none !important;
    border: 1px solid var(--sand);
  }
}
