/*
 * Ilora Journal Theme — article.css
 * Loaded on single post pages only (single.php).
 * Depends on style.css for :root variables, reset, nav, and footer.
 * Contains: reading progress, article hero, meta bar, article layout,
 *           article content, sidebar, related posts, mobile CTA.
 */




/* ─── READING PROGRESS ─── */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); width: 0%; z-index: 200; transition: width 0.1s linear; }

/* ─── ARTICLE HERO ─── */
.article-hero { position: relative; height: 76vh; min-height: 540px; overflow: hidden; margin-top: 0; }
.article-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.72) brightness(0.6); }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,42,40,0.95) 0%, rgba(43,42,40,0.4) 40%, rgba(43,42,40,0.1) 100%); }
.article-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 120px 72px; max-width: 860px; }
.article-breadcrumb { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7.5px; letter-spacing: 0.38em; color: rgba(216,203,185,0.55); text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.article-breadcrumb a { color: rgba(216,203,185,0.55); text-decoration: none; transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--sand); }
.article-cat-badge { display: inline-block; font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7px; letter-spacing: 0.44em; color: var(--charcoal); text-transform: uppercase; background: var(--gold); padding: 5px 14px; margin-bottom: 20px; }
.article-hero-title { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 58px; line-height: 1.05; color: var(--ivory); letter-spacing: 0.03em; }
.article-hero-title em { font-style: italic; color: var(--sand); }

/* ─── META BAR ─── */
.article-meta-bar { background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 18px 80px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 6.5px; letter-spacing: 0.44em; color: var(--taupe); text-transform: uppercase; }
.meta-val { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 12.5px; color: var(--charcoal); }
.meta-sep { width: 1px; height: 24px; background: var(--rule); flex-shrink: 0; }

/* ─── LAYOUT ─── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; background: transparent; max-width: 1160px; margin: 0 auto; width: 100%; }

/* ─── CONTENT ─── */
.article-content { background: var(--white); padding: 64px 72px 80px 80px; border-right: 1px solid var(--rule); max-width: none; }
.article-lead { font-family: 'Raleway', sans-serif; font-weight: 300; font-style: italic; font-size: 17px; line-height: 2.2; color: var(--charcoal); margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--rule); }
.article-body h2 { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 28px; line-height: 1.25; color: var(--charcoal); letter-spacing: 0.04em; margin: 52px 0 20px; }
.article-body h3 { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 0.22em; color: var(--charcoal); text-transform: uppercase; margin: 36px 0 14px; }
.article-body p { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 15px; line-height: 2.2; color: var(--text); margin-bottom: 24px; }
.article-body ul { margin: 0 0 24px 0; padding: 0; list-style: none; }
.article-body ul li { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 15px; line-height: 2.2; color: var(--text); padding-left: 24px; position: relative; margin-bottom: 8px; }
.article-body ul li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-size: 20px; line-height: 1.7; }
/* Links inside article text — keep them in the brand palette, not default browser blue */
.article-body a, .article-lead a { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.article-body a:hover, .article-lead a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.article-body a:visited, .article-lead a:visited { color: var(--charcoal); }

/* Pull quote — full width bleed treatment */
.article-pullquote { background: var(--charcoal); margin: 52px -64px 52px -80px; padding: 52px 80px; position: relative; }
.article-pullquote::before { content: '"'; font-family: 'Raleway', sans-serif; font-size: 160px; color: rgba(201,179,126,0.12); position: absolute; top: -20px; left: 80px; line-height: 1; pointer-events: none; }
.article-pullquote p { font-family: 'Raleway', sans-serif; font-weight: 100; font-style: italic; font-size: 22px; line-height: 1.75; color: var(--sand); position: relative; max-width: 640px; margin: 0; }

/* In-article image */
.article-img { margin: 44px 0; }
.article-img img { width: 100%; display: block; object-fit: cover; filter: saturate(0.78) brightness(0.9); }
.article-img-caption { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7px; letter-spacing: 0.32em; color: var(--taupe); text-transform: uppercase; margin-top: 10px; }

/* Article footer */
.article-footer { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tag { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7.5px; letter-spacing: 0.28em; color: var(--smoke); text-transform: uppercase; border: 1px solid var(--rule); padding: 7px 16px; text-decoration: none; transition: all 0.2s; }
.article-tag:hover { border-color: var(--gold); color: var(--charcoal); }
.article-share { display: flex; align-items: center; gap: 14px; }
.article-share-label { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 7px; letter-spacing: 0.44em; color: var(--taupe); text-transform: uppercase; }
.article-share-link { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7px; letter-spacing: 0.3em; color: var(--smoke); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.article-share-link:hover { color: var(--charcoal); }


/* ─── SIDEBAR CATEGORIES ─── */
.sidebar-cats { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.sidebar-cats-title { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 0.28em; color: var(--charcoal); text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 20px; }
.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-cat-item { border-bottom: 1px solid var(--rule); }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 14px; color: var(--text); text-decoration: none; transition: color 0.2s; letter-spacing: 0.02em; }
.sidebar-cat-link:hover { color: var(--charcoal); }
.sidebar-cat-link.active { color: var(--charcoal); font-weight: 400; }
.sidebar-cat-count { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 11px; color: var(--taupe); }

/* ─── SIDEBAR AUTHOR ─── */
.sidebar-author { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); display: flex; gap: 18px; align-items: flex-start; }
.sidebar-author-img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--sand); }
.sidebar-author-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(0.65) brightness(0.88); }
.sidebar-author-text { min-width: 0; }
.sidebar-author-label { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 8px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.sidebar-author-name { font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 16px; color: var(--charcoal); letter-spacing: 0.03em; margin-bottom: 6px; }
.sidebar-author-bio { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 13px; color: var(--text); line-height: 1.7; }
.sidebar-author-link { display: inline-block; font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 8px; letter-spacing: 0.26em; color: var(--gold); text-decoration: none; text-transform: uppercase; margin-top: 12px; transition: opacity 0.2s; }
.sidebar-author-link:hover { opacity: 0.7; }

/* ─── SIDEBAR ─── */
.article-sidebar { background: var(--ivory); position: sticky; top: 63px; height: calc(100vh - 63px); overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-inner { padding: 44px 32px; flex: 1; }
.sidebar-section-title { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 0.28em; color: var(--charcoal); text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 28px; }

/* Sidebar related posts */
.sidebar-post { display: flex; gap: 14px; text-decoration: none; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.sidebar-post:last-of-type { border-bottom: none; }
.sidebar-post-img { width: 72px; height: 56px; overflow: hidden; flex-shrink: 0; }
.sidebar-post-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) brightness(0.88); transition: filter 0.3s; }
.sidebar-post:hover .sidebar-post-img img { filter: saturate(0.8) brightness(0.78); }
.sidebar-post-text {}
.sidebar-post-cat { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 8.5px; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.sidebar-post-title { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 14px; color: var(--charcoal); line-height: 1.55; transition: color 0.2s; }
.sidebar-post:hover .sidebar-post-title { color: var(--smoke); }

/* Sidebar CTA — slim strip */
.sidebar-cta { background: var(--charcoal); padding: 34px 30px; margin-top: 8px; }
.sidebar-cta-title { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 21px; line-height: 1.25; color: var(--ivory); letter-spacing: 0.02em; margin-bottom: 14px; }
.sidebar-cta-title em { font-style: italic; color: var(--sand); }
.sidebar-cta-p { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 12.5px; color: var(--taupe); line-height: 1.7; margin-bottom: 22px; }
.sidebar-cta-btn { display: block; text-align: center; font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 8.5px; letter-spacing: 0.36em; color: var(--charcoal); background: var(--ivory); text-decoration: none; text-transform: uppercase; padding: 14px 20px; transition: all 0.25s; }
.sidebar-cta-btn:hover { background: var(--sand); }

/* ─── MOBILE CTA (only visible on mobile, after article) ─── */
.mobile-cta { display: none; background: var(--charcoal); padding: 48px 28px; }
.mobile-cta-tag { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 7px; letter-spacing: 0.44em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.mobile-cta-title { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 28px; line-height: 1.2; color: var(--ivory); margin-bottom: 12px; }
.mobile-cta-title em { font-style: italic; color: var(--sand); }
.mobile-cta-p { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 13.5px; color: var(--taupe); line-height: 1.8; margin-bottom: 24px; }
.mobile-cta-btn { display: inline-block; font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 8px; letter-spacing: 0.4em; color: var(--charcoal); background: var(--ivory); text-decoration: none; text-transform: uppercase; padding: 14px 32px; }

/* ─── RELATED ─── */
.related { background: var(--ivory); padding: 72px 120px; border-top: 1px solid var(--rule); }
.related-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 44px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.related-title { font-family: 'Raleway', sans-serif; font-weight: 100; font-size: 34px; color: var(--charcoal); letter-spacing: 0.04em; }
.related-title em { font-style: italic; }
.related-back { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 8px; letter-spacing: 0.36em; color: var(--smoke); text-decoration: none; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s, gap 0.2s; }
.related-back::before { content: '←'; font-size: 12px; }
.related-back:hover { color: var(--charcoal); gap: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.related-card { text-decoration: none; display: flex; flex-direction: column; background: var(--white); }
.related-card-img { overflow: hidden; aspect-ratio: 16/9; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.75) brightness(0.9); transition: transform 0.8s, filter 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.05); filter: saturate(0.82) brightness(0.82); }
.related-card-
.related-card:hover .related-card-
.related-card-cat { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 7px; letter-spacing: 0.44em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.related-card-title { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 16px; color: var(--charcoal); line-height: 1.4; letter-spacing: 0.02em; }

/* ─── RESPONSIVE ─── */
/* ===== Fixes: links/elements the markup uses but the stylesheet never targeted (were defaulting to browser blue) ===== */
/* Meta-bar category link */
.meta-cat-link { color: var(--charcoal); text-decoration: none; transition: color 0.2s; }
.meta-cat-link:hover { color: var(--gold); }
/* "Related Stories" sidebar cards — markup uses .related-sidebar-card / .rsc-* */
.related-sidebar { display: flex; flex-direction: column; }
.related-sidebar-card { display: flex; gap: 14px; text-decoration: none; color: var(--charcoal); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.related-sidebar-card:last-of-type { border-bottom: none; }
.rsc-img { width: 76px; height: 60px; overflow: hidden; flex-shrink: 0; }
.rsc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) brightness(0.88); transition: filter 0.3s; }
.related-sidebar-card:hover .rsc-img img { filter: saturate(0.8) brightness(0.78); }
.rsc-text { min-width: 0; }
.rsc-title { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 14px; color: var(--charcoal); line-height: 1.5; transition: color 0.2s; }
.related-sidebar-card:hover .rsc-title { color: var(--smoke); }
.rsc-meta { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 9px; letter-spacing: 0.18em; color: var(--smoke); text-transform: uppercase; margin-top: 6px; }
/* Bottom related grid — meta line + body spacing were unstyled */
.related-card { color: var(--charcoal); }
.related-card-body { padding-top: 18px; }
.related-card-meta { font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 9px; letter-spacing: 0.18em; color: var(--smoke); text-transform: uppercase; margin-top: 10px; }

@media (max-width: 1100px) {
  nav { padding: 16px 40px; }
  .article-hero-content { padding: 0 56px 56px; }
  .article-hero-title { font-size: 44px; }
  .article-meta-bar { padding: 16px 56px; gap: 20px; }
  .article-layout { grid-template-columns: 1fr; max-width: none; }
  .article-content { padding: 56px 56px; border-right: none; max-width: none; }
  .article-pullquote { margin: 44px -56px; padding: 48px 56px; }
  .article-sidebar { position: static; height: auto; overflow: visible; border-top: 1px solid var(--rule); }
  .sidebar-inner { padding: 40px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .sidebar-cats { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .sidebar-section-title, .related-sidebar { display: none; }
  .sidebar-cta { grid-column: 1 / -1; }
  .related { padding: 64px 56px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .article-hero { height: 58vh; min-height: 360px; }
  .article-hero-content { padding: 0 28px 44px; }
  .article-hero-title { font-size: 26px; }
  .article-meta-bar { padding: 14px 28px; gap: 12px; }
  .meta-sep { display: none; }
  .article-content { padding: 44px 28px; max-width: none; }
  .article-lead { font-size: 16px; }
  .article-body p, .article-body ul li { font-size: 14.5px; line-height: 2.1; }
  .article-body h2 { font-size: 22px; }
  .article-pullquote { margin: 40px -28px; padding: 44px 28px; }
  .article-pullquote p { font-size: 18px; }
  .article-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .article-sidebar { display: block; position: static; height: auto; overflow: visible; border-top: 1px solid var(--rule); }
  .sidebar-inner { display: block; padding: 40px 28px; }
  .sidebar-cta { display: none; }
  .mobile-cta { display: block; }
  .related { padding: 52px 28px; }
  .related-title { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr; }
}
