/**
 * Automate IT - Language Switcher Styles
 */

.ait-lang-switcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
}

.ait-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.12);
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1A1F36;
  box-shadow: 0 4px 16px rgba(26, 31, 54, 0.1);
  transition: all 0.2s ease;
}

.ait-lang-toggle:hover {
  box-shadow: 0 6px 24px rgba(26, 31, 54, 0.15);
  transform: translateY(-1px);
}

.ait-lang-toggle.open {
  border-color: #2B4C9B;
}

.ait-lang-toggle svg {
  transition: transform 0.2s ease;
}

.ait-lang-toggle.open svg {
  transform: rotate(180deg);
}

.ait-lang-flag {
  font-weight: 700;
  color: #2B4C9B;
  letter-spacing: 0.05em;
}

/* Dropdown */
.ait-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26, 31, 54, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.ait-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ait-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: #1A1F36;
  transition: background 0.15s ease;
  text-align: left;
}

.ait-lang-option:hover {
  background: #F0F2F7;
}

.ait-lang-option.active {
  background: rgba(43, 76, 155, 0.06);
}

.ait-lang-option:first-child {
  border-bottom: 1px solid rgba(26, 31, 54, 0.06);
}

.ait-lang-code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F0F2F7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2B4C9B;
  flex-shrink: 0;
}

.ait-lang-option.active .ait-lang-code {
  background: #2B4C9B;
  color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ait-lang-switcher {
    bottom: 16px;
    left: 16px;
  }

  .ait-lang-toggle {
    padding: 8px 14px;
    font-size: 12px;
  }
}
