/* Modern Enhanced Design System with Interactive UI Components */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #4c1d95;
  --primary-light: #7c3aed;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  width: 0%; z-index: 9999; transition: width 0.1s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-bar {
  background-color: #06182c; color: #94a3b8; font-size: 0.85rem; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}

.site-header {
  background-color: var(--primary); color: #ffffff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-badge {
  background: var(--secondary); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px;
}
.logo-text span { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; color: #fff; font-family: var(--font-heading); }
.logo-text small { display: block; font-size: 0.7rem; color: #94a3b8; letter-spacing: 0.5px; }

.main-nav ul { display: flex; list-style: none; gap: 8px; align-items: center; }
.main-nav a {
  color: #cbd5e1; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: 6px; transition: all 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: #ffffff; background-color: rgba(255,255,255,0.1); }
.nav-cta { background-color: var(--accent) !important; color: #fff !important; }
.nav-cta:hover { opacity: 0.9; }

.hero-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
  color: #fff; padding: 60px 0 70px; text-align: center;
}
.hero-badge {
  display: inline-block; background: rgba(124, 58, 237, 0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 50px; margin-bottom: 20px; text-transform: uppercase;
}
.hero-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.hero-desc { font-size: 1.1rem; color: #cbd5e1; max-width: 820px; margin: 0 auto 30px; line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 40px 0; }
.post-card {
  background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-category { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; margin-bottom: 10px; }
.card-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; color: var(--primary); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--secondary); }
.card-excerpt { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #94a3b8; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.read-more { color: var(--secondary); font-weight: 700; text-decoration: none; font-size: 0.9rem; }

/* Article Layout */
.article-container { max-width: 880px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-md); }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.article-header { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 30px; }
.article-header h1 { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; color: var(--primary); line-height: 1.35; margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }

/* 1. Fact-Check Verdict Box */
.verdict-box {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 24px; margin: 24px 0 32px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.verdict-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--secondary);
}
.verdict-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.verdict-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.verdict-badge {
  font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.verdict-badge.verified { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.verdict-badge.warning { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.verdict-badge.info { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.verdict-summary { font-size: 0.95rem; color: #334155; line-height: 1.65; margin: 0; }

/* 2. Interactive Table of Contents (TOC) */
.dynamic-toc {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 28px 0;
}
.toc-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.toc-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.toc-toggle { font-size: 0.85rem; color: var(--secondary); font-weight: 600; }
.toc-list { list-style: none; margin-top: 14px; padding-left: 0; max-height: 400px; overflow-y: auto; }
.toc-list li { margin-bottom: 8px; }
.toc-list li.toc-h3 { padding-left: 18px; font-size: 0.9rem; }
.toc-list a { color: #475569; text-decoration: none; transition: color 0.2s; font-size: 0.92rem; }
.toc-list a:hover, .toc-list a.active { color: var(--secondary); font-weight: 600; }

/* Article Content & Typography */
.article-content { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.article-content h2 { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 800; color: var(--primary); margin: 40px 0 16px; scroll-margin-top: 80px; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary-light); margin: 30px 0 14px; scroll-margin-top: 80px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; }
.article-content li { margin-bottom: 8px; }

/* 3. Alerts & Fact Boxes */
.fact-box {
  background: #f0fdf4; border-left: 5px solid #22c55e; padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 28px 0;
}
.warning-box {
  background: #fef2f2; border-left: 5px solid #ef4444; padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 28px 0;
}
.alert-title { font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.fact-box .alert-title { color: #15803d; }
.warning-box .alert-title { color: #b91c1c; }

/* 4. Document Preview Viewer Box */
.doc-preview-box {
  background: #ffffff; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px; margin: 30px 0;
  display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow-sm);
}
.doc-icon { width: 56px; height: 56px; border-radius: 10px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.doc-info h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--primary); margin-bottom: 4px; }
.doc-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 8px; }
.doc-link { font-size: 0.85rem; font-weight: 700; color: var(--secondary); text-decoration: none; }

/* 5. Data Tables Responsive */
.data-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.95rem; background: #fff; box-shadow: var(--shadow-sm); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 14px 18px; text-align: left; }
.data-table th { background-color: #f8fafc; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.data-table tr:hover { background-color: #f1f5f9; }

/* 6. FAQ Accordion Animated */
.faq-section { margin-top: 50px; font-family: var(--font-heading); }
.faq-section h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; transition: all 0.2s; }
.faq-question {
  padding: 18px 22px; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;
}
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--secondary); transition: transform 0.2s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 22px 22px; color: #475569; font-size: 0.96rem; line-height: 1.7; font-family: var(--font-body); }
.faq-item.active .faq-answer { display: block; }
.faq-item.active { border-color: var(--secondary); box-shadow: var(--shadow-sm); }

/* 7. Verified Author Card EEAT */
.author-box {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-top: 40px;
  display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.author-info h4 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--primary); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.author-badge-verified { background: #dcfce7; color: #15803d; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.author-info p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Footer */
.site-footer { background-color: #06182c; color: #94a3b8; padding: 50px 0 30px; font-size: 0.9rem; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { color: #ffffff; font-size: 1.05rem; margin-bottom: 16px; font-weight: 700; font-family: var(--font-heading); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 0.82rem; }

.menu-toggle { display: none; background: transparent; border: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--primary); padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-container { padding: 24px 16px; }
  .hero-title { font-size: 1.7rem; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 0.88rem; }
}
