/* RushmoreRADAR shared UI (from index.html) */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#authStatusMessage {
  max-width: 1200px;
  margin: 60px auto 0;
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
}

/* HEADER / NAV */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  gap: 12px;
}


.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f9fafb;
}

.brand span.radar { color: #22d3ee; }

.subtext {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.nav-main {
  display: flex;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}

.nav-main a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  text-decoration: none;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
  white-space: nowrap;
}

.nav-main a.primary {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.nav-main a.logout {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
  background: radial-gradient(circle at top left, rgba(127, 29, 29, 0.4), rgba(15, 23, 42, 0.95));
}

/* Hamburger (mobile) */
.nav-toggle {
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { bottom: 0; }

.nav-toggle.open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars span:nth-child(3) { bottom: 5px; transform: rotate(-45deg); }

/* Shared card/pill system */
.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.98));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 1);
  padding: 18px 20px 20px;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #9ca3af;
}

.pill.good { border-color: rgba(52, 211, 153, 0.85); color: #6ee7b7; }
.pill.bad  { border-color: rgba(248, 113, 113, 0.85); color: #fecaca; }

/* ---------- Mobile nav dropdown (single source of truth) ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-main {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    box-shadow:
      0 18px 30px rgba(15, 23, 42, 0.9),
      0 0 0 1px rgba(15, 23, 42, 1);
    display: none;
    z-index: 20;
  }

  .nav-main.open { display: flex; }
}
