/* ============================================================================
   HawkView.co - Guides (listing + single article + author)
   Uses the main.css design tokens (indigo-violet #6E64DB, dark gallery).
   ============================================================================ */

/* -- Shared wrappers ------------------------------------------------ */
.content-page-container{ max-width:var(--container); margin:0 auto; padding:0 28px; }

.content-header{ max-width:720px; margin:0 0 44px; }
.content-header h1{ font-size:clamp(30px,5vw,46px); }
.content-header-intro{ color:var(--muted); font-size:18px; margin-top:14px; }

/* -- Breadcrumb ----------------------------------------------------- */
.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13.5px; color:var(--dim); margin-bottom:26px;
}
.breadcrumb a{ color:var(--muted); }
.breadcrumb a:hover{ color:var(--primary-bright); }
.breadcrumb-sep{ color:var(--dim); }
.breadcrumb [aria-current="page"]{ color:var(--text); font-weight:500; }

/* -- Listing grid + cards ------------------------------------------ */
.articles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:24px;
}
.articles-empty{
  text-align:center; color:var(--muted); padding:48px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
}

.article-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.article-card-link{ display:block; color:inherit; }
.article-card-link:hover{ color:inherit; }

.article-card-media{ aspect-ratio:16 / 9; background:var(--surface-2); overflow:hidden; }
.article-card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.article-card:hover .article-card-media img{ transform:scale(1.04); }

.article-card-body{ padding:22px; }
.article-card-title{
  font-family:var(--display); font-size:19px; line-height:1.3; letter-spacing:-.01em;
  margin-bottom:10px; color:var(--text);
}
.article-card-desc{ font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:16px; }
.article-card-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:12.5px; color:var(--dim);
}
.article-meta-dot{ opacity:.6; }

/* -- Single article ------------------------------------------------- */
.article{ padding:48px 0 72px; }
.article-container{ width:100%; max-width:760px; margin:0 auto; padding:0 28px; }

.article-header{ margin-bottom:30px; }
.article-title{ font-size:clamp(28px,5vw,42px); line-height:1.15; margin-bottom:18px; }
.article-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:9px;
  font-size:14px; color:var(--dim);
}
.article-author{ color:var(--muted); font-weight:500; }
.article-author-avatar{
  width:40px; height:40px; border-radius:50%; object-fit:cover;
  border:1px solid var(--border-strong);
}
.article-author-avatar-link{ display:inline-flex; line-height:0; }
.article-author-link{ color:inherit; text-decoration:none; }
.article-author-link:hover{ color:var(--primary-bright); text-decoration:underline; }
.article-updated{ color:var(--dim); }

.article-hero{
  margin:0 0 32px; border-radius:var(--radius); overflow:hidden; background:var(--surface-2);
  border:1px solid var(--border);
}
.article-hero img{ width:100%; height:auto; }

/* -- Table of contents --------------------------------------------- */
.article-toc{
  background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--primary);
  border-radius:var(--radius-sm); padding:20px 26px; margin-bottom:34px;
}
.article-toc-title{
  font-family:var(--display); font-size:13px; font-weight:600;
  text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:10px;
}
.article-toc ul{ list-style:none; }
.article-toc li{ margin:7px 0; }
.article-toc a{ color:var(--muted); font-size:14.5px; }
.article-toc a:hover{ color:var(--primary-bright); }

/* -- Article body (rendered Markdown) ------------------------------ */
.article-body{ font-size:17px; line-height:1.8; color:#c9c9d2; }
.article-body > *:first-child{ margin-top:0; }

.article-body h2{
  font-family:var(--display); color:var(--text); font-size:clamp(23px,3.4vw,28px);
  line-height:1.25; margin:48px 0 16px; scroll-margin-top:84px;
}
.article-body h3{
  font-family:var(--display); color:var(--text); font-size:20px;
  margin:32px 0 12px; scroll-margin-top:84px;
}
.article-body p{ margin-bottom:20px; }

.article-body a{ color:var(--primary-bright); text-decoration:underline; text-underline-offset:2px; }
.article-body a:hover{ color:#a99dff; }

.article-body ul, .article-body ol{ margin:0 0 20px 26px; line-height:1.8; }
.article-body ul{ list-style:disc; }
.article-body ol{ list-style:decimal; }
.article-body li{ margin-bottom:8px; }
.article-body li::marker{ color:var(--dim); }

.article-body strong{ color:var(--text); font-weight:600; }

.article-body blockquote{
  margin:28px 0; padding:14px 22px; border-left:3px solid var(--primary);
  background:rgba(110,100,219,.08); border-radius:var(--radius-sm); color:var(--muted);
}
.article-body blockquote p:last-child{ margin-bottom:0; }

.article-body code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.9em; background:var(--surface-2); border:1px solid var(--border);
  padding:.12em .4em; border-radius:7px;
}
.article-body pre{
  background:#0B0B10; border:1px solid var(--border); color:var(--text);
  padding:20px; border-radius:var(--radius-sm); overflow-x:auto; margin:28px 0; line-height:1.6;
}
.article-body pre code{ background:none; border:none; padding:0; font-size:14px; color:inherit; }

/* Figures (images with optional caption) */
.article-figure{ margin:32px 0; text-align:center; }
.article-figure img{ width:100%; height:auto; border-radius:var(--radius-sm); border:1px solid var(--border); }
.article-figure figcaption{ margin-top:10px; font-size:14px; color:var(--dim); }

/* Tables (comparison tables) */
.article-body table{
  width:100%; border-collapse:collapse; margin:28px 0; font-size:15px;
  background:var(--surface); border:1px solid var(--border-strong);
  border-radius:var(--radius-sm); overflow:hidden;
}
.article-body th, .article-body td{
  padding:11px 16px; text-align:left; border-bottom:1px solid var(--border);
}
.article-body thead th{
  background:var(--surface-2); font-family:var(--display); font-size:13.5px;
  letter-spacing:.02em; color:var(--text);
}
.article-body tbody tr:last-child td{ border-bottom:none; }

.article-body hr{ border:none; border-top:1px solid var(--border-strong); margin:48px 0; }

/* -- FAQ (accordion, scoped to article pages) ---------------------- */
.article-faq{ margin-top:64px; }
.article-faq h2{ font-family:var(--display); font-size:clamp(23px,3.4vw,28px); margin-bottom:22px; }
.article-faq .faq-item{
  border:1px solid var(--border); border-radius:var(--radius-sm);
  margin-bottom:10px; background:var(--surface); overflow:hidden;
}
.article-faq .faq-question{
  cursor:pointer; padding:16px 22px; font-weight:600; color:var(--text);
  list-style:none; position:relative; padding-right:48px;
}
.article-faq .faq-question::-webkit-details-marker{ display:none; }
.article-faq .faq-question::after{
  content:"+"; position:absolute; right:22px; top:50%; transform:translateY(-50%);
  font-size:20px; color:var(--primary-bright); transition:transform .15s;
}
.article-faq .faq-item[open] .faq-question::after{ content:"\2212"; /* minus */ }
.article-faq .faq-answer{ padding:0 22px 16px; color:var(--muted); line-height:1.8; }

/* -- Download CTA --------------------------------------------------- */
.article-cta{
  margin-top:64px; padding:44px 32px; text-align:center;
  background:radial-gradient(120% 140% at 50% 0%, rgba(110,100,219,.16), transparent 70%), var(--surface);
  border:1px solid var(--border-strong); border-radius:var(--radius-lg);
}
.article-cta h2{ font-family:var(--display); font-size:clamp(23px,3.4vw,30px); margin-bottom:10px; }
.article-cta p{ color:var(--muted); max-width:460px; margin:0 auto 22px; }

/* -- Related -------------------------------------------------------- */
.article-related{ margin-top:64px; }
.article-related-title{ font-family:var(--display); font-size:clamp(22px,3.2vw,28px); margin-bottom:22px; }

/* -- Author page ---------------------------------------------------- */
.author-header{ display:flex; align-items:center; gap:18px; margin-bottom:22px; }
.author-avatar{
  width:96px; height:96px; border-radius:50%; object-fit:cover;
  border:1px solid var(--border-strong); flex-shrink:0;
}
.author-name{ margin:0; }
.author-role{ margin:5px 0 0; color:var(--primary-bright); font-weight:500; }
.author-bio{ max-width:70ch; margin-bottom:36px; color:#c9c9d2; line-height:1.75; }
.author-bio p{ margin:0 0 12px; }
.author-bio p:last-child{ margin-bottom:0; }
.author-articles-heading{ margin-bottom:22px; }

/* -- Responsive ----------------------------------------------------- */
@media (max-width:600px){
  .article-title{ font-size:26px; }
  .article-body{ font-size:16px; }
  .articles-grid{ grid-template-columns:1fr; }
  .content-page-container{ padding:0 20px; }
  .article-container{ padding:0 20px; }
  .author-header{ gap:14px; }
  .author-avatar{ width:72px; height:72px; }
}
