/* ── MATCHPOINT Language Switcher Styles ─────────────────────────────────── */

.mp-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mp-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg);
  padding: 7px 12px;
  border-radius: 980px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background 120ms;
  white-space: nowrap;
}

.mp-lang-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.mp-lang-arrow {
  font-size: 14px;
  opacity: 0.65;
  transition: transform 180ms;
  line-height: 1;
}

.mp-lang-btn[aria-expanded="true"] .mp-lang-arrow {
  transform: rotate(180deg);
}

.mp-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  min-width: 152px;
  z-index: 9999;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.mp-lang-dropdown.mp-open {
  display: flex;
  flex-direction: column;
}

.mp-lang-option {
  background: transparent;
  border: 0;
  color: var(--fg);
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background 120ms;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mp-lang-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mp-lang-option.mp-lang-active {
  color: var(--brand);
  font-weight: 600;
}

.mp-lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}
