/**
 * navigation.css
 * BIXOR Exchange - Bottom Navigation Bar Styles
 *
 * Depends on: variables.css
 */

/* ============================================================
 * NAV BAR
 * ============================================================ */

.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height); /* 64px */
  background-color: var(--color-bg-nav);
  display: flex;
  align-items: center;
  z-index: 1000;
  /* Safe area inset for iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
 * NAV ITEM
 * ============================================================ */

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color 200ms var(--easing-material);
  min-height: var(--min-touch-target); /* 44px */
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-item:active {
  opacity: 0.7;
}

.nav-item.active {
  color: var(--color-accent);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================================
 * NAV LABEL
 * ============================================================ */

.nav-label {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  font-family: var(--font-family-base);
}

/* ============================================================
 * NOTIFICATION BADGE
 * ============================================================ */

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background-color: var(--color-error);
  color: #ffffff;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-sizing: border-box;
  animation: pulse 2s var(--easing-ease-in-out) infinite;
}
