/* ============================================================
   nmb-theme.css — No More Boo Shared Design System
   Import this on every page. Do NOT override nav, footer,
   body background, or brand colors locally.
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800;900&family=Space+Grotesk:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colors */
  --cyan:       #00F0FF;  /* Ghost Cyan — primary accent */
  --pink:       #FF2D78;  /* Glitch Pink — alerts, seals, CTAs */
  --teal:       #00C4B4;  /* Circuit Teal — success, Pro features */
  --periwinkle: #8B7FC7;  /* Periwinkle Static — Pro badge */

  /* Page chrome */
  --bg:         #0a0e1a;  /* Dark Navy — page background */
  --surface:    #0d1120;
  --surface2:   #121a30;
  --border:     #1a2540;

  /* Text */
  --text:       #c8d8f0;
  --muted:      #4a5a7a;

  /* Typography */
  --font-title: 'Orbitron', sans-serif;
  --font-ui:    'Space Grotesk', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
}

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

/* ── BASE ── */
html, body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* scanline overlay — subtle CRT texture on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.010) 2px,
    rgba(0, 240, 255, 0.010) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  color: #0a0e1a;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-right: 1.5rem;
  padding-bottom: 12px;
}
.nav-brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-brand .boo { color: var(--pink); }

.nav-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
  flex: 1;
}

.nav-tab {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 40px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  bottom: -2px;
}
.nav-tab:hover       { background: #f8fafc; color: #0a0e1a; border-color: #e2e8f0; }
.nav-tab.active      { background: #ffffff; color: #0a0e1a; font-weight: 600; border-color: #e2e8f0; border-bottom-color: #ffffff; }

/* right-side auth area */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 8px;
}

.nav-report-btn {
  background: #0a0e1a;
  color: #ffffff;
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.nav-report-btn:hover { background: var(--pink); }

.nav-login-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-login-btn:hover { color: #0a0e1a; border-color: #0a0e1a; }

/* user menu (logged in) */
.nav-user-wrap {
  position: relative;
  display: none;
}
.nav-user-wrap.visible { display: block; }

.nav-user-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #0a0e1a;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.nav-user-btn:hover { border-color: var(--pink); }
.nav-user-btn .caret { font-size: 9px; opacity: 0.6; }

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  display: none;
  z-index: 400;
  overflow: hidden;
}
.nav-dropdown.open { display: block; }

.nav-dropdown a,
.nav-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover { background: #f8fafc; }
.nav-dropdown .danger { color: var(--pink); }
.nav-dropdown .divider { height: 1px; background: #f1f5f9; margin: 4px 0; }

/* ── FOOTER ── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-ui);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-mission {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  text-decoration: none;
  font-size: 11px;
  color: #94a3b8;
  transition: color 0.15s;
}
.footer-links a:hover { color: #0a0e1a; }

.footer-copy {
  font-size: 10px;
  color: #cbd5e1;
  white-space: nowrap;
}

/* ── SHARED UTILITY CLASSES ── */

/* Page scaffolding */
.page-wrap  { max-width: 900px;  margin: 0 auto; padding: 3rem 2rem 5rem; flex: 1; width: 100%; }
.page-wide  { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; flex: 1; width: 100%; }
.page-tag   { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.page-title { font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 2.8rem); color: #ffffff; margin-bottom: 0.75rem; }
.page-sub   { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* Buttons */
.btn-primary {
  background: var(--cyan);
  color: #0a0e1a;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.35); color: #ffffff; }

.btn-danger {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
  padding: 8px 18px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(255, 45, 120, 0.1); }

/* Surface cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--cyan); }

/* Badges */
.badge-pro  { background: var(--periwinkle); color: #fff; font-family: var(--font-mono); font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.08em; }
.badge-free { background: var(--border);     color: var(--muted); font-family: var(--font-mono); font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; }
.badge-ent  { background: var(--teal);       color: #0a0e1a; font-family: var(--font-mono); font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; }

/* Section label */
.section-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem; }

/* Empty / loading states */
.state-empty   { font-family: var(--font-mono); color: var(--muted); text-align: center; padding: 3rem; }
.state-loading { font-family: var(--font-mono); color: var(--muted); text-align: center; padding: 3rem; animation: blink 1.5s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .site-nav     { padding: 0 1rem; overflow-x: auto; }
  .nav-tabs     { gap: 0; }
  .site-footer  { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-mission { display: none; }
  .page-wrap, .page-wide { padding: 2rem 1rem 4rem; }
}
