/* ===== BLOG ARTICLE STYLES ===== */

.article-page {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.article-page .container {
  max-width: 800px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #E63946;
}
.breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.5;
}
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E63946;
  background: rgba(230, 57, 70, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.article-body p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}
.article-body ul li, .article-body ol li {
  color: var(--text-secondary);
  line-height: 1.9;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.article-body ul li::before {
  content: '·';
  position: absolute;
  left: 0.5rem;
  color: #E63946;
  font-weight: 700;
}
.article-body ol {
  counter-reset: article-counter;
}
.article-body ol li {
  counter-increment: article-counter;
}
.article-body ol li::before {
  content: counter(article-counter) '.';
  position: absolute;
  left: 0;
  color: #E63946;
  font-weight: 600;
  font-size: 0.9rem;
}
.article-body a {
  color: #E63946;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  opacity: 0.8;
}
.article-body strong {
  color: var(--text);
  font-weight: 600;
}
.article-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #E63946;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.article-callout p {
  margin-bottom: 0.5rem;
}
.article-callout p:last-child {
  margin-bottom: 0;
}
.article-cta {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.article-cta h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.article-cta p {
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.article-nav a:hover {
  color: #E63946;
}

/* ===== LEVEL CARDS (whatsapp-business-automation) ===== */
.level-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.level-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.level-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.level-card .level-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.level-card .level-badge.basic { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.level-card .level-badge.intermediate { background: rgba(255, 152, 0, 0.15); color: #FF9800; }
.level-card .level-badge.advanced { background: rgba(230, 57, 70, 0.15); color: #E63946; }
.level-card p {
  font-size: 0.9rem;
}

/* ===== COMPARISON TABLE (chatbot-comparison-2026) ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.comparison-table th.highlight-col {
  color: #E63946;
}
.comparison-table td.highlight-col {
  color: var(--text);
  font-weight: 500;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.comparison-table-wrapper .comparison-table {
  margin: 0;
}

/* ===== VERDICT CARDS (chatbot-comparison-2026) ===== */
.verdict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.verdict-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verdict-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .comparison-table {
    font-size: 0.75rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.4rem;
  }
}

/* Table of Contents */
.article-toc {
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.article-toc h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text, #e6e6e6);
}
.article-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}
.article-toc ol li {
  margin-bottom: 0.4rem;
}
.article-toc ol li a {
  color: var(--text-secondary, #a0a0a0);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.article-toc ol li a:hover {
  color: #E63946;
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}
.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: #E63946;
  transform: translateY(-2px);
}
.related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #e6e6e6);
  margin-bottom: 0.5rem;
}
.related-card p {
  font-size: 0.85rem;
  color: var(--text-secondary, #a0a0a0);
  margin: 0;
  line-height: 1.5;
}
