/* ==========================================================================
   IndoSpiceHub — i18n language switcher
   Additive only: no existing selectors are touched or overridden here.
   Uses the site's existing design tokens (tokens.css) so it matches the
   current visual language without any changes to components.css.
   ========================================================================== */

.isp-lang-switcher {
  position: relative;
  margin-left: var(--space-2, 1rem);
  display: inline-flex;
  align-items: center;
}

.isp-lang-switcher__button {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-charcoal, #1A1A18);
  background: transparent;
  border: 1px solid var(--color-border, #DCD4C0);
  border-radius: var(--radius-sm, 2px);
  padding: 0.4em 0.75em;
  cursor: pointer;
  line-height: 1;
}

.isp-lang-switcher__button:hover,
.isp-lang-switcher__button[aria-expanded="true"] {
  border-color: var(--color-gold-500, #B8924A);
  color: var(--color-forest-700, #1F3D2E);
}

.isp-lang-switcher__menu {
  list-style: none;
  margin: 0.35em 0 0;
  padding: 0.35em 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 11rem;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #DCD4C0);
  border-radius: var(--radius-md, 4px);
  box-shadow: 0 8px 24px rgba(20, 39, 29, 0.14);
  z-index: 60;
}

.isp-lang-switcher__option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-charcoal, #1A1A18);
  background: transparent;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
}

.isp-lang-switcher__option:hover {
  background: var(--color-ivory-deep, #EFE9DB);
}

.isp-lang-switcher__option.is-active {
  color: var(--color-forest-700, #1F3D2E);
  font-weight: 600;
}

/* Site header is a dark band on some page-hero variants only; the switcher
   itself always lives in the ivory/white .site-header, so no dark-mode
   variant is required at this time. */

/* Prepared for a future RTL pass (not activated — see assets/js/i18n.js). */
body.is-rtl .isp-lang-switcher__menu {
  right: auto;
  left: 0;
}
