/* MobileNav.css — navigasi bawah ponsel (lihat MobileNav.js). */

.mobile-nav {
  display: none;
}

@media (max-width: 899px) {
  .mobile-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 6px var(--space-2) env(safe-area-inset-bottom, 0px);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font: 500 11px/1.1 var(--font-body);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav__item .ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
  }

  .mobile-nav__item:active .ui-icon {
    background: var(--bg-hover);
  }

  .mobile-nav__item:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: -2px;
  }

  .mobile-nav__item--active {
    color: var(--text-primary);
  }

  .mobile-nav__item--active .ui-icon {
    background: rgb(var(--accent-rgb) / 0.16);
    color: var(--accent-copper);
  }
}
