/** Mobile Bottom Nav */

/* Mobile-first base (0-639px): nav visible on mobile. */
.custom-mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 400;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-sm);
  padding-bottom: env(safe-area-inset-bottom);
}

body.has-mobile-nav {
  padding-bottom: calc(65px + env(safe-area-inset-bottom));
}

/* Section: Responsive. Hide nav on tablet/desktop. */
@media (min-width: 1024px) {
  .custom-mobile-bottom-nav {
    display: none;
  }

  body.has-mobile-nav {
    padding-bottom: 0;
  }
}

.custom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
  flex: 1;
  height: 100%;
  transition: color 0.2s ease-in-out;
}

.custom-nav-item.active,
.custom-nav-item:hover {
  color: var(--color-accent);
}

.custom-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-nav-label {
  font-size: 11px;
  font-weight: 500;
  margin-top: var(--spacing-xs);
  color: inherit;
}

/* Section: Badge. */
.custom-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-xs);
  line-height: 1;
}
