/* In-Depth SEO Knowledge Article Layout */

.article-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

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

.article-hero-cover {
  width: 100%;
  max-width: 840px;
  height: auto;
  margin: 28px auto 40px;
  border-radius: var(--pocket-radius-xl);
  border: 2px solid var(--pocket-border);
  box-shadow: var(--pocket-shadow-lg);
  overflow: hidden;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--pocket-muted);
  margin-bottom: 20px;
}

.article-direct-answer {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4E3 100%);
  border: 2px solid var(--pocket-peach);
  border-radius: var(--pocket-radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--pocket-shadow-md);
}

.article-direct-answer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pocket-primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Article Body Typography */
.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--pocket-text);
}

.article-body h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px dashed var(--pocket-border);
}

.article-body h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-body li {
  margin-bottom: 0.6em;
}

.article-body blockquote {
  background: var(--pocket-cream);
  border-left: 4px solid var(--pocket-primary);
  padding: 16px 24px;
  border-radius: 0 var(--pocket-radius-md) var(--pocket-radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--pocket-heading);
}

.article-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--pocket-primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease;
}

/* Floating Table of Contents */
.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 840px) 280px;
  gap: 48px;
  align-items: start;
}

.article-toc-sticky {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-radius-lg);
  padding: 24px;
  box-shadow: var(--pocket-shadow-sm);
}

.article-toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--pocket-heading);
}

.article-toc-list {
  list-style: none;
  font-size: 0.9rem;
}

.article-toc-list li {
  margin-bottom: 8px;
}

.article-toc-link {
  color: var(--pocket-muted);
  display: block;
  transition: var(--pocket-transition-fast);
}

.article-toc-link:hover,
.article-toc-link.active {
  color: var(--pocket-primary);
  font-weight: 700;
  padding-left: 4px;
}
