/* ==========================================================================
   WgetCloud Article & Detail Page Stylesheet
   Pure Native CSS - Ultra Fast Sub-Second Loading (wget-yun.mom)
   Semantic SEO Optimized Typography & Article Layouts
   ========================================================================== */

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

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

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

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

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

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

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

/* Main Article Content Container */
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  backdrop-filter: blur(14px);
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-primary-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 18px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

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

.article-keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.keyword-badge {
  font-size: 0.76rem;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* Prose Styling */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

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

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 28px 0 14px;
}

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

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

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

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.article-callout {
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-callout.tip {
  background: rgba(16, 185, 129, 0.06);
  border-left-color: #10b981;
}

.article-callout-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Article CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 75, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

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

/* Comparison Table within Article */
.article-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
}

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

.article-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.article-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  color: #cbd5e1;
}

.article-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

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

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

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-article-item a {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-article-item a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-cta-card {
  background: linear-gradient(145deg, rgba(14, 23, 48, 0.95), rgba(24, 38, 77, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
}

.sidebar-cta-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

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

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-main {
    padding: 28px 20px;
  }
}
