/* Index-only bottom navigation (modern/professional) */

.bottom-nav.bottom-nav--index {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom);
  background: transparent;
  z-index: 1030;
}

.bottom-nav.bottom-nav--index::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  backdrop-filter: saturate(170%) blur(14px);
}

.bottom-nav.bottom-nav--index .container {
  position: relative;
  z-index: 1;
}

.bottom-nav.bottom-nav--index .row {
  padding-left: 10px;
  padding-right: 10px;
}

.bottom-nav.bottom-nav--index .nav-link {
  color: rgba(15, 23, 42, 0.62);
  font-size: clamp(0.66rem, 1.7vw, 0.74rem);
  padding: 0.55rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 850;
  border-radius: 16px;
  min-width: 0;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.bottom-nav.bottom-nav--index .nav-link > div:last-child {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.bottom-nav.bottom-nav--index .nav-link .bi {
  font-size: 1.22rem;
  line-height: 1;
}

.bottom-nav.bottom-nav--index .nav-link.active {
  color: rgba(15, 23, 42, 0.62);
  background: transparent;
}

.bottom-nav.bottom-nav--index .nav-link.active .bi {
  color: var(--brand-primary);
}

.bottom-nav.bottom-nav--index .nav-link:active {
  transform: translateY(1px);
}

.bottom-nav.bottom-nav--index .add-fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #1a93ff, #0a84ff);
  box-shadow: 0 18px 40px rgba(10, 132, 255, 0.34);
  transform: translateY(-18px);
  border: 1px solid rgba(0, 0, 0, 0.10);
}

@media (max-width: 380px) {
  .bottom-nav.bottom-nav--index::before {
    left: 12px;
    right: 12px;
    border-radius: 24px;
  }

  .bottom-nav.bottom-nav--index .row {
    padding-left: 8px;
    padding-right: 8px;
  }

  .bottom-nav.bottom-nav--index .nav-link {
    gap: 5px;
    padding: 0.5rem 0.2rem;
  }

  .bottom-nav.bottom-nav--index .nav-link > div:last-child {
    max-width: 62px;
  }

  .bottom-nav.bottom-nav--index .add-fab {
    width: 52px;
    height: 52px;
    transform: translateY(-16px);
  }
}

/* Keep content visible above fixed nav */
.pb-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-total, 88px) + env(safe-area-inset-bottom));
}

.pb-bottom-nav main {
  padding-bottom: calc(var(--bottom-nav-total, 88px) + 24px) !important;
}

