/**
 * Lumiere — fixed bottom tab bar (mobile)
 */

body.lumiere-has-bottom-nav {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

.lm-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 4rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(251, 247, 238, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  direction: rtl;
}

@media (min-width: 768px) {
  .lm-bottom-nav {
    display: none;
  }

  body.lumiere-has-bottom-nav {
    padding-bottom: 0;
  }
}

.lm-bottom-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  text-decoration: none;
  color: var(--lm-muted);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  transition: color 0.2s ease;
}

.lm-bottom-nav__tab:hover {
  color: var(--lm-primary);
}

.lm-bottom-nav__tab.is-active {
  color: var(--lm-primary);
}

.lm-bottom-nav__tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lm-primary), transparent);
}

.lm-bottom-nav__icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.lm-bottom-nav__tab.is-active .lm-bottom-nav__icon {
  stroke-width: 1.8;
}
