/* SML Frontend Language Switcher Styles */
.sml-switcher {
  position: relative;
  display: inline-block;
}
.sml-switcher-dropdown {
  position: relative;
}
.sml-switcher-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  min-width: 100px;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.sml-switcher-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
.sml-arrow {
  transition: transform 0.2s;
}
.sml-switcher-dropdown.open .sml-arrow {
  transform: rotate(180deg);
}
.sml-switcher-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 140px;
  z-index: 1000;
}
.sml-switcher-dropdown.open .sml-switcher-list {
  display: block;
}
.sml-switcher-list a {
  display: block;
  padding: 8px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}
.sml-switcher-list a:hover {
  background: #f3f4f6;
}
.sml-switcher-list a.sml-active {
  color: #0073aa;
  font-weight: 600;
}
.sml-switcher-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sml-switcher-text .sml-lang-link {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sml-switcher-text .sml-lang-link:hover {
  opacity: 1;
}
.sml-switcher-text .sml-lang-link.sml-active {
  opacity: 1;
  font-weight: 600;
}
.sml-switcher-text .sml-separator {
  opacity: 0.3;
}

/* Mobile menu (white background) adjustments */
#mobile-menu .sml-switcher-toggle {
  border-color: #d1d5db;
  color: #374151;
}
#mobile-menu .sml-switcher-toggle:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}
#mobile-menu .sml-switcher-list {
  left: 0;
  right: auto;
}
