/* ==========================================================================
   ETLEGIS — Плавающий переключатель версий
   ========================================================================== */

.version-switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(20, 21, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.3s;
}

.version-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #B9B4AB;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.version-switcher a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.version-switcher a.active {
  background: #C2A273;
  color: #141519;
  font-weight: 600;
}

.version-switcher a .v-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.version-switcher .v-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 2px;
}

.version-switcher a.v-hub {
  padding-right: 12px;
  color: #D8B878;
}

.version-switcher a.v-hub:hover {
  background: rgba(216, 184, 120, 0.14);
  color: #fff;
}

@media (max-width: 767px) {
  .version-switcher {
    top: auto;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 3px 4px;
    max-width: 96vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .version-switcher::-webkit-scrollbar {
    display: none;
  }
  .version-switcher a {
    padding: 5px 9px;
  }
}
