/* ==========================================================================
   maps-visualization.github.io — Common styles (header, footer, landing)
   ========================================================================== */

:root {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-orange: #f59e0b;
  --accent-orange-hover: #d97706;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--panel-soft);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

code {
  background: var(--panel-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--bg);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.site-brand:hover { text-decoration: none; color: #fff; }
.site-brand-sub {
  font-weight: 400;
  font-size: 13px;
  color: #94a3b8;
}
.site-nav {
  display: flex;
  gap: 18px;
}
.site-nav a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; }

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 16px 22px;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer a { font-weight: 500; }

/* ---------- Main container ---------- */
.page {
  flex: 1;
  width: 100%;
  padding: 20px 22px 32px;
}
.page-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Landing page ---------- */
.landing-hero {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 820px;
  margin: 0 auto;
}
.landing-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.landing-hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 30px auto 0;
}
.landing-card {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg) 100%);
  color: #fff;
  padding: 32px 28px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  color: #fff;
}
.landing-card .emoji {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
}
.landing-card h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.landing-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.landing-card .cta {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent) 100%);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ---------- Section intros ---------- */
.section-intro {
  max-width: 960px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.section-intro p { margin: 0 0 0.7rem; }

.section-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.btn-primary {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent) 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  color: #fff !important;
}

.callout {
  padding: 10px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.92rem;
  color: #1e3a8a;
  margin: 12px 0;
}
.callout a { color: #1d4ed8; font-weight: 600; }
