/* CUBE Collective Multi-Language Selector 2026 */
.locale-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: Inter, system-ui, sans-serif;
  z-index: 1002;
}

.locale-trigger {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(168, 196, 223, .22);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.locale-trigger:hover,
.locale-trigger:focus-visible,
.locale-dropdown.is-open .locale-trigger {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(73, 211, 207, .45);
  color: #fff;
}
.locale-trigger:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.locale-flag {
  font-size: 13px;
  line-height: 1;
}

.locale-code {
  letter-spacing: .06em;
}

.locale-chevron {
  transition: transform .2s ease;
}

.locale-dropdown.is-open .locale-chevron {
  transform: rotate(180deg);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(150deg, rgba(14, 35, 58, .98), rgba(8, 23, 40, .99));
  border: 1px solid rgba(73, 211, 207, .3);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 3px;
}

.locale-dropdown.is-open .locale-menu {
  display: flex;
}

.locale-option {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.locale-option:hover,
.locale-option:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.locale-option:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.locale-option.is-selected {
  background: rgba(73, 211, 207, .12);
  color: #42c7c9;
  border: 1px solid rgba(73, 211, 207, .25);
}

.locale-region {
  font-size: 9px;
  color: #8197ad;
  font-weight: 600;
}
