/* AdsGency AI - Language Switcher Styles */

.i18n-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  z-index: 1000;
}

.i18n-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.i18n-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.i18n-globe {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.i18n-label {
  font-size: 13px;
}

.i18n-chevron {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.i18n-switcher--open .i18n-chevron {
  transform: rotate(180deg);
}

.i18n-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  list-style: none;
  margin: 0;
  padding: 6px;
  display: none;
  z-index: 9999;
}

.i18n-switcher--open .i18n-dropdown {
  display: block;
}

.i18n-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.i18n-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.i18n-option--active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive: collapse label on small screens */
@media (max-width: 768px) {
  .i18n-label {
    display: none;
  }

  .i18n-switcher-btn {
    padding: 7px 9px;
  }
}
