/* Global Emotions Index — SEO Content Pages v1.0 */

/* ─── Design Tokens ─────────────────────────────────── */
:root {
  --bg:            #07070d;
  --bg-card:       #0c0c16;
  --bg-card-alt:   #10101e;
  --border:        #1c1c30;
  --border-strong: #282840;
  --accent:        #6366f1;
  --accent-soft:   #818cf8;
  --accent-deep:   #3730a3;
  --text:          #eeeef8;
  --text-soft:     #8888b4;
  --text-muted:    #42425a;
  --green:         #34d399;
  --yellow:        #fbbf24;
  --red:           #f87171;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.1);
}

/* ─── Layout ─────────────────────────────────────────── */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; padding: 2rem 1.25rem 3rem; gap: 2rem; }
  .content-aside { order: -1; }
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb-sep { opacity: 0.5; }

/* ─── Tags & Badges ──────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-soft);
  font-weight: 500;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  padding: 0.2rem 0.625rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── Article Meta ───────────────────────────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

/* ─── Article Content ────────────────────────────────── */
.content-article h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.content-article section { margin-bottom: 3rem; }
.content-article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}
.content-article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 0.625rem;
  margin-top: 1.75rem;
}
.content-article p { color: var(--text-soft); margin-bottom: 1rem; line-height: 1.8; }
.content-article p:last-child { margin-bottom: 0; }
.content-article strong { color: var(--text); font-weight: 600; }
.content-article ul, .content-article ol {
  color: var(--text-soft);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-article li { margin-bottom: 0.5rem; line-height: 1.7; }
.content-article a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(129, 140, 248, 0.35);
  transition: color 0.15s, border-color 0.15s;
}
.content-article a:hover { color: var(--text); border-color: var(--accent-soft); }

/* ─── Info & Warning Boxes ───────────────────────────── */
.info-box {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.info-box p { margin-bottom: 0; }
.warning-box {
  background: rgba(251, 191, 36, 0.05);
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.warning-box p { color: #c8a74f; margin-bottom: 0; }

/* ─── Stats Grid ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Table ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(12, 12, 22, 0.5); }
.check { color: var(--green); font-weight: 600; }
.cross  { color: var(--red); }
.partial { color: var(--yellow); }

/* ─── Region List ────────────────────────────────────── */
.region-list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.region-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.region-list li:last-child { border-bottom: none; }
.region-list li:nth-child(even) { background: rgba(12, 12, 22, 0.4); }
.region-name { font-weight: 500; color: var(--text); font-size: 0.9375rem; }
.region-sub  { font-size: 0.8125rem; color: var(--text-muted); }
.score-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 5px;
  white-space: nowrap;
}
.score-positive { background: rgba(52, 211, 153, 0.1); color: var(--green); }
.score-neutral  { background: rgba(251, 191, 36, 0.1);  color: var(--yellow); }
.score-negative { background: rgba(248, 113, 113, 0.1); color: var(--red); }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.faq-a { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.75; margin: 0; }
.faq-a a { color: var(--accent-soft); text-decoration: none; border-bottom: 1px solid rgba(129,140,248,0.3); }

/* ─── CTA Section ────────────────────────────────────── */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  text-align: center;
  margin-top: 1rem;
}
.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}
.cta-section p { color: var(--text-soft); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}
.primary-btn:hover {
  background: var(--accent-soft);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
  transform: translateY(-1px);
  border-color: transparent;
}
.secondary-btn {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-strong) !important;
}
.secondary-btn:hover {
  background: rgba(99,102,241,0.08);
  color: var(--text);
  border-color: rgba(99,102,241,0.4) !important;
}

/* ─── Aside ──────────────────────────────────────────── */
.content-aside { position: sticky; top: 76px; }
.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.375rem;
  margin-bottom: 1.25rem;
}
.aside-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.aside-links { list-style: none; padding: 0; }
.aside-links li { border-bottom: 1px solid var(--border); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  display: block;
  padding: 0.625rem 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.15s;
}
.aside-links a:hover { color: var(--accent-soft); }
.aside-stat { text-align: center; padding: 0.625rem 0; }
.aside-stat + .aside-stat { border-top: 1px solid var(--border); }
.aside-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.aside-stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer p { font-size: 0.8125rem; color: var(--text-muted); }
.site-footer a { color: var(--text-soft); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { padding: 1.5rem 1.25rem; }
}
