/* ==========================================================================
   Jeeyio.sbs - Articles & Knowledge Base Native Stylesheet
   Pure Native CSS - High Readability & SEO Optimized Content
   ========================================================================== */

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

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

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

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

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

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

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

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

/* Article Header */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-card-border);
}

.article-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.article-badge.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-accent);
  border-color: rgba(6, 182, 212, 0.3);
}

.article-post-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

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

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

/* Table of Contents */
.article-toc-box {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--bg-card-border);
  border-left: 4px solid var(--cyan-accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

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

.toc-list a:hover {
  color: var(--cyan-accent);
  padding-left: 4px;
}

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

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-card-border);
  position: relative;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: middle;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 14px;
}

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

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

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

.article-body ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}

.article-body ol li {
  list-style-type: decimal;
  margin-bottom: 8px;
}

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

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

/* In-Content Highlight Callout Box */
.article-alert {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  color: #e2e8f0;
}

.article-alert.alert-tip {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.alert-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* In-Content Registration CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}

.article-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

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

/* Article Comparison Table */
.article-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
}

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

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

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

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

/* Code Snippet */
.code-block {
  background: #030712;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  margin: 20px 0;
}

/* Article Tags & Footer */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-card-border);
}

.tag-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-keyword-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
}

.article-keyword-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

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

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

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-card-border);
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-post-item a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  transition: var(--transition);
}

.recent-post-item a:hover {
  color: var(--cyan-accent);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Hub Directory Index Styles */
.hub-hero {
  text-align: center;
  padding: 40px 0 50px;
}

.hub-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.hub-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.articles-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

/* Responsive */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .articles-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-main-content {
    padding: 24px 18px;
  }
  .articles-hub-grid {
    grid-template-columns: 1fr;
  }
  .article-post-title {
    font-size: 1.6rem;
  }
}
