/* ==========================================================================
   xsus.beauty - SEO In-Depth Article Reader Stylesheet
   ========================================================================== */

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

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

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

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-content-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px 50px;
  box-shadow: var(--shadow-card);
}

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

.article-main-title {
  font-size: 2.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

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

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

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

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 40px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  letter-spacing: -0.3px;
}

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

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

.article-body ul, 
.article-body ol {
  margin: 16px 0 24px 28px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: #fff;
}

/* Callout Box */
.callout-box {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
}

.callout-box.warning {
  background: rgba(255, 183, 3, 0.08);
  border-color: rgba(255, 183, 3, 0.3);
}

.callout-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-box.warning .callout-title {
  color: var(--accent-gold);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 28px 0;
}

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

.content-table th, 
.content-table td {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
}

.content-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
}

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

/* In-article CTA box */
.in-article-cta {
  background: linear-gradient(135deg, rgba(22, 33, 56, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  margin: 45px 0 25px;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.in-article-cta h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

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

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

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.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;
  font-size: 0.88rem;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
  padding: 4px 0;
}

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

.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #07090e;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: none;
  }
  .article-content-wrapper {
    padding: 30px 20px;
  }
  .article-main-title {
    font-size: 1.8rem;
  }
}
