/* I Kindred Spirit — общий стиль нижней навигации.
   Используется внутренними страницами (people, activities, reviews, profile).
   На index/about панель свёрстана инлайн, стиль совпадает. */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--header-bg, var(--surface, #ffffff));
  border-top: 1px solid var(--border-color, var(--border, rgba(30, 64, 175, 0.12)));
  box-shadow: 0 -4px 30px rgba(30, 64, 175, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
}
[data-theme="dark"] .bottom-bar {
  background: var(--bg, #0f172a);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.35);
}

.bottom-bar .header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  margin: 0 auto !important;
}

/* Кнопки: только иконки, без рамок, фона и теней */
.bottom-bar .header-right .catalog-btn,
.bottom-bar .header-right .icon-btn,
.bottom-bar .header-right .lang-btn {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: var(--text-main, var(--text, #1e293b)) !important;
  transform: none !important;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease !important;
  -webkit-tap-highlight-color: transparent;
}
.bottom-bar .header-right .catalog-btn:hover,
.bottom-bar .header-right .icon-btn:hover,
.bottom-bar .header-right .lang-btn:hover {
  background: var(--neon-glow, var(--glow, rgba(17, 17, 17, 0.06))) !important;
  color: var(--text-main, var(--text, #1e293b)) !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
[data-theme="dark"] .bottom-bar .header-right .catalog-btn:hover,
[data-theme="dark"] .bottom-bar .header-right .icon-btn:hover,
[data-theme="dark"] .bottom-bar .header-right .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bottom-bar .header-right svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  filter: none !important;
}

/* Переключатель темы: луна в светлой, солнце в тёмной */
.bottom-bar .theme-btn .sun { display: none !important; }
[data-theme="dark"] .bottom-bar .theme-btn .moon { display: none !important; }
[data-theme="dark"] .bottom-bar .theme-btn .sun { display: block !important; }

/* Язык */
.bottom-bar .lang-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-bar .lang-btn { font-size: 20px !important; line-height: 1 !important; }
.bottom-bar .iks-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.bottom-bar .lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 220px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  background: var(--card-bg, var(--surface, #ffffff));
  border: 1px solid var(--border-color, var(--border, rgba(30, 64, 175, 0.12)));
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 101;
  box-sizing: border-box;
}
.bottom-bar .lang-dropdown.active { display: block; }
.bottom-bar .lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-main, var(--text, #1e293b));
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.bottom-bar .lang-option:hover {
  background: var(--neon-glow, var(--glow, rgba(30, 64, 175, 0.12)));
}
[data-theme="dark"] .bottom-bar .lang-option { color: #f8fafc; }

/* Отступ, чтобы фиксированная панель не перекрывала контент */
body.has-bottom-nav {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

/* The same catalog drawer geometry and typography as index.html. */
