/* ─── Bottom Navigation ─────────────────────────────────────
   Fixed tab bar at the bottom for authenticated app screens.
   Always visible for signed-in users (mobile + desktop) — the
   top header/footer chrome is hidden in markup for signed-in
   users, so bottom-nav is the only navigation surface. Hidden
   in native shells (the host app supplies a real native tab
   bar) — see native.css.
   ──────────────────────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xs) 0;
  padding-bottom: max(var(--space-xs), env(safe-area-inset-bottom));
  z-index: 50;
}

.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-md);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--duration-quick) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-tab:hover {
  color: var(--color-text);
  text-decoration: none;
}

.bottom-nav-tab--active,
.bottom-nav-tab--active:hover {
  color: var(--color-primary);
}

.bottom-nav-tab .icon {
  width: 22px;
  height: 22px;
}

/* ─── Layout adjustments when bottom nav is present */

body.has-bottom-nav main {
  padding-top: var(--space-md) !important;
  padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
  body.has-bottom-nav main {
    padding-top: var(--space-lg) !important;
  }
}

