/* webapp/shared/styles/layouts/navbar.css */
/* Стили для навигационного бара */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-around;
  padding-top: 2px;
  padding-bottom: 18px;
  align-items: center;
  border-top: 0.33px solid var(--navbar-border);
  z-index: 1000;
}

/* Слот одной вкладки */
.nav-item {
  position: relative;
  width: var(--nav-item-width);
  height: var(--nav-item-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  
  /* КРИТИЧЕСКИ ВАЖНО: убираем highlight на мобильных */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  
  /* Убираем все возможные состояния */
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Убираем все эффекты при взаимодействии */
.nav-item:active,
.nav-item:focus,
.nav-item:hover {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Иконка */
.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

/* Светлая тема: черные иконки для НЕАКТИВНЫХ элементов */
:root.theme-light .nav-item:not(.active) .nav-icon:not(.nav-avatar-img) {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

/* Светлая тема: активные иконки должны оставаться синими (отменяем черный фильтр) */
:root.theme-light .nav-item.active .nav-icon:not(.nav-avatar-img) {
  filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2500%) hue-rotate(195deg);
}

/* Аватарка в навбаре */
.nav-avatar {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Подпись */
.nav-label {
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  color: var(--nav-text);
  transition: color var(--transition-normal);
}

.nav-item.active .nav-icon {
  opacity: 1;
  /* Делаем иконку синей, исключая аватар */
  filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2500%) hue-rotate(195deg);
}

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

/* Особые стили для профиля (аватарка) */
.nav-item.active.nav-profile .nav-avatar {
  outline: 2px solid var(--nav-text-active);
  outline-offset: 2px;
}

/* Исключаем аватар из синего фильтра */
.nav-item.active.nav-profile .nav-avatar-img {
  filter: none !important;
}

.nav-item.active.nav-profile .nav-icon {
  filter: none !important;
}
