/* ─── Bottom Navigation Bar — mobile primary nav (< 600px) ─── */

/* ─── Bottom Navigation Bar — mobile primary nav (Default: Mobile-first) ─── */

#bottomNav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(var(--primary-rgb), .08);
  justify-content: space-around;
  align-items: stretch;
  z-index: 2000;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
  color: var(--text-body);
  text-decoration: none;
  border-top: 2px solid transparent;
  transition: color var(--anim), border-color var(--anim);
  cursor: pointer;
  padding: 8px 4px;
  user-select: none;
}

.bottom-nav__item.active {
  color: var(--primary);
  border-top-color: var(--accent);
}

.bottom-nav__icon {
  font-size: 24px;
  line-height: 1;
}

.bottom-nav__label {
  font-size: 12px; /* UI-R02: 10px → 12px đúng spec */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Padding bottom cho content tránh bị BottomNav che trên Mobile */
#main {
  padding-bottom: calc(60px + env(safe-area-inset-bottom) + 24px);
}

/* Desktop: Ẩn BottomNav và reset padding */
@media (min-width: 600px) {
  #bottomNav {
    display: none;
  }
  
  #main {
    padding-bottom: 24px;
  }
}
