/**
 * Zentrofuse Internationalization Styles
 * Language switcher and related i18n components
 */

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--zf-surface, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  border: 1px solid var(--zf-border, rgba(255, 255, 255, 0.2));
}

.lang-switch button {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zf-text-secondary, rgba(255, 255, 255, 0.7));
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
}

.lang-switch button:hover {
  background: var(--zf-surface-hover, rgba(255, 255, 255, 0.1));
  color: var(--zf-text-primary, #ffffff);
}

.lang-switch button[aria-pressed="true"],
.lang-switch button.is-active {
  background: var(--zf-primary, #4a90e2);
  color: #ffffff;
}

.lang-switch button:focus {
  outline: 2px solid var(--zf-primary, #4a90e2);
  outline-offset: 2px;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .lang-switch {
    margin: 16px 0;
    justify-content: center;
  }
  
  .site-menu-main .nav-item:has(.lang-switch) {
    display: flex;
    justify-content: center;
    padding: 8px 0;
  }
}

/* Desktop adjustments */
@media (min-width: 992px) {
  .site-menu-main .nav-item:has(.lang-switch) {
    display: flex;
    align-items: center;
  }
}

/* Light theme adjustments */
[data-theme="light"] .lang-switch {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-switch button {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .lang-switch button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .lang-switch button[aria-pressed="true"],
[data-theme="light"] .lang-switch button.is-active {
  background: var(--zf-primary, #4a90e2);
  color: #ffffff;
}
