/* Mobile bottom navigation */
.bottom-nav-root {
  display: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .bottom-nav {
  background: rgba(26, 26, 26, 0.92);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), transform var(--transition-fast);
  min-height: 48px;
}

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

.bottom-nav__item:active {
  transform: scale(0.94);
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.bottom-nav__icon svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__item--fab {
  flex: 0 0 auto;
  margin-top: -20px;
}

.bottom-nav__item--fab .bottom-nav__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 107, 73, 0.35);
}

.bottom-nav__item--fab .bottom-nav__icon svg {
  width: 24px;
  height: 24px;
}

.bottom-nav__label {
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  body.has-bottom-nav .bottom-nav-root {
    display: block;
  }
}
