/* ==========================================================================
   WgetCloud Article Reading Stylesheet (wget-yun.homes)
   High Legibility, Native Typography, Optimized for SEO & Internal Linking
   ========================================================================== */

.article-page-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  margin-bottom: 40px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: var(--text-dim);
  user-select: none;
}

.breadcrumb-current {
  color: #cbd5e1;
  font-weight: 500;
}

/* Article Hero Header */
.article-title-h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #ffffff;
}

.article-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Layout Grid (Content + Sidebar/TOC) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
}

.article-main-content {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Table of Contents */
.toc-box {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffa726;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.toc-list a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  color: #ffa726;
  padding-left: 4px;
}

/* Article Typography */
.article-main-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-main-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #ffa726, #ff5722);
  border-radius: 2px;
}

.article-main-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffb74d;
  margin: 28px 0 14px;
}

.article-main-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-main-content strong {
  color: #ffffff;
  font-weight: 700;
}

.article-main-content ul, 
.article-main-content ol {
  margin: 16px 0 24px 24px;
}

.article-main-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-main-content a {
  color: #ffa726;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-main-content a:hover {
  color: #ffb74d;
}

/* In-Content Callout Box */
.article-callout {
  background: rgba(255, 140, 0, 0.06);
  border-left: 4px solid #ff7a18;
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}

.article-callout-title {
  font-weight: 700;
  color: #ffa726;
  margin-bottom: 8px;
  font-size: 1rem;
}

.article-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* In-Content Comparison Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.article-table th {
  background: rgba(14, 22, 38, 0.95);
  color: var(--primary);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  white-space: nowrap;
}

.article-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.article-table tr:hover td {
  background: rgba(0, 242, 254, 0.03);
}

/* In-Article CTA Banner Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(28, 20, 16, 0.95) 0%, rgba(18, 24, 40, 0.95) 100%);
  border: 1px solid rgba(255, 122, 24, 0.45);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.article-cta-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.sidebar-links a:hover {
  color: var(--primary);
}

/* Related Articles Block at bottom */
.related-articles-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: rgba(14, 22, 38, 0.65);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
}

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

.related-card h4 {
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card h4 a {
  color: #ffffff;
}

.related-card h4 a:hover {
  color: var(--primary);
}

.related-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive adjustments for article pages */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-main-content {
    padding: 24px 20px;
  }
  .article-title-h1 {
    font-size: 1.7rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
