/* Migrated verbatim from Elementor widget af97e0b. Do not reorder: load order is part of the cascade. */
/* Base */
.lang-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Poppins", sans-serif;
}

/* Modern Button */
.lang-btn {
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  border: 1px solid rgba(68, 196, 188, 0.3);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  transition: all 0.35s ease;
  box-shadow: 0 0 12px rgba(68, 196, 188, 0.25);
  backdrop-filter: blur(12px);
}

.lang-btn:hover {
  background: rgba(25, 25, 25, 0.95);
  border-color: #44C4BC;
  box-shadow: 0 0 18px rgba(68, 196, 188, 0.5);
  transform: translateY(-2px);
}

.flag {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  filter: brightness(0.95);
}

.arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #44C4BC;
}

/* Dropdown Menu */
.lang-menu {
  display: none;
  position: absolute;
  top: 125%;
  left: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px) saturate(160%);
  border-radius: 14px;
  overflow: hidden;
  min-width: 90px;
  border: 1px solid rgba(68, 196, 188, 0.3);
  box-shadow:
    0 4px 25px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(68, 196, 188, 0.25);
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.lang-menu.show {
  display: block;
}

/* Language Items */
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #eaeaea;
  background: transparent;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.lang-item:hover {
  background: rgba(68, 196, 188, 0.15);
  color: #44C4BC;
  padding-left: 18px;
}

.lang-item:hover .flag {
  filter: brightness(1.2);
}

/* Divider (same color + glow as border & shadow) */
.lang-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(68, 196, 188, 0.3);
  box-shadow: 0 0 8px rgba(68, 196, 188, 0.25);
  margin: 0;
  opacity: 1;
  pointer-events: none;
}

/* Arrow Animation */
.lang-btn.active .arrow {
  transform: rotate(180deg);
  color: #44C4BC;
}

/* Glow Border */
.lang-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, #44C4BC33, transparent 70%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
  .lang-btn {
    padding: 6px 13px;
    font-size: 0.85rem;
  }
  .flag {
    width: 18px;
    height: 12px;
  }
}
