/**
 * Tab Bar Styles
 * Bottom navigation tab bar with glow accents
 */

/* ==========================================================================
   CUSTOM TAB BAR - Refined with glow accents
   ========================================================================== */

.tab-bar {
  flex-shrink: 0;
  background: var(--color-chulas-black);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-bar-border {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent
  );
}

.tab-bar-items {
  display: flex;
  padding-top: 6px;
  padding-bottom: 6px;
}

.tab-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: all var(--transition-fast);
  position: relative;
}

.tab-bar-item:active {
  transform: scale(0.9);
}

/* Glow indicator for active tab */
.tab-bar-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: all var(--transition-normal);
}

.tab-bar-item .tab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.tab-bar-item.active .tab-icon {
  transform: scale(1.1);
}

.tab-bar-item .tab-icon svg {
  width: 100%;
  height: 100%;
  transition: filter var(--transition-normal);
}

.tab-bar-item .tab-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

/* Tab colors when inactive */
.tab-bar-item {
  color: rgba(142, 142, 147, 0.8);
}

/* ==========================================================================
   TAB BAR COLOR VARIANTS
   ========================================================================== */

/* Home tab - Lime */
.tab-bar-item.active[data-tab="home"] {
  color: var(--color-chulas-lime);
}
.tab-bar-item.active[data-tab="home"]::before {
  background: var(--color-chulas-lime);
  box-shadow: 0 0 12px var(--color-chulas-lime-glow);
}
.tab-bar-item.active[data-tab="home"] .tab-icon svg {
  filter: drop-shadow(0 0 8px var(--color-chulas-lime-glow));
}

/* Menu tab - Orange */
.tab-bar-item.active[data-tab="menu"] {
  color: var(--color-chulas-orange);
}
.tab-bar-item.active[data-tab="menu"]::before {
  background: var(--color-chulas-orange);
  box-shadow: 0 0 12px var(--color-chulas-orange-glow);
}
.tab-bar-item.active[data-tab="menu"] .tab-icon svg {
  filter: drop-shadow(0 0 8px var(--color-chulas-orange-glow));
}

/* Rewards tab - Purple */
.tab-bar-item.active[data-tab="rewards"] {
  color: var(--color-chulas-purple);
}
.tab-bar-item.active[data-tab="rewards"]::before {
  background: var(--color-chulas-purple);
  box-shadow: 0 0 12px var(--color-chulas-purple-glow);
}
.tab-bar-item.active[data-tab="rewards"] .tab-icon svg {
  filter: drop-shadow(0 0 8px var(--color-chulas-purple-glow));
}

/* Valet tab - Red */
.tab-bar-item.active[data-tab="valet"] {
  color: var(--color-chulas-red);
}
.tab-bar-item.active[data-tab="valet"]::before {
  background: var(--color-chulas-red);
  box-shadow: 0 0 12px var(--color-chulas-red-glow);
}
.tab-bar-item.active[data-tab="valet"] .tab-icon svg {
  filter: drop-shadow(0 0 8px var(--color-chulas-red-glow));
}

/* Events tab - Teal */
.tab-bar-item.active[data-tab="events"] {
  color: var(--color-chulas-teal);
}
.tab-bar-item.active[data-tab="events"]::before {
  background: var(--color-chulas-teal);
  box-shadow: 0 0 12px var(--color-chulas-teal-glow);
}
.tab-bar-item.active[data-tab="events"] .tab-icon svg {
  filter: drop-shadow(0 0 8px var(--color-chulas-teal-glow));
}
