/* ============================== */
/*  FyreAnalytics Blog Styles     */
/*  Shared across all blog pages  */
/* ============================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg: #0a0a0f;
  --clr-surface: #111118;
  --clr-surface-2: #1a1a24;
  --clr-border: #2a2a3a;
  --clr-text: #e4e4ed;
  --clr-text-muted: #8888a0;
  --clr-primary: #f97316;
  --clr-primary-soft: rgba(249, 115, 22, 0.12);
  --clr-accent: #fb923c;
  --clr-glow: rgba(249, 115, 22, 0.25);
  --clr-white: #ffffff;
  --clr-green: #22c55e;
  --clr-red: #ef4444;
  --clr-blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
  --article-max-w: 820px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================== */
/*  Navigation (same as main)     */
/* ============================== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--clr-border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--clr-primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--clr-text); }
.nav-links a.active { color: var(--clr-primary); }
.nav-cta { padding: 10px 24px; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--clr-text); cursor: pointer; }

/* ============================== */
/*  Buttons                       */
/* ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 0 32px var(--clr-glow);
}
.btn-primary:hover { background: var(--clr-accent); transform: translateY(-2px); box-shadow: 0 0 48px var(--clr-glow); }
.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ============================== */
/*  Badge                         */
/* ============================== */
.badge {
  display: inline-block;
  background: var(--clr-primary-soft);
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================== */
/*  Blog Index Page               */
/* ============================== */
.blog-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--clr-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.blog-hero h1 span { color: var(--clr-primary); }
.blog-hero p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 100px;
}
.blog-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 28px; }
.blog-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-card-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--clr-surface-2);
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.blog-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.blog-card-link {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.blog-card-link:hover { color: var(--clr-accent); }

/* ============================== */
/*  Article Page                  */
/* ============================== */
.article-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--clr-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.25;
}
.article-hero-inner {
  max-width: var(--article-max-w);
  margin: 0 auto;
  position: relative;
}
.article-hero .badge { margin-bottom: 20px; }
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.article-hero h1 span { color: var(--clr-primary); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-bottom: 32px;
}
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clr-border); }

.article-cover {
  width: 100%;
  max-width: var(--article-max-w);
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}
.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Article Content */
.article-content {
  max-width: var(--article-max-w);
  margin: 0 auto;
  padding-bottom: 80px;
}
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
  line-height: 1.3;
  color: var(--clr-white);
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--clr-text);
}
.article-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 20px;
}
.article-content a {
  color: var(--clr-primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.article-content a:hover { border-bottom-color: var(--clr-primary); }
.article-content strong { color: var(--clr-white); font-weight: 600; }
.article-content em { color: var(--clr-text-muted); }

.article-content ul, .article-content ol {
  margin: 16px 0 24px 0;
  padding-left: 0;
}
.article-content ul li, .article-content ol li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
}
.article-content ol {
  counter-reset: ol-counter;
}
.article-content ol li {
  counter-increment: ol-counter;
}
.article-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 4px;
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Blockquote */
.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--clr-primary);
  background: var(--clr-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p {
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* Highlight Box / Callout */
.callout {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--clr-primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
}
.callout h4 {
  color: var(--clr-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout p {
  color: var(--clr-text);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Info Box */
.info-box {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.info-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-white);
}
.info-box p, .info-box li {
  font-size: 0.95rem;
}

/* Stat Cards Row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

/* Feature Highlight */
.feature-highlight {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  margin: 24px 0;
  padding: 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-highlight:hover { border-color: rgba(249, 115, 22, 0.3); }
.feature-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--clr-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-highlight h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-highlight p { font-size: 0.92rem; color: var(--clr-text-muted); margin-bottom: 0; }

/* Comparison Table */
.comparison-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.comparison-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--clr-border);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.comparison-table tr:hover td { background: rgba(249, 115, 22, 0.04); }
.comparison-table .check { color: var(--clr-green); }
.comparison-table .cross { color: var(--clr-red); }
.comparison-table .highlight-col { background: rgba(249, 115, 22, 0.06); }

/* Article CTA */
.article-cta {
  text-align: center;
  padding: 60px 40px;
  margin: 56px 0 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02));
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, var(--clr-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}
.article-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  position: relative;
  color: var(--clr-white);
}
.article-cta p {
  color: var(--clr-text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
  position: relative;
}
.article-cta .btn {
  position: relative;
  background: var(--clr-white);
  color: #0a0a0f;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
  font-weight: 700;
}
.article-cta .btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 0 48px var(--clr-glow);
  transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
  padding: 80px 0;
  border-top: 1px solid var(--clr-border);
}
.related-articles h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--clr-white);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Table of Contents */
.toc {
  margin: 0 0 48px;
  padding: 28px 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.toc h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}
.toc ol {
  counter-reset: toc-counter;
  padding-left: 0;
}
.toc ol li {
  counter-increment: toc-counter;
  padding: 6px 0 6px 24px;
  position: relative;
}
.toc ol li::before {
  content: counter(toc-counter) '.';
  position: absolute;
  left: 0;
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.88rem;
}
.toc ol li a {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}
.toc ol li a:hover { color: var(--clr-primary); }

/* ============================== */
/*  Footer                        */
/* ============================== */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-weight: 700; font-size: 1.1rem; }
.footer-logo span { color: var(--clr-primary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--clr-text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--clr-text); }
.footer-copy { font-size: 0.8rem; color: var(--clr-text-muted); }

/* ============================== */
/*  Responsive                    */
/* ============================== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 24px;
    gap: 16px;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .article-cover img { height: 240px; }
  .article-cta { padding: 40px 24px; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 10px; }
}

/* ============================== */
/*  Animations                    */
/* ============================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
