/* Mobile Bottom Navigation - matches site dark theme and blue accent */

:root {
  --nav-height: 64px;
  --nav-bg: #0f1421; /* dark background to match site */
  --nav-fg: #a1a8b3; /* muted text */
  --nav-active: #2763E7; /* site blue */
  --nav-shadow: 0 -6px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  body { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }

  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030; /* above content */
    box-shadow: var(--nav-shadow);
  }

  .mobile-bottom-nav .mobile-safe-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav .mobile-nav-gradient {
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 16px;
    background: linear-gradient(to top, rgba(15,20,33,0.9), rgba(15,20,33,0));
    pointer-events: none;
  }

  .mobile-bottom-nav .mobile-nav-item {
    flex: 1 1 0;
    text-align: center;
    color: var(--nav-fg);
    text-decoration: none;
    padding-top: 8px;
  }

  .mobile-bottom-nav .mobile-nav-item .icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
  }

  .mobile-bottom-nav .mobile-nav-item .label {
    display: block;
    font-size: 12px;
    white-space: nowrap;
  }

  .mobile-bottom-nav .mobile-nav-item.active {
    color: var(--nav-active);
  }

  .mobile-bottom-nav .mobile-nav-indicator {
    position: absolute;
    bottom: env(safe-area-inset-bottom, 0px);
    height: 2px;
    background: var(--nav-active);
    border-radius: 2px;
    left: 0;
    width: 0;
    transform: translateX(0);
    transition: transform 160ms ease, width 160ms ease;
  }
}