/* ============================================================
   ILLUCEO — article.css
   Shared styles for all article/content pages
   ============================================================ */

/* ── LAYOUT ── */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 28px;
}
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 52px; }

/* ── HERO ── */
.article-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article-meta-row {
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.article-meta-row .cat { margin-bottom: 0; }
.article-meta-date,
.article-read-time {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; color: var(--text3);
}

/* ── BODY ── */
.article-body { font-size: 16px; line-height: 1.85; color: var(--text2); }
.article-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--text); margin: 44px 0 16px;
  letter-spacing: -.01em; line-height: 1.15;
  padding-top: 44px; border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--text); margin: 28px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul,
.article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body a {
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid var(--teal-dim);
  transition: border-color .15s;
}
.article-body a:hover { border-bottom-color: var(--teal); }

/* Highlight box */
.highlight-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px; margin: 28px 0;
}
.highlight-box p { margin: 0; font-size: 15px; color: var(--text); }

/* Key Takeaways */
.takeaways-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px; margin: 32px 0;
}
.takeaways-box h3 {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
  border: none; padding: 0;
}
.takeaways-box ul { list-style: none; padding: 0; margin: 0; }
.takeaways-box li {
  font-size: 14px; color: var(--text2);
  padding: 9px 0; border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.takeaways-box li:last-child { border-bottom: none; }
.takeaways-box li::before { content: '✓ '; color: var(--amber); font-weight: 500; }

/* Comparison table */
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 14px;
  display: block; overflow-x: auto;
}
.article-body th {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text3); padding: 10px 16px;
  text-align: left; border-bottom: 2px solid var(--border2);
  background: var(--bg3); white-space: nowrap;
}
.article-body td {
  padding: 12px 16px; color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.5;
}
.article-body tr:hover td { background: rgba(255,255,255,.018); }
.check { color: var(--teal); font-weight: 500; }
.cross { color: var(--rose); }
.neutral { color: var(--text3); }

/* Tool card grid */
.tool-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin: 28px 0;
}
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 22px 24px;
}
.tool-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.tool-card-name {
  font-family: var(--serif); font-size: 20px;
  font-weight: 600; color: var(--text);
}
.tool-card-badge {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.badge-free { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,229,176,.2); }
.badge-paid { background: rgba(245,166,35,.07); color: var(--amber); border: 1px solid rgba(245,166,35,.2); }
.badge-freemium { background: rgba(74,144,217,.07); color: var(--blue); border: 1px solid rgba(74,144,217,.2); }
.tool-card-desc { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.tool-card-pros { list-style: none; padding: 0; margin: 0 0 12px; }
.tool-card-pros li { font-size: 13px; color: var(--text2); padding: 3px 0; }
.tool-card-pros li::before { content: '+ '; color: var(--teal); font-weight: 500; }
.tool-card-link {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal); text-decoration: none;
  border-bottom: none !important;
  display: inline-flex; align-items: center; gap: 4px;
}
.tool-card-link:hover { opacity: .8; }

/* Step list */
.step-list { list-style: none; padding: 0; margin: 24px 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 12px;
  position: relative; font-size: 15px;
  color: var(--text2); line-height: 1.6;
  background: var(--bg2);
}
.step-list li::before {
  content: counter(steps);
  position: absolute; left: 16px; top: 16px;
  width: 24px; height: 24px;
  background: var(--teal); color: var(--bg);
  border-radius: 50%; font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.step-list li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Stat callout */
.stat-callout {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; padding: 20px 24px; margin: 28px 0;
}
.stat-callout-num {
  font-family: var(--serif); font-size: 48px;
  font-weight: 700; color: var(--teal);
  line-height: 1; white-space: nowrap;
}
.stat-callout-text { font-size: 15px; color: var(--text2); line-height: 1.6; }

/* FAQ */
.faq-section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.faq-section h2 {
  font-family: var(--serif); font-size: 28px;
  font-weight: 600; color: var(--text);
  margin-bottom: 20px; border: none !important;
  padding: 0 !important;
}

/* ── SIDEBAR ── */
.sidebar-widget {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 22px; margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 14px;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li {
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; line-height: 1.5;
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a {
  color: var(--text2); text-decoration: none;
  transition: color .15s;
}
.sidebar-widget a:hover { color: var(--teal); }

.aff-badge {
  font-family: var(--mono); font-size: 7px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--nord); margin-bottom: 8px;
}

/* ── ARTICLE FOOTER ── */
.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px; margin-top: 48px;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.article-tag {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
  border: 1px solid var(--border2); color: var(--text3);
  text-decoration: none; transition: all .15s;
}
.article-tag:hover { border-color: var(--teal); color: var(--teal); }
.related-heading {
  font-family: var(--serif); font-size: 22px;
  font-weight: 600; color: var(--text);
  margin-bottom: 16px;
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.related-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px 18px;
  text-decoration: none; display: block;
  transition: background .18s;
}
.related-card:hover { background: #101013; }
.related-card:hover .related-title { color: var(--teal); }
.related-cat {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.related-cat.cat-tools { color: var(--amber); }
.related-cat.cat-research { color: var(--blue); }
.related-cat.cat-business { color: #e8c46a; }
.related-cat.cat-agents { color: #e87a5a; }
.related-cat.cat-policy { color: var(--violet); }
.related-cat.cat-models { color: var(--teal); }
.related-title {
  font-family: var(--serif); font-size: 15px;
  font-weight: 600; color: var(--text);
  line-height: 1.35; transition: color .15s;
}

/* ── AD WRAPPERS ── */
.ad-wrap-top {
  border-bottom: 1px solid var(--border);
  padding: 12px 0; text-align: center;
}

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .article-wrap { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .ad-halfpage { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:640px) {
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-callout { flex-direction: column; text-align: center; }
  .tool-card-header { flex-direction: column; }
}
