/* RushConnect Tab Bar — Apple Liquid Glass v2 */
/* Single source of truth. Edit here, updates everywhere. */

.rc-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 84px;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Ensure page content doesn't hide behind the fixed bar */
body {
  padding-bottom: 84px !important;
}

.rc-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-neutral-400, #92B8B0);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
  font-size: var(--text-caption-2, 11px);
  font-weight: 500;
  letter-spacing: var(--tracking-caption-2, 0.06px);
  padding: 4px 12px;
  border-radius: 12px;
  transition: all var(--duration-fast, 150ms) var(--ease-out, ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

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

/* Active state */
.rc-tab-item.active {
  color: var(--color-primary, #3769F1);
  font-weight: 700;
}

.rc-tab-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-primary, #3769F1);
}

/* Icon sizing */
.rc-tab-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  transition: all var(--duration-fast, 150ms) var(--ease-out, ease);
}

.rc-tab-item.active svg {
  stroke-width: 2;
}

/* Center logo button — Liquid Glass elevated */
.rc-tab-center {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--color-primary, #3769F1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(55, 105, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--duration-fast, 150ms) var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
  -webkit-tap-highlight-color: transparent;
  margin-top: -16px;
}

.rc-tab-center:active {
  transform: scale(0.92);
}

.rc-tab-center img {
  width: 22px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Label */
.rc-tab-label {
  white-space: nowrap;
}

/* Responsive: icon-only below 360px */
@media (max-width: 360px) {
  .rc-tab-label {
    display: none;
  }
  .rc-tab-item {
    gap: 0;
  }
}
