/* ==========================================================================
   Article & Conversion Box Specific Styles (article.css)
   ========================================================================== */

.article-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 30px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.article-breadcrumbs a:hover {
  color: var(--brand-orange);
}

.article-title-main {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  border: 2px solid var(--glass-border);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--brand-emerald);
  font-weight: 600;
}

/* Article Content Typography & Headings */
.article-body,
.article-main-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-body h2,
.article-main-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 56px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 115, 0, 0.4);
  color: #ffffff;
  letter-spacing: -0.5px;
  scroll-margin-top: 100px;
}

.article-body h3,
.article-main-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 38px 0 16px;
  color: var(--brand-orange);
  letter-spacing: -0.3px;
  scroll-margin-top: 100px;
}

.article-body h4,
.article-main-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #38bdf8;
}

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

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

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

/* Table of Contents (TOC) Box */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

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

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

.toc-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

/* Conversion Lead Box Widget */
.blog-lead-box {
  background: linear-gradient(135deg, rgba(22, 32, 54, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.blog-lead-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.blog-lead-content {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-lead-img-wrapper {
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-lead-info {
  flex: 1;
  min-width: 260px;
}

.expert-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-red), #d97706);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lead-box-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.lead-box-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.lead-box-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Callout Warning / Danger Alerts */
.alert-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.alert-box--danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-box--warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.alert-box--info {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #7dd3fc;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Diagram Schema Holder */
.schema-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
  text-align: center;
}

.schema-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}
