/* ===================== */
/*  Page Hero            */
/* ===================== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== */
/*  Newsletter Page Form */
/* ===================== */
.newsletter-page-form {
  max-width: 520px;
  margin: 40px auto 0;
}

.newsletter-page-input-group {
  display: flex;
  gap: 10px;
}

.newsletter-page-form .newsletter-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===================== */
/*  Newsletter Features  */
/* ===================== */
.nl-features-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ===================== */
/*  Newsletter Quotes    */
/* ===================== */
.nl-social-proof {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.nl-social-proof .section-title {
  margin-bottom: 48px;
}

.nl-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.nl-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.nl-quote p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.nl-quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== */
/*  Blog Grid            */
/* ===================== */
.blog-section {
  padding-top: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.blog-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-1);
  background: rgba(124, 58, 237, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== */
/*  Article              */
/* ===================== */
.article {
  padding-top: 120px;
  padding-bottom: 80px;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 48px;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--text);
}

.article-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================== */
/*  Article Body         */
/* ===================== */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body a {
  color: var(--accent-1);
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--accent-1);
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

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

/* ===================== */
/*  Share Buttons        */
/* ===================== */
.article-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-share-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  transition: all 0.2s;
}

.article-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.article-share-btn:active {
  transform: scale(0.97);
}

/* ===================== */
/*  Related Articles     */
/* ===================== */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-related p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-related a {
  color: var(--accent-1);
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-related a:hover {
  text-decoration-color: var(--accent-1);
}

/* ===================== */
/*  Article CTA          */
/* ===================== */
.article-cta {
  margin-top: 64px;
}

.article-cta .newsletter-card {
  flex-direction: column;
  text-align: center;
  padding: 56px 48px;
  gap: 32px;
}

.article-cta .newsletter-sub {
  margin-left: auto;
  margin-right: auto;
}

.article-cta .newsletter-form-wrap {
  max-width: 100%;
  width: 100%;
}

.article-cta .newsletter-input-group {
  max-width: 440px;
  margin: 0 auto;
}

.article-cta .newsletter-note {
  text-align: center;
}

/* ===================== */
/*  Learn Hub            */
/* ===================== */
.learn-category {
  margin-bottom: 32px;
}

.learn-category-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.learn-category-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================== */
/*  Blog Filter Tabs     */
/* ===================== */
.blog-filters {
  margin-bottom: 32px;
}

.blog-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-tab:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.blog-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.blog-card[hidden] {
  display: none;
}

/* ===================== */
/*  Breadcrumb           */
/* ===================== */
.breadcrumb {
  padding-top: 96px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* ===================== */
/*  Guide Layout         */
/* ===================== */
.guide-page .article-header {
  max-width: 720px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
}

.guide-main {
  min-width: 0;
  max-width: 720px;
}

/* ===================== */
/*  Docs TOC & Accordion */
/* ===================== */
.guide-toc {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.guide-toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}

.guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.guide-toc-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.guide-toc-list a.active {
  color: var(--text);
  background: rgba(0, 122, 255, 0.08);
  border-left-color: var(--accent-1);
}

.guide-toc-list a.active .guide-toc-num {
  background: var(--accent-1);
  color: #fff;
}

.guide-toc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.guide-toc-link-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-toc-list a:hover .guide-toc-num {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* ===================== */
/*  Expand/Collapse All  */
/* ===================== */
.guide-expand-all {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.guide-expand-all:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

/* ===================== */
/*  Guide Section Nav    */
/* ===================== */
.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.guide-nav-link,
.article-body .guide-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.guide-nav-link:hover,
.article-body .guide-nav-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.guide-nav-link:active,
.article-body .guide-nav-link:active {
  transform: scale(0.97);
}

.guide-nav-arrow {
  font-size: 1rem;
  color: var(--text-secondary);
}

.guide-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.guide-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  margin: 0;
  letter-spacing: -0.01em;
}

.guide-section-toggle:hover {
  background: var(--bg-card-hover);
}

.guide-section-toggle .chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.guide-section.open .guide-section-toggle .chevron {
  transform: rotate(180deg);
}

.guide-section-content {
  display: none;
  padding: 0 24px 24px;
  background: var(--bg-card);
}

.guide-section.open .guide-section-content {
  display: block;
}

/* Override article-body styles inside accordion */
.guide-section-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.guide-section-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-section-content ul,
.guide-section-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.guide-section-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.guide-section-content strong {
  color: var(--text);
}

.guide-section-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.guide-section-content th,
.guide-section-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.guide-section-content th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================== */
/*  Responsive           */
/* ===================== */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 48px;
  }

  .newsletter-page-input-group {
    flex-direction: column;
  }

  .newsletter-page-form .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .nl-features-grid {
    grid-template-columns: 1fr;
  }

  .nl-quotes {
    grid-template-columns: 1fr;
  }

  .nl-quote {
    padding: 24px;
  }

  .blog-card {
    padding: 28px;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .article {
    padding-top: 100px;
  }

  .article-body h2 {
    font-size: 1.3rem;
    margin-top: 36px;
  }

  .article-cta .newsletter-card {
    padding: 32px 24px;
    gap: 24px;
  }

  .article-cta .newsletter-input-group {
    flex-direction: column;
  }

  .article-cta .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .blog-tabs {
    gap: 6px;
  }

  .blog-tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  .breadcrumb {
    padding-top: 80px;
    margin-bottom: 12px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 32px;
  }

  .guide-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
  }

  .guide-toc-list a {
    border-left: none;
  }

  .guide-toc-list a.active {
    border-left: none;
  }

  .guide-section-toggle {
    padding: 16px 20px;
    font-size: 1.05rem;
  }

  .guide-section-content {
    padding: 0 20px 20px;
  }

  .guide-nav {
    gap: 8px;
  }

  .guide-nav-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}
