/* ============================================================
   ASR Development Consulting Group
   Language Switcher — AZ / RU
   Standalone file — does NOT modify any existing CSS
   ============================================================ */


/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
 
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 4px;
}
 
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(11, 31, 58, 0.18);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: rgba(200, 146, 42, 0.6);
  background: rgba(200, 146, 42, 0.07);
}
 
.lang-btn .fa-globe {
  font-size: 14px;
  opacity: 0.85;
}
 
.lang-arrow {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
 
.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}
 
/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--nav-bg, #fff);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  min-width: 160px;
  overflow: hidden;
  padding: 6px 0;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  visibility: hidden;
}
 
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
 
.lang-option {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background 0.15s;
}
 
.lang-option:hover {
  background: rgba(0, 0, 0, 0.06);
}
 
.lang-option.lang-active {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
}
 
.lang-flag {
  font-size: 18px;
  line-height: 1;
}
 
/* Dark mode compatibility */
.dark-mode .lang-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255,255,255,0.85);
}
.dark-mode .lang-btn:hover {
  border-color: rgba(200, 146, 42, 0.6);
  background: rgba(200, 146, 42, 0.1);
}

.dark-mode .lang-dropdown {
  background: var(--nav-bg, #0d1b2a);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-mode .lang-option {
  color: var(--text, #dcd5c5);
}

.dark-mode .lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .lang-option.lang-active {
  background: rgba(255, 255, 255, 0.06);
}
 
/* Mobile: hide in mobile menu area, keep in nav */
@media (max-width: 768px) {
  .lang-btn {
    font-size: 12px;
    padding: 5px 8px;
    gap: 4px;
  }
 
  .lang-current {
    display: none;
  }
}