/* Minimalist Top-Center Language Switcher */
.language-switcher {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.language-switcher a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #111;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
  will-change: transform;
}

.language-switcher a:hover {
  background: rgba(0,0,0,0.06);
}

.language-switcher a.active {
  background: #111;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

/* Subtle separator */
.language-switcher .sep {
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.15), rgba(0,0,0,0));
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .language-switcher {
    top: 8px;
    padding: 3px;
    gap: 3px;
  }
  .language-switcher a {
    font-size: 11px;
    padding: 5px 9px;
  }
  .language-switcher .sep { height: 14px; }
}

@media (prefers-color-scheme: dark) {
  .language-switcher {
    background: rgba(22,22,22,0.7);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  }
  .language-switcher a { color: #f3f3f3; }
  .language-switcher a:hover { background: rgba(255,255,255,0.08); }
  .language-switcher a.active { background: #f3f3f3; color: #111; }
}
