/* =====================================================
   Bottom Navigation — floating, hidden until 10% scroll
   Border radius 32px, glass background
   ===================================================== */
.bottomnav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.bottomnav-wrap.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* On desktop, pin inside the phone mockup */
@media (min-width: 520px) {
  .bottomnav-wrap {
    left: 50%;
    transform: translate(-50%, 120px);
    width: min(100vw, calc(100vh * 9 / 16));
    max-width: 440px;
  }
  .bottomnav-wrap.is-visible {
    transform: translate(-50%, 0);
  }
}

.bottomnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 32px;
  pointer-events: auto;
  min-width: 280px;
}

.nav-btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 24px;
  transition: background 0.18s ease, transform 0.12s ease;
  color: var(--color-white);
  min-height: 40px;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav-btn:active { transform: scale(0.96); }

.nav-btn img {
  max-width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
}

/* Center "eyes" button is icon-only and slightly larger */
.nav-btn.is-center {
  flex: 0 0 auto;
  padding: 6px 6px;
}

.nav-btn.is-center img {
  max-width: 64px;
}

.nav-btn.is-active {
  background: rgba(255, 179, 0, 0.155);
  border: 1px solid rgba(191, 138, 23, 0.388);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* =====================================================
   Narrow viewports (iPhone SE ~375px and smaller)
   - Reduce wrapper padding so the pill doesn't hug
     the screen edges.
   - Shrink the eye icon and tighten internal gaps so
     the side pills (Sangha / Panjika) keep enough room
     for their labels.
   ===================================================== */
@media (max-width: 400px) {
  .bottomnav-wrap {
    padding: 0 12px;
  }

  .bottomnav {
    gap: 6px;
    padding: 6px 8px;
    min-width: 0;
  }

  .nav-btn {
    gap: 6px;
    padding: 6px 10px;
  }

  .nav-btn.is-center {
    padding: 4px 4px;
  }

  .nav-btn.is-center img {
    max-width: 48px;
  }

  .nav-label {
    font-size: 13px;
  }
}