/* ── Language Switcher Styles ── */
.lang-switcher {
  position: relative;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher__btn:hover {
  border-color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

/* ── Liquid Glass Dropdown ── */
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  padding: 6px;

  /* Liquid glass: heavy blur + tinted translucency */
  background: rgba(12, 12, 20, 0.45);
  backdrop-filter: blur(60px) saturate(200%) brightness(1.15);
  -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.15);

  /* Glass border — subtle inner highlight */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;

  /* Depth + inner glow */
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  overflow: hidden;
}

/* Refraction highlight — top edge sheen */
.lang-switcher__dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 100%
  );
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.lang-switcher__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: rgba(241, 240, 237, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.lang-switcher__option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.lang-switcher__option.active {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent);
}

.lang-switcher__option.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.lang-switcher__flag {
  font-size: 1.15rem;
}

.lang-switcher__name {
  flex: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0.25rem;
  }

  .lang-switcher__btn {
    padding: 0.3rem 0.4rem;
  }

  .lang-switcher__dropdown {
    right: auto;
    left: 0;
  }
}
