/* ============================================================
   نادم — Shared bottom nav · «کپسول کشویی»
   active tab expands into a teal capsule with inline label
   Used by: Home / Dhikr List / About
   ============================================================ */

.tabbar {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  z-index: 35;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.97), rgba(246, 240, 226, 0.95));
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  box-shadow:
    0 18px 40px rgba(10, 64, 60, 0.18),
    0 2px 6px rgba(10, 64, 60, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tabbar .tab {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  color: var(--muted);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: flex-grow 420ms cubic-bezier(0.6, 0, 0.2, 1), background 320ms ease,
    color 320ms ease, box-shadow 320ms ease;
}

.tabbar .tab .ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: color 240ms ease, transform 240ms ease;
}
.tabbar .tab .ic i,
.tabbar .tab .ic svg {
  width: 24px;
  height: 24px;
}

.tabbar .tab .lbl {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: max-width 420ms cubic-bezier(0.6, 0, 0.2, 1), opacity 280ms ease,
    margin 420ms cubic-bezier(0.6, 0, 0.2, 1);
}

.tabbar .tab:not(.active):hover {
  background: rgba(15, 128, 119, 0.08);
  color: var(--t-800);
}
.tabbar .tab:not(.active):active .ic { transform: scale(0.92); }

.tabbar .tab.active {
  flex-grow: 2.1;
  color: #fdf7e6;
  background: linear-gradient(158deg, var(--t-600) 0%, var(--t-800) 52%, var(--t-950) 100%);
  box-shadow:
    0 10px 20px rgba(8, 70, 64, 0.38),
    0 0 0 1px rgba(231, 205, 134, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tabbar .tab.active .lbl {
  max-width: 80px;
  opacity: 1;
  margin-right: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .tabbar .tab,
  .tabbar .tab .lbl {
    transition: none !important;
  }
}
