/* InflationMultiplier.com — Shared Stylesheet */

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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #222636;
  --border: #2e3347;
  --accent: #6366f1;
  --accent2: #f43f5e;
  --accent3: #10b981;
  --text: #e2e8f0;
  --muted: #8892a4;
  --radius: 12px;
  --nav-height: 60px;
}

[data-theme="light"] {
  --bg: #f0f4ff;
  --surface: #ffffff;
  --surface2: #e8edf8;
  --border: #c8d0e8;
  --text: #111827;
  --muted: #5a6480;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Navigation ── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--text); background: var(--surface2); }

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  min-width: 190px;
  padding: 6px;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--surface2); color: var(--text); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.15rem;
  padding: 4px 10px;
  cursor: pointer;
  margin-left: 8px;
  line-height: 1;
}
@media (max-width: 780px) {
  .nav-hamburger { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 10px 12px; }
  .has-dropdown .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 16px;
    background: transparent;
  }
  .dropdown li a { font-size: 0.82rem; }
}

/* ── Theme toggle ── */
.theme-toggle {
  position: fixed;
  top: 11px;
  right: 16px;
  z-index: 1000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: border-color 0.2s, transform 0.2s;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }

/* ── Page header ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 44px 16px 36px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-header h1 em { color: var(--accent); font-style: normal; }
.page-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}
.page-header .breadcrumbs {
  justify-content: center;
  margin-bottom: 16px;
}

/* ── Content wrappers ── */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.wide-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .sep { opacity: 0.5; }

/* ── Content sections ── */
.content-section { margin: 36px 0; }
.content-section:first-child { margin-top: 0; }

.content-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.content-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}
.content-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
}
.content-section p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 14px;
}
.content-section ul, .content-section ol {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 22px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.content-section li { margin-bottom: 5px; }
.content-section a { color: var(--accent); }
.content-section a:hover { text-decoration: underline; }
.content-section strong { color: var(--text); }
.content-section code {
  background: var(--surface2);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--accent3);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.info-card .icon { font-size: 1.4rem; margin-bottom: 8px; }
.info-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ── Stat boxes ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-box .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 5px;
}
.stat-box .desc {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.table-wrap th {
  background: var(--surface2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.table-wrap td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.table-wrap tr:hover td { background: var(--surface2); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
details[open] { border-color: var(--accent); }
summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
.faq-body {
  padding: 12px 16px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-body code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--accent3);
}

/* ── Formula / code boxes ── */
.formula-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--accent3);
  line-height: 1.8;
  overflow-x: auto;
}

/* ── Notice / callout ── */
.notice {
  background: rgba(16,185,129,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent3);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}
.notice strong { color: var(--text); }
.notice-warn {
  background: rgba(244,63,94,0.06);
  border-left-color: var(--accent2);
}
.notice-info {
  background: rgba(99,102,241,0.07);
  border-left-color: var(--accent);
}

/* ── Country grid ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.country-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.country-card .flag { font-size: 2rem; margin-bottom: 10px; display: block; }
.country-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.country-card p { font-size: 0.78rem; color: var(--muted); }

/* ── Section heading ── */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Ad slots ── */
.ad-slot {
  text-align: center;
  width: 100%;
  min-height: 90px;
  margin: 24px 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 16px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}
.footer-col h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Utilities ── */
.text-accent { color: var(--accent); }
.text-green  { color: var(--accent3); }
.text-red    { color: var(--accent2); }
.text-muted  { color: var(--muted); }
.font-bold   { font-weight: 700; }
.text-sm     { font-size: 0.84rem; }
.text-xs     { font-size: 0.75rem; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ── Smooth transitions ── */
body, .card, .info-card, .stat-box, .country-card, details, summary,
.site-footer, .site-nav, .table-wrap th, .table-wrap td {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
