/*
 * APEX MOTION ENGINE — nav.css
 * Shared nav / topbar styles used by index.html and any page that imports the app shell.
 * All rules are scoped with the .ame- prefix to prevent leaking into component iframes.
 * Generated 2026-05-30 by E14.
 */

/* ─── TOPBAR ──────────────────────────────────────────────────────────────── */

.ame-topbar {
  position: sticky;
  top: 0;
  z-index: 100; /* 100 = above page content, below modals */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(6, 8, 26, 0.94); /* --bg-void at 94% — readable backdrop */
  border-bottom: 1px solid rgba(122, 115, 255, 0.16);
  backdrop-filter: none; /* DO-NOT-CHANGE-EVER: no animated backdrop-filter; static fine but omitted to stay clean */
}

.ame-topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.ame-topbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ame-topbar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--surface-white);
}

.ame-topbar-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid-muted);
  margin-top: 1px; /* 1px = nudge baseline into optical alignment */
}

/* ─── TOPBAR NAV LINKS ────────────────────────────────────────────────────── */

.ame-topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ame-topbar-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-light);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.ame-topbar-nav a:hover,
.ame-topbar-nav a:focus-visible {
  color: var(--accent-lilac);
  outline: none;
}

.ame-topbar-nav a.active {
  color: var(--accent-soft);
}

/* ─── VERSION BADGE ──────────────────────────────────────────────────────── */

.ame-version-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-muted);
  padding: 4px 10px;
  border: 1px solid rgba(99, 91, 255, 0.22);
  border-radius: 20px; /* 20px = pill shape */
  background: rgba(99, 91, 255, 0.06);
  white-space: nowrap;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */

.ame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-top: 1px solid rgba(122, 115, 255, 0.1);
  margin-top: auto;
}

.ame-footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mid-muted);
}

.ame-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ame-footer-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.ame-footer-links a:hover,
.ame-footer-links a:focus-visible {
  color: var(--accent-lilac);
  outline: none;
}

/* ─── BACK LINK (breadcrumb) ─────────────────────────────────────────────── */

.ame-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-light);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.ame-back:hover,
.ame-back:focus-visible {
  color: var(--accent-soft);
  outline: none;
}

.ame-back svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ame-back:hover svg {
  transform: translateX(-3px); /* -3px = left nudge on hover */
}
