/* ==========================================================================
   OIXCloud Article & Technical Knowledge Base Stylesheet (oixcloud.rest)
   Pure Native CSS - Ultra Fast Sub-Second Loading Speed
   Optimized for Readability, SEO Internal Linking & Engagement
   ========================================================================== */

.article-page {
  padding: 40px 0 90px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

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

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

.breadcrumbs span.separator {
  color: var(--border-light);
}

.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 500;
}

/* Article Container Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px 42px;
  backdrop-filter: blur(14px);
}

/* Article Header */
.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px;
  margin-bottom: 35px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-header-meta .cat-badge {
  background: rgba(0, 245, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 245, 255, 0.28);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.article-header-title {
  font-size: 2.2rem;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.article-header-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Article Typography & Body */
.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body h2 {
  font-size: 1.65rem;
  margin: 45px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 30px 0 14px;
  color: #f1f5f9;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body strong {
  color: #ffffff;
  font-weight: 600;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.article-body a:hover {
  color: #38bdf8;
}

/* Callout Alert Boxes */
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(14, 22, 48, 0.7);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 14px;
}

.callout-info {
  border-left: 4px solid var(--primary);
}

.callout-tip {
  border-left: 4px solid var(--success);
}

.callout-warning {
  border-left: 4px solid var(--warning);
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.callout-content {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.callout-content strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* Tables in Article */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.article-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Article In-Page CTA Box */
.article-cta-box {
  margin: 40px 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(0, 245, 255, 0.3);
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.article-cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

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

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  backdrop-filter: blur(14px);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: block;
}

.toc-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-cta-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 25, 54, 0.9), rgba(8, 14, 32, 0.9));
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.sidebar-cta-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.sidebar-cta-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Related Articles at Bottom of Post */
.related-articles {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-title {
  font-size: 1.45rem;
  margin-bottom: 24px;
}

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

.related-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
}

.related-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  transform: translateY(-3px);
}

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

.related-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

/* Responsive for Articles */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

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