/* ==========================================================================
   ARTICLE & TUTORIAL STATION TYPOGRAPHY & LAYOUT
   ========================================================================== */

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

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-gray-500);
  margin-bottom: 30px;
  font-family: var(--font-mono);
}

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

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

.breadcrumb-separator {
  color: var(--border-gold-subtle);
}

/* Article Hero Header */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.article-h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-desc-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-gray-300);
  background: #14171E;
  padding: 20px 24px;
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
}

/* Article Main Grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #D1D5DB;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 45px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232936;
  position: relative;
}

.article-body h2::before {
  content: "◈";
  color: var(--gold-primary);
  margin-right: 10px;
  font-size: 1.1rem;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 32px 0 14px;
}

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

.article-body ul, .article-body ol {
  margin: 18px 0 24px 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 strong {
  color: var(--text-white);
  font-weight: 700;
}

/* Callout Boxes */
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: #151922;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.callout-gold {
  border-color: var(--border-gold-subtle);
  background: rgba(212, 175, 55, 0.05);
}

.callout-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
  border-radius: 4px 0 0 4px;
}

.callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid #232937;
  border-radius: var(--radius-md);
  background: #11141B;
}

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

.data-table th {
  background: #161A24;
  color: var(--gold-light);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid #2A3242;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #1C222E;
  color: var(--text-gray-300);
}

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

.data-table tr:hover td {
  background: #151922;
}

/* Code Snippet Box */
.code-box {
  margin: 24px 0;
  background: #0B0D11;
  border: 1px solid #202633;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #131720;
  border-bottom: 1px solid #1C222D;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-gray-400);
}

.code-content {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.6;
}

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

.toc-card {
  background: #14171E;
  border: 1px solid #232A37;
  border-radius: var(--radius-md);
  padding: 22px;
}

.toc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-item a {
  font-size: 0.85rem;
  color: var(--text-gray-400);
  transition: color 0.2s ease;
  display: block;
}

.toc-item a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

/* Article CTA Box */
.article-cta-card {
  background: linear-gradient(145deg, #181E29 0%, #12151B 100%);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.article-cta-card h4 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 10px;
}

.article-cta-card p {
  font-size: 0.85rem;
  color: var(--text-gray-400);
  margin-bottom: 18px;
}

/* Article FAQ Section */
.article-faq-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #232936;
}

/* Related Articles */
.related-posts-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #232936;
}

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

.related-card {
  background: #14171E;
  border: 1px solid #242A37;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
}

.related-card:hover {
  border-color: var(--border-gold-subtle);
  transform: translateY(-3px);
}

.related-card h4 {
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-gray-400);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-h1 {
    font-size: 1.9rem;
  }
}