/* fullsndr.css -- Master stylesheet for all fullsndr pages
   Single source of truth for brand colors, layout, components, and animations.
   Loaded via <link rel="stylesheet" href="/static/fullsndr.css">
*/

/* ── Brand Tokens ─────────────────────────────────────────────── */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-amber: #F59E0B;
  --color-coral: #EF4444;
  --color-teal: #0D6B5E;
  --color-green: #16A34A;
  --color-bg: #FAFCFF;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #334155;
  --color-text-secondary: #64748B;
  --color-text-heading: #0F172A;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Animated Logo ────────────────────────────────────────────── */
@keyframes fs-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fs-race {
  0% { left: -40%; }
  100% { left: 120%; }
}
.fs-logo {
  display: inline-block;
  background: linear-gradient(90deg, #0D6B5E, #2563EB, #F59E0B, #EF4444, #0D6B5E);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fs-glow 6s ease-in-out infinite;
  position: relative;
  font-weight: 800;
}
.fs-logo::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.4), transparent);
  animation: fs-race 3s ease-in-out infinite;
  pointer-events: none;
}

/* ── Public Nav (trail pages, directory, blog) ────────────────── */
.nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav .brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text-heading);
  text-decoration: none;
}
.nav .brand:hover { text-decoration: none; }
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 20px;
}
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-links .cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber));
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.nav-links .cta:hover { filter: brightness(1.05); text-decoration: none; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Subscriber Nav (dashboard /my/* pages) ───────────────────── */
.sub-nav { background: #0F172A; }
.sub-nav-bar {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 20px;
}
.sub-nav-logo {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.sub-nav-logo:hover { text-decoration: none; }
.sub-nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.sub-nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
}
.sub-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.sub-nav-drawer { display: none; }
.sub-nav-link {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.sub-nav-link:hover, .sub-nav-link.active { color: #F59E0B; text-decoration: none; }
.sub-drawer-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Auth Nav (signup, login, verify) ─────────────────────────── */
.brand-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}
.brand-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand-nav-logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.brand-nav-logo:hover { text-decoration: none; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card h2 {
  font-size: 18px;
  color: var(--color-text-heading);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-open { background: #DCFCE7; color: #166534; }
.badge-closed { background: #FEE2E2; color: #991B1B; }
.badge-unknown { background: #f3f4f6; color: #6b7280; }
.badge-live { background: #DCFCE7; color: #166534; }
.badge-managed { background: #dbeafe; color: #1e40af; }
.badge-listed { background: #FEF3C7; color: #92400e; }
.badge-free { background: #DCFCE7; color: #166534; }
.badge-pro { background: #FEF3C7; color: #92400E; }

/* ── Stat Grid ────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.stat {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.stat .val { font-size: 24px; font-weight: 700; color: var(--color-primary); }
.stat .label { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }

/* ── CTA Box ──────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: white;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin: 20px 0;
}
.cta-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-box p { opacity: 0.85; margin-bottom: 16px; font-size: 14px; }
.cta-box input {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  max-width: 280px;
  margin: 4px;
  outline: none;
}
.cta-box input::placeholder { color: rgba(255,255,255,0.5); }
.cta-box input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }
.cta-box button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber));
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.cta-box button:hover { filter: brightness(1.05); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber));
  color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,0.3); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); }

/* ── Hero Sections ────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.85) 100%);
}
.hero-scraped { background-color: #0F172A; color: white; }
.hero-managed { background-color: #1e3a8a; color: white; }
.hero-listed { background-color: #334155; color: white; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.hero .loc { opacity: 0.85; font-size: 16px; }
.hero .hero-sub {
  opacity: 0.75;
  font-size: 14px;
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 720px; margin: 0 auto; padding: 24px; }

/* ── Forms ─────────────────────────────────────────────────────── */
.field-error { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
.error-msg { color: #EF4444; font-size: 11px; margin-top: -10px; margin-bottom: 8px; display: none; }

/* ── Claim Box ────────────────────────────────────────────────── */
.claim-box {
  background: #FFFBEB;
  border: 2px solid #FDE68A;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.claim-box h3 { font-size: 18px; color: #92400e; margin-bottom: 8px; font-weight: 700; }
.claim-form label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text); margin-top: 12px; margin-bottom: 4px; }
.claim-form input, .claim-form select, .claim-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.claim-form input:focus, .claim-form select:focus, .claim-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.claim-form textarea { height: 80px; resize: vertical; }
.claim-form button {
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ── Nearby Trails Grid ───────────────────────────────────────── */
.nearby {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.nearby a {
  display: block;
  padding: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.nearby a:hover { border-color: var(--color-primary); text-decoration: none; }
.nearby .name { font-weight: 600; font-size: 14px; }
.nearby .city { font-size: 12px; color: var(--color-text-secondary); }

/* ── Footer ───────────────────────────────────────────────────── */
.tp-footer {
  background: #0F172A;
  color: rgba(255,255,255,0.4);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  margin-top: 48px;
}
.tp-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.tp-footer a:hover { color: rgba(255,255,255,0.8); }

/* ── Info Row ─────────────────────────────────────────────────── */
.info-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.info-row .item { font-size: 14px; }
.info-row .item .label { color: var(--color-text-secondary); font-size: 12px; }

/* ── Grid ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 12px; }

/* ── Success / Error Messages ─────────────────────────────────── */
.success-msg {
  background: #DCFCE7;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 12px 16px;
  color: #166534;
  font-size: 14px;
  margin-bottom: 16px;
}
.error-banner {
  background: #FEE2E2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  color: #991B1B;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── IMBA Badge ───────────────────────────────────────────────── */
.badge-imba { background: #1a3a2a; color: #8fc98f; border: 1px solid #2d5a3d; }
.imba-designation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a3a2a, #2d5a3d);
  border-radius: 10px;
  margin: 12px 0;
}
.imba-designation img { height: 28px; width: auto; }
.imba-designation .imba-text { color: #e0f0e0; font-size: 13px; line-height: 1.4; }
.imba-designation .imba-text strong { color: #ffffff; font-weight: 700; }
.imba-designation .imba-text a { color: #8fc98f; text-decoration: underline; text-underline-offset: 2px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Public nav mobile */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 12px 24px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 15px;
    margin-left: 0;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Subscriber nav mobile */
  .sub-nav-desktop { display: none; }
  .sub-nav-toggle { display: flex; }
  .sub-nav-drawer.open {
    display: block;
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
