/**
 * Mobile fixed bottom tab bar (.aiz-mobile-bottom-nav).
 * Equal-width flex items, theme primary active state, safe-area inset.
 */

.aiz-mobile-bottom-nav {
  --mbn-surface: #f8f9fb;
  --mbn-border: rgba(15, 23, 42, 0.09);
  --mbn-shadow: 0 -6px 28px rgba(15, 23, 42, 0.1);
  --mbn-muted: #64748b;
  --mbn-active: var(--primary, #e91e8c);
  --mbn-focus-ring: color-mix(in srgb, var(--primary, #e91e8c) 35%, transparent);

  background-color: var(--mbn-surface);
  border-top: 1px solid var(--mbn-border);
  box-shadow: var(--mbn-shadow);
  border-radius: 14px 14px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Above page chrome; align with common Bootstrap fixed-bottom stacking */
  z-index: 1030;
}

.aiz-mobile-bottom-nav__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 3.5rem;
}

.aiz-mobile-bottom-nav__link {
  touch-action: manipulation;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.2rem 0.5rem;
  text-decoration: none !important;
  color: var(--mbn-muted) !important;
  transition:
    color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.aiz-mobile-bottom-nav__link:hover,
.aiz-mobile-bottom-nav__link:focus {
  color: var(--mbn-active) !important;
  outline: none;
}

.aiz-mobile-bottom-nav__link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--mbn-focus-ring);
  border-radius: 8px;
}

.aiz-mobile-bottom-nav__link--active {
  color: var(--mbn-active) !important;
  font-weight: 600;
}

.aiz-mobile-bottom-nav__link--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--mbn-active);
}

.aiz-mobile-bottom-nav__iconWrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
}

.aiz-mobile-bottom-nav__icon {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.92;
}

.aiz-mobile-bottom-nav__link--active .aiz-mobile-bottom-nav__icon {
  opacity: 1;
}

.aiz-mobile-bottom-nav__label {
  display: block;
  max-width: 100%;
  padding: 0 0.1rem;
  font-size: 0.625rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aiz-mobile-bottom-nav__link--active .aiz-mobile-bottom-nav__label {
  font-weight: 700;
}

.aiz-mobile-bottom-nav__avatar {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.aiz-mobile-bottom-nav__link--active .aiz-mobile-bottom-nav__avatar {
  border-color: color-mix(in srgb, var(--mbn-active) 45%, transparent);
}

/* Badges sit on icon stack (matches prior absolute-top-right pattern) */
.aiz-mobile-bottom-nav .badge-sm {
  font-size: 0.65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  padding: 0 0.2rem;
}
