/* bottom-nav.css — mobile tab bar (Play Vision pattern) */

:root {
  --bottom-nav-height: 4.5rem;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-header);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    padding: var(--space-xs) 0 var(--safe-bottom);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px color-mix(in srgb, var(--color-text) 12%, transparent);
  }

  .page-wrapper {
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  }

  .messenger-bar {
    bottom: calc(var(--bottom-nav-height) + var(--space-md) + var(--safe-bottom));
  }
}

.bottom-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: var(--touch-min);
  padding: var(--space-xs) 2px;
  color: var(--color-text-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item.is-active {
  color: var(--color-text);
}

.bottom-nav__icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
