/* ============================================================
   navigation.css — Top Nav, Navbar, Nav Links, Avatar, Brand
   ============================================================ */

/* ── TOP NAV ─────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border, rgba(162,155,254,0.07));
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-tru {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: var(--accent-dark);
  border-radius: var(--radius-xs);
}

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(162,155,254,0.4), rgba(61,224,170,0.3));
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  flex-shrink: 0;
}
.avatar:hover {
  border-color: rgba(162,155,254,0.5);
  box-shadow: 0 0 0 3px rgba(162,155,254,0.12);
  transform: translateY(-1px);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── EUROPYDAS CASE NAVBAR ───────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  background: rgba(7,9,15,0.96);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--nav-border, rgba(61,224,170,0.12));
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

/* Case accent overrides — the 2px bottom border signals the case colour */
.navbar.accent-red   { border-bottom-color: rgba(248,113,113,0.4); }
.navbar.accent-green { border-bottom-color: rgba(61,224,170,0.4); }
.navbar.accent-amber { border-bottom-color: rgba(251,191,36,0.4); }

/* ── NAV LINKS ───────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ── BACK BUTTON ─────────────────────────────────────────── */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--t-fast);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}
.nav-back:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  color: var(--text);
}
.nav-back::before {
  content: '←';
  font-size: 13px;
  opacity: 0.7;
}

/* ── ACTIVE RESEARCHER PILL ──────────────────────────────── */
.active-researchers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(61,224,170,0.07);
  border: 1px solid rgba(61,224,170,0.18);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background var(--t-fast);
  white-space: nowrap;
}
.active-researchers:hover { background: rgba(61,224,170,0.13); }
.active-researchers .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--text);
}

/* ── BRAND / LOGO ────────────────────────────────────────── */
.nav-brand {
  font-family: var(--font-mono, monospace) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: opacity var(--t-fast) !important;
}
.nav-brand:hover { opacity: 0.85 !important; }
.nav-brand::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* ── BRAND WORDMARK (landing page) ──────────────────────── */
.brand-wordmark {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family: var(--font-display, 'Inter', sans-serif);
  color: var(--text);
  line-height: 1;
}
.brand-wordmark .brand-accent {
  color: var(--accent);
}
.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 10px;
}

/* ── LIGHT THEME ─────────────────────────────────────────── */
[data-theme="light"] .top-nav,
[data-theme="light"] .navbar {
  border-bottom-color: var(--nav-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 16px rgba(0,0,0,0.06);
}
[data-theme="light"] .top-nav .nav-logo   { color: var(--primary); }
[data-theme="light"] .navbar .nav-brand   { color: var(--primary) !important; }
[data-theme="light"] .navbar .nav-brand::before { background: var(--primary); box-shadow: none; }
[data-theme="light"] .navbar .nav-back,
[data-theme="light"] .navbar .nav-link    { color: var(--text-dim); }
[data-theme="light"] .nav-tru             { color: var(--accent); }
