/*
 * FishOrNot.com — Shared Page Stylesheet
 * Applies to: about.html, faq.html, spots/*.html, species pages, and all future content pages
 * Does NOT apply to: index.html (self-contained PWA)
 *
 * SYNC NOTES:
 * - CSS custom properties are mirrored from index.html checkpoint cb5a8e003a2aa6905979a6777a862a00
 * - Google Fonts import is canonical here — do not duplicate <link> tags in HTML pages
 * - When index.html design tokens change, update the :root and [data-theme] blocks below
 * - Version this file with a comment when syncing: e.g. "Synced: 2026-05-15 / MD5 cb5a8e..."
 */

/* ── FONTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&family=Roboto+Condensed:wght@400;700&family=Share+Tech+Mono&display=swap');

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }

/* ── DESIGN TOKENS — LIGHT (default) ───────────────────────────────────── */
/* Exact parity with index.html. Update both files together. */
:root,
[data-theme="light"] {
  --bg:           #F5F7F9;
  --bg2:          #EEF1F5;
  --panel-bg:     #FFFFFF;
  --panel-border: rgba(15,42,68,0.12);
  --text-primary: #0F2A44;
  --text-secondary:#4B5563;
  --text-label:   #6B7280;
  --accent:       #C65A1E;
  --accent-hot:   #C65A1E;
  --accent-dim:   rgba(198,90,30,0.08);
  --divider:      rgba(15,42,68,0.10);
  --input-bg:     rgba(15,42,68,0.04);
  --shadow:       0 2px 12px rgba(15,42,68,0.10);
  --topline:      rgba(198,90,30,0.5);
  --navy:         #0F2A44;

  --qe-color:#2E7D32; --qe-bg:rgba(46,125,50,0.10);   --qe-border:rgba(46,125,50,0.4);
  --qg-color:#1F4E79; --qg-bg:rgba(31,78,121,0.10);   --qg-border:rgba(31,78,121,0.4);
  --qf-color:#C65A1E; --qf-bg:rgba(198,90,30,0.10);   --qf-border:rgba(198,90,30,0.4);
  --qp-color:#6B7280; --qp-bg:rgba(107,114,128,0.08); --qp-border:rgba(107,114,128,0.3);

  --moon-gold: #A44A1A;
  --moon-dark: rgba(15,30,50,0.15);
}

/* ── DESIGN TOKENS — DARK ───────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0A1628;
  --bg2:          #0D1F3C;
  --panel-bg:     rgba(13,28,54,0.97);
  --panel-border: rgba(198,90,30,0.20);
  --text-primary: #E8EDF4;
  --text-secondary:#A8B8CC;
  --text-label:   #6B80A0;
  --accent:       #D4683A;
  --accent-hot:   #D4683A;
  --accent-dim:   rgba(212,104,58,0.12);
  --divider:      rgba(198,90,30,0.15);
  --input-bg:     rgba(0,0,0,0.35);
  --shadow:       0 2px 16px rgba(0,0,0,0.45);
  --topline:      rgba(212,104,58,0.5);
  --navy:         #0F2A44;

  --qe-color:#4CAF50; --qe-bg:rgba(76,175,80,0.14);   --qe-border:rgba(76,175,80,0.5);
  --qg-color:#4db8ff; --qg-bg:rgba(77,184,255,0.12);  --qg-border:rgba(77,184,255,0.4);
  --qf-color:#D4683A; --qf-bg:rgba(212,104,58,0.13);  --qf-border:rgba(212,104,58,0.45);
  --qp-color:#6B80A0; --qp-bg:rgba(42,63,85,0.55);    --qp-border:rgba(107,128,160,0.3);

  --moon-gold: #D4683A;
  --moon-dark: rgba(10,22,40,0.7);
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a1 { opacity:0; animation: fadeUp .5s ease forwards .10s; }
.a2 { opacity:0; animation: fadeUp .5s ease forwards .25s; }
.a3 { opacity:0; animation: fadeUp .5s ease forwards .40s; }
.a4 { opacity:0; animation: fadeUp .5s ease forwards .55s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── NAV + DRAWER — mirrors fn-* classes injected by nav.js ────────────── */
/* Push page content below fixed nav */
body { padding-top: calc(56px + env(safe-area-inset-top,0px)); }

.fn-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(56px + env(safe-area-inset-top,0px));
  padding-top: env(safe-area-inset-top,0px);
  background: #0F2A44;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
[data-theme="dark"] .fn-navbar { background: #0A1628; border-bottom: 1px solid rgba(198,90,30,0.2); }

/* Hamburger */
.fn-hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column;
  gap: 5px; padding: 6px; flex-shrink: 0;
}
.fn-ham-line {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: background .15s;
}
.fn-hamburger:hover .fn-ham-line { background: #C65A1E; }

/* Logo */
.fn-navbar-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  margin-left: 4px;
}
.fn-navbar-logo img { border-radius: 4px; }

/* Right controls */
.fn-navbar-right {
  margin-left: auto;
  display: flex; align-items: center;
  gap: 8px;
}
.fn-lang-wrap { position: relative; }
.fn-lang-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 24px 5px 10px;
  cursor: pointer;
}
.fn-lang-select:focus { outline: none; border-color: #C65A1E; }
.fn-lang-select option { background: #0F2A44; color: #fff; }

.fn-nav-share {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}
.fn-nav-share:hover { background: rgba(198,90,30,0.3); border-color: #C65A1E; }

.fn-theme-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex; align-items: center;
  gap: 5px; white-space: nowrap;
}
.fn-theme-btn:hover { background: rgba(198,90,30,0.3); border-color: #C65A1E; }

/* Eyebrow below nav */
.fn-eyebrow {
  padding: 6px 14px;
  background: rgba(15,42,68,0.05);
  border-bottom: 1px solid var(--panel-border);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-label);
  text-align: center;
}
[data-theme="dark"] .fn-eyebrow { background: rgba(0,0,0,0.2); }

/* Drawer overlay */
.fn-drawer-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1001;
}
.fn-drawer-overlay.open { display: block; }

/* Drawer */
.fn-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #0F2A44;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .fn-drawer { background: #0A1628; border-right: 1px solid rgba(198,90,30,0.2); }
.fn-drawer.open { transform: translateX(0); }

.fn-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fn-drawer-header img { border-radius: 4px; }
.fn-drawer-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.fn-drawer-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.fn-drawer-nav {
  display: flex; flex-direction: column;
  padding: 8px; flex: 1; overflow-y: auto;
}
.fn-drawer-item {
  display: flex; align-items: center;
  gap: 12px; width: 100%;
  background: none; border: none;
  color: #e8edf4;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 15px; font-weight: 400;
  letter-spacing: .5px;
  padding: 13px 14px;
  cursor: pointer; border-radius: 6px;
  text-align: left; transition: background .12s;
  text-decoration: none;
}
.fn-drawer-item:hover { background: rgba(198,90,30,0.2); color: #fff; text-decoration: none; }
.fn-drawer-item:active { opacity: .7; }
.fn-drawer-sep { height: 1px; margin: 10px 16px; background: rgba(255,255,255,0.45); border: 0; flex-shrink: 0; }
.fn-di-icon {
  font-size: 16px; width: 22px;
  text-align: center; color: #C65A1E; flex-shrink: 0;
}

.fn-drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── SHARED TYPOGRAPHY ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.page-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.page-title em { color: var(--accent); font-style: normal; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.body-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 700px;
}
.body-text p + p { margin-top: 16px; }
.body-text strong { color: var(--text-primary); }

/* ── SHARED BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── SHARED ACCORDION (FAQ) ─────────────────────────────────────────────── */
details {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  margin-bottom: 2px;
  overflow: hidden;
  transition: background 0.2s;
}

summary {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after {
  content: '+';
  font-family: 'Share Tech Mono', monospace;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] { background: var(--bg2); }

.faq-answer {
  padding: 0 22px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-answer p + p { margin-top: 12px; }
.faq-answer strong { color: var(--text-primary); }
.faq-answer ul { padding-left: 20px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 0;
}

/* ── PANEL / CARD ───────────────────────────────────────────────────────── */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 24px;
}

/* ── DEFINITION BLOCK ───────────────────────────────────────────────────── */
.definition-block {
  background: var(--panel-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}
.definition-block strong { color: var(--accent); }
.definition-block p + p { margin-top: 14px; }

/* ── STAT BAR ────────────────────────────────────────────────────────────── */
.stat-bar {
  background: var(--bg2);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 40px 24px;
}
.stat-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-label);
  margin-bottom: 10px;
}
.footer-logo .accent { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--text-label);
  font-family: 'Share Tech Mono', monospace;
  opacity: 0.6;
}


/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
  background: var(--bg);
}
.hero-tag {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(198,90,30,0.35);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 720px;
  margin: 0 auto 18px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-cta {
  animation: fadeUp 0.6s 0.3s ease both;
  display: inline-flex;
}

@media (max-width: 600px) {
  .hero { padding: 52px 16px 48px; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .stat-bar { padding: 32px 16px; }
  .panel { padding: 18px; }
  .definition-block { padding: 18px 20px; }
  summary { font-size: 16px; padding: 15px 18px; }
  .faq-answer { padding: 0 18px 16px; }
  .site-footer { padding: 28px 16px; }
}
