/* shared-ui/components/bottom-nav/bottom-nav.css
 *
 * Pill-style bottom navigation bar shared across the four-app family.
 * Reads colors from family-palette.css tokens, so each app paints
 * itself by setting class="app-<name>" on <body>.
 *
 * Class naming uses the cs- prefix to avoid colliding with any per-
 * app inline CSS in the SPA shells.
 */

.cs-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface, #111120);
  border: 1px solid var(--border, #1a1a2e);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font, 'Barlow Condensed', sans-serif);
  max-width: calc(100vw - 16px);
  overflow-x: auto;
  scrollbar-width: none;
}

.cs-bottom-nav::-webkit-scrollbar { display: none; }

.cs-bottom-nav__tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted, #B8A890);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 120ms ease;
  background: transparent;
}

.cs-bottom-nav__tab:hover {
  color: var(--ink, #E8E0DC);
}

.cs-bottom-nav__icon {
  font-size: 18px;
  line-height: 1;
}

.cs-bottom-nav__label {
  line-height: 1;
}

.cs-bottom-nav__tab--active {
  color: var(--accent-2, #C9A84C);
}

.cs-bottom-nav__tab--active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2, #C9A84C);
}
