/* ============================================
   BE THE ONE - Topic Pages Styles
   ============================================ */

/* ── Page layout ──────────────────────────── */

.topic-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.topic-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ── Breadcrumb ───────────────────────────── */

.topic-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted, #888);
}

.topic-breadcrumb a {
  color: var(--text-muted, #888);
  text-decoration: none;
  transition: color 0.15s;
}

.topic-breadcrumb a:hover {
  color: var(--accent-gold, #d4a853);
}

.topic-breadcrumb-sep {
  opacity: 0.4;
  margin: 0 2px;
}

.topic-breadcrumb-current {
  color: var(--text-secondary, #ccc);
}

/* ── Hero ─────────────────────────────────── */

.topic-hero {
  margin-bottom: 40px;
}

.topic-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.25);
  color: var(--accent-gold, #d4a853);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.topic-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary, #fff);
  margin: 0 0 16px 0;
}

.topic-hero-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary, #ccc);
  max-width: 680px;
}

/* ── Disclaimer ───────────────────────────── */

.topic-disclaimer {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.2);
  background: rgba(212, 168, 83, 0.05);
  margin-bottom: 32px;
}

.topic-disclaimer p {
  font-size: 13px;
  color: var(--text-muted, #888);
  line-height: 1.6;
  margin: 0;
}

/* ── Article body ─────────────────────────── */

.topic-body {
  color: var(--text-secondary, #ccc);
  line-height: 1.75;
  font-size: 16px;
}

.topic-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 40px 0 14px 0;
  line-height: 1.3;
}

.topic-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 28px 0 10px 0;
}

.topic-body p {
  margin: 0 0 16px 0;
}

.topic-body ul,
.topic-body ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.topic-body li {
  margin-bottom: 6px;
}

.topic-body strong {
  color: var(--text-primary, #fff);
  font-weight: 600;
}

.topic-body blockquote {
  border-left: 3px solid var(--accent-gold, #d4a853);
  padding: 8px 0 8px 16px;
  margin: 16px 0;
  color: var(--text-secondary, #ccc);
  font-style: italic;
}

/* ── Key Takeaways ────────────────────────── */

.topic-takeaways {
  margin: 40px 0;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
}

.topic-takeaways h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold, #d4a853);
  margin: 0 0 14px 0;
}

.topic-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-takeaways li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary, #ccc);
  font-size: 15px;
  line-height: 1.6;
}

.topic-takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold, #d4a853);
}

/* ── 3-Step Ladder ────────────────────────── */

.topic-ladder {
  margin: 40px 0;
}

.topic-ladder h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 18px 0;
}

.topic-ladder-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
}

.topic-ladder-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold, #d4a853);
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.topic-ladder-text {
  flex: 1;
}

.topic-ladder-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}

.topic-ladder-desc {
  color: var(--text-secondary, #ccc);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Truth Checks ─────────────────────────── */

.topic-truth-checks {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border-color, #222);
}

.topic-truth-checks h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 6px 0;
}

.topic-truth-checks-sub {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 20px 0;
}

.topic-truth-checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-truth-check-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.topic-truth-check-card:hover {
  border-color: var(--accent-gold, #d4a853);
  background: rgba(212, 168, 83, 0.05);
}

.topic-truth-check-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #888);
}

.topic-truth-check-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  line-height: 1.4;
}

.topic-truth-check-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold, #d4a853);
}

.topic-arrow {
  display: inline-block;
  transition: transform 0.15s;
}

.topic-truth-check-card:hover .topic-arrow {
  transform: translateX(3px);
}

/* ── Next Reads ───────────────────────────── */

.topic-next-reads {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border-color, #222);
}

.topic-next-reads h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 16px 0;
}

.topic-next-reads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-next-read-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
  text-decoration: none;
  transition: border-color 0.15s;
}

.topic-next-read-card:hover {
  border-color: var(--accent-gold, #d4a853);
}

.topic-next-read-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0;
  line-height: 1.4;
}

.topic-next-read-arrow {
  color: var(--accent-gold, #d4a853);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Hub: Article Grid ────────────────────── */

.topic-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.topic-article-card {
  display: block;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.topic-article-card:hover {
  border-color: var(--accent-gold, #d4a853);
  background: rgba(212, 168, 83, 0.04);
}

.topic-article-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.topic-article-card p {
  font-size: 13px;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.5;
}

/* ── Hub: Cornerstone Card ────────────────── */

.topic-cornerstone-card {
  display: block;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  background: rgba(212, 168, 83, 0.06);
  text-decoration: none;
  margin-bottom: 32px;
  transition: border-color 0.15s;
}

.topic-cornerstone-card:hover {
  border-color: var(--accent-gold, #d4a853);
}

.topic-cornerstone-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold, #d4a853);
  margin-bottom: 8px;
}

.topic-cornerstone-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px 0;
}

.topic-cornerstone-card p {
  font-size: 14px;
  color: var(--text-secondary, #ccc);
  margin: 0;
  line-height: 1.6;
}

/* ── Hub: Subtopic Grid ───────────────────── */

.topic-subtopic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.topic-subtopic-card {
  display: block;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.topic-subtopic-card:hover {
  border-color: var(--accent-gold, #d4a853);
  background: rgba(212, 168, 83, 0.04);
}

.topic-subtopic-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px 0;
}

.topic-subtopic-card p {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.5;
}

/* ── Hub: Pillar Grid (for /learn) ────────── */

.topic-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.topic-pillar-card {
  display: block;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.topic-pillar-card:hover {
  border-color: var(--accent-gold, #d4a853);
  background: rgba(212, 168, 83, 0.04);
}

.topic-pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px 0;
}

.topic-pillar-card p {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.5;
}

/* ── Coming Soon state ────────────────────── */

.topic-coming-soon {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted, #888);
}

.topic-coming-soon p {
  font-size: 15px;
  margin: 8px 0 0 0;
}

/* ── Section headings on hubs ─────────────── */

.topic-section-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 48px 0 8px 0;
}

.topic-section-sub {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 16px 0;
}

/* ── Pillar body content ──────────────────── */

.topic-pillar-body {
  color: var(--text-secondary, #ccc);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.topic-pillar-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 28px 0 10px 0;
}

.topic-pillar-body p {
  margin: 0 0 16px 0;
}

.topic-pillar-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.topic-pillar-body li {
  margin-bottom: 6px;
}

/* ── FAQ ──────────────────────────────────── */

.topic-faqs {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-color, #222);
}

.topic-faqs h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px;
}

.topic-faqs-intro {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 18px;
}

.topic-faqs-list {
  display: grid;
  gap: 12px;
}

.topic-faqs-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #222);
  background: var(--bg-secondary, #111);
}

.topic-faqs-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 8px;
  line-height: 1.4;
}

.topic-faqs-item p {
  font-size: 15px;
  color: var(--text-secondary, #ccc);
  margin: 0;
  line-height: 1.7;
}

/* ── Mega Menu ────────────────────────────── */

.site-nav-learn-wrap {
  position: relative;
  display: inline-block;
}

.topic-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding-top: 10px;
}

.site-nav-learn-wrap:hover .topic-mega-menu {
  display: block;
}

.topic-mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  background: var(--bg-secondary, #111);
  border: 1px solid var(--border-color, #222);
  border-radius: 14px;
  min-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .topic-mega-inner {
  box-shadow: 0 8px 32px rgba(71, 56, 37, 0.12);
}

.topic-mega-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-mega-pillar {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  text-decoration: none;
  margin-bottom: 4px;
}

.topic-mega-pillar:hover {
  color: var(--accent-gold, #d4a853);
}

.topic-mega-link {
  font-size: 13px;
  color: var(--text-muted, #888);
  text-decoration: none;
  padding: 2px 0;
}

.topic-mega-link:hover {
  color: var(--accent-gold, #d4a853);
}

.topic-mega-coming {
  font-size: 12px;
  color: var(--text-muted, #888);
  opacity: 0.5;
  font-style: italic;
}

/* ── Learn More (for tools/tests) ─────────── */

.topic-learn-more {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color, #222);
}

.topic-learn-more h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 6px 0;
}

.topic-learn-more p {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 16px 0;
}

.topic-learn-more-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-learn-more-hub {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-gold, #d4a853);
  text-decoration: none;
  margin-bottom: 4px;
}

.topic-learn-more-hub:hover {
  text-decoration: underline;
}

.topic-learn-more-link {
  font-size: 14px;
  color: var(--text-secondary, #ccc);
  text-decoration: none;
}

.topic-learn-more-link:hover {
  color: var(--accent-gold, #d4a853);
}

/* ── Mobile toggle (now handled by styles.css .mobile-toggle) ── */

/* ── Responsive ───────────────────────────── */

@media (max-width: 880px) {
  .topic-truth-checks-grid,
  .topic-article-grid,
  .topic-subtopic-grid,
  .topic-pillar-grid {
    grid-template-columns: 1fr;
  }

  .topic-next-reads-grid {
    grid-template-columns: 1fr;
  }

  .topic-mega-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 360px;
  }
}

@media (max-width: 640px) {
  .topic-page {
    padding-top: 80px;
  }

  .topic-hero h1 {
    font-size: 26px;
  }

  /* mobile nav toggle + .nav-right now handled by styles.css */

  .topic-mega-menu {
    position: static;
    transform: none;
    padding-top: 8px;
  }

  .topic-mega-inner {
    grid-template-columns: 1fr;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 8px 0;
    background: transparent;
  }
}
