/* =========================================
   TWISTED BLACK — Bottom Tab Bar (App Nav)
   Mobile only — replaces top nav hamburger
   ========================================= */

.tab-bar {
  display: none;
}

@media (max-width: 600px) {
  /* Hide entire top nav on mobile — tab bar handles navigation */
  .top-nav {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  /* Show bottom tab bar */
  .tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #08090C;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 800;
    box-sizing: content-box;
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    min-width: 64px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .tab-item svg {
    width: 21px;
    height: 21px;
  }

  .tab-item span {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .tab-item.active {
    color: #fff;
  }

  /* Mini-player sits flush above the tab bar */
  .mini-player {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Body padding accounts for tab bar + mini-player */
  body {
    padding-bottom: calc(52px + var(--mini-player-height) + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure no gap — extend tab bar background behind mini-player */
  .tab-bar::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--mini-player-height));
    left: 0;
    right: 0;
    height: var(--mini-player-height);
    background: #08090C;
    z-index: -1;
  }
}
