/* Language Switcher - Professional UX/UI */
.header-action {
  display: block !important;
}

.header-lang-switcher {
  margin-right: 20px;
  display: inline-block !important;
}

.lang-dropdown {
  position: relative;
}

/* Language Button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-icon {
  font-size: 18px;
  line-height: 1;
}

.lang-code {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lang-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-menu {
  min-width: 140px;
  margin-top: 8px !important;
  padding: 6px;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.lang-option:hover {
  background: #f5f7fa;
  color: #000;
}

.lang-option.active {
  background: linear-gradient(135deg, #0a882f 0%, #215e0a 100%);
  color: #fff;
}

.lang-option.active:hover {
  background: linear-gradient(135deg, #0a882f 0%, #215e0a 100%);
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-name {
  flex: 1;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.lang-check {
  font-size: 12px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 767px) {
  .header-lang-switcher {
    margin-right: 10px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .lang-icon {
    font-size: 16px;
  }
  
  .lang-code {
    font-size: 13px;
  }
}

/* Accessibility */
.lang-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lang-option:focus {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu.show {
  animation: slideDown 0.2s ease;
}
