/* lang-switcher.css — site-wide language picker.
   Shared across all surfaces. Mirrors the dark instrument panel aesthetic:
   #0a0a0a bg + #00e599 accent. Pairs with assets/lang-switcher.js. */

.lang-switcher-container {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lang-switcher:hover {
  border-color: #00e599;
  color: #00e599;
}

.lang-globe {
  font-size: 12px;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 4px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9000;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.lang-option.active {
  color: #00e599;
}

.lang-code-badge {
  display: inline-block;
  min-width: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lang-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

/* Mobile: keep it compact */
@media (max-width: 640px) {
  .lang-switcher {
    padding: 0.25rem 0.45rem;
    font-size: 10px;
  }
  .lang-dropdown {
    min-width: 140px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lang-switcher, .lang-option {
    transition: none;
  }
}
