/* ============================================
   BLOG ARTICLE - PREMIUM DESIGN 2026
   ============================================ */

/* Base Variables */
:root {
  --article-primary: #8b5cf6;
  --article-secondary: #00d4ff;
  --article-accent: #ec4899;
  --article-success: #10b981;
  --article-warning: #fbbf24;
  --article-text: rgba(255, 255, 255, 0.85);
  --article-text-muted: rgba(255, 255, 255, 0.6);
  --article-border: rgba(255, 255, 255, 0.1);
}

/* Article Background */
.article-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

/* ============ HERO SECTION ============ */
.article-hero {
  position: relative;
  padding: 9rem 0 4rem;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
  z-index: 10;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--article-secondary);
}

.article-breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* Category Badge */
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--article-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.article-category i {
  font-size: 0.8rem;
}

/* Title */
.article-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.article-title .gradient-word {
  background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Meta Info */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--article-primary);
  font-size: 0.9rem;
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* ============ ARTICLE CONTENT ============ */
.article-content {
  position: relative;
  padding: 4rem 0;
  z-index: 10;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

/* Answer Box - AEO Format */
.answer-box {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-left: 4px solid var(--article-primary);
  border-radius: 0 16px 16px 0;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.answer-box::before {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.answer-box p {
  color: var(--article-text);
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
}

.answer-box strong {
  color: white;
}

/* Article Intro */
.article-intro {
  font-size: 1.2rem;
  color: var(--article-text);
  line-height: 1.9;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--article-border);
}

/* Section Headers */
.article-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--article-secondary);
}

.article-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-section h2 i {
  color: var(--article-primary);
  font-size: 1.25rem;
}

.article-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 2rem 0 1rem;
}

.article-section p {
  color: var(--article-text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Lists */
.article-section ul,
.article-section ol {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.article-section ul li,
.article-section ol li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  color: var(--article-text-muted);
  line-height: 1.7;
}

.article-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--article-secondary), var(--article-primary));
  border-radius: 50%;
}

.article-section ol {
  counter-reset: list-counter;
}

.article-section ol li {
  counter-increment: list-counter;
}

.article-section ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--article-secondary);
}

.article-section li strong {
  color: white;
}

/* Tables */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--article-border);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem;
  text-align: left;
}

.comparison-table th {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(0, 212, 255, 0.1));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--article-text-muted);
  border-top: 1px solid var(--article-border);
}

.comparison-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

/* Stats Box */
.stats-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.stats-box h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--article-secondary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.stats-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-box li {
  padding: 0.5rem 0;
  color: var(--article-text);
}

.stats-box li strong {
  color: var(--article-secondary);
}

/* Formula Box */
.formula-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.formula-box h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--article-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Key Takeaways */
.key-takeaways {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
}

.key-takeaways h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--article-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.key-takeaways p {
  color: var(--article-text);
  line-height: 1.8;
  margin: 0;
}

/* ============ CTA SECTION ============ */
.article-cta {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--article-primary), var(--article-secondary), var(--article-accent));
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-box h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--article-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
  color: white;
}

.cta-btn i {
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(5px);
}

/* ============ RELATED ARTICLES ============ */
.related-articles {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.related-header {
  text-align: center;
  margin-bottom: 3rem;
}

.related-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--article-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.related-card h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.related-card p {
  color: var(--article-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .article-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding: 8rem 0 3rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-meta {
    gap: 1rem;
  }

  .meta-divider {
    display: none;
  }

  .answer-box {
    padding: 1.5rem;
  }

  .answer-box p {
    font-size: 1.05rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem;
  }

  .cta-box {
    padding: 2rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-section h2 {
    font-size: 1.35rem;
  }

  .stats-box,
  .formula-box,
  .key-takeaways {
    padding: 1.5rem;
  }
}
