/**
 * ============================================================================
 * mobile-tab-bar.css — Bottom tab bar (mobile app shell)
 * ============================================================================
 *
 * PURPOSE:
 *   Fixed bottom bar with Home | Menu | Settings. Visible only below
 *   the desktop breakpoint (768px). Safe area inset for notched devices.
 *
 * BEM STRUCTURE:
 *   .tab-bar           — Fixed bottom container
 *   .tab-bar__list     — Flex row of items
 *   .tab-bar__item     — Single tab
 *   .tab-bar__link     — Link (Home) or button (Menu, Settings)
 *   .tab-bar__link--active — Current page (Home when on /)
 *
 * ============================================================================
 */

.tab-bar {
  display: none;
}

@media (max-width: 767px) {
  .tab-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background-color: var(--color-bg);
    border-top: var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  }

  .tab-bar__list {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
  }

  .tab-bar__item {
    flex: 1;
  }

  .tab-bar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    width: 100%;
    min-height: 56px;
    padding: var(--space-sm) var(--space-xs);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .tab-bar__link:hover,
  .tab-bar__link:focus-visible {
    color: var(--color-accent);
    background-color: var(--color-surface);
    outline: none;
  }

  .tab-bar__link--active {
    color: var(--color-accent);
  }

  .tab-bar__link .icon {
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
  }
}
