/* ==========================================================================
   GLaDOS Network - Article & Knowledge Base CSS
   High Readability Typography, SEO Optimization & Content Callouts
   ========================================================================== */

.article-page {
  padding: 3.5rem 0 5rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.breadcrumb-nav a:hover {
  color: #38bdf8;
}

.breadcrumb-separator {
  color: var(--text-sub);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

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

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

/* Rich Article Content Typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 2rem 0 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: #ffffff;
}

.article-content a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: #7dd3fc;
}

/* Callout Box */
.article-callout {
  background: rgba(24, 144, 255, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: #e2e8f0;
}

.article-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--accent-amber);
}

.article-callout.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--accent-green);
}

/* Comparison Tables in Articles */
.content-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.content-table th,
.content-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.content-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
}

.content-table tr:last-child td {
  border-bottom: none;
}

/* Code block */
.code-block {
  background: #050811;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #7dd3fc;
  overflow-x: auto;
}

/* In-Article Conversion Banner */
.article-cta-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(192, 132, 252, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.article-cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Internal Linking & Related Articles */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.related-articles h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.related-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
}

.related-card a {
  text-decoration: none;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.4;
  display: block;
}

.related-card a:hover {
  color: #38bdf8;
}

/* Sidebar Widgets */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: 6rem;
}

.sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

.widget-list a:hover {
  color: #38bdf8;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 1.75rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
