/*--------------------------------------------------------------
# Lang button - Modern & Professional
--------------------------------------------------------------*/
.lang-hidden {
    display: none !important;
}

.lang-widget {
  position: fixed;
  bottom: 15px;
  left: 25px;
  width: 45px;
  z-index: 9999;
}

.lang-widget .current-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  background: #edebeb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.lang-widget span {
  display: none;
}

@media (min-width: 992px) {
  .lang-widget .current-lang::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
  }

  .lang-widget .current-lang:hover {
    background: #ffffff;
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  .lang-widget:hover:not(.open) .current-lang::before {
    animation: modernRipple 1.5s cubic-bezier(0.21, 0.53, 0.56, 0.8) infinite;
  }

  @keyframes modernRipple {
    0% {
      transform: scale(1);
      opacity: 0.85;
    }
    100% {
      transform: scale(1.75);
      opacity: 0;
    }
  }
}

@media (max-width: 991px) {
  .lang-widget .current-lang::after {
    display: none; 
  }

  .lang-widget:not(.open) .current-lang {
    animation: buttonPulseLanguage 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    box-shadow: 0 0 0 0 #000000;
  }
}

.lang-widget.open .current-lang::after {
  display: none !important;
}

@keyframes buttonPulseLanguage {
  to {
    box-shadow: 0 0 0 9px rgba(1, 143, 227, 0);
  }
}

.lang-widget .lang-options {
  display: flex; 
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 53px;
  left: 0;
  width: 100%;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-widget.open .lang-options {
  opacity: 1;
  pointer-events: auto;
}

.lang-widget .lang-options li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  width: 45px;
  background: #edebed;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(1);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.lang-widget.open .lang-options li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lang-widget.open .lang-options li:nth-child(1) {
  transition-delay: 0.04s;
}

.lang-widget.open .lang-options li:nth-child(2) {
  transition-delay: 0.08s;
}

@media (min-width: 992px) {
  .lang-widget .lang-options li:hover {
    transform: translateY(0) scale(1.05);
    border-color: var(--default-color);
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.25);
    background-color: #fff;
  }
}

.lang-widget img {
  width: 25px;
  height: 20px;
  border-radius: 10px;
  object-fit: cover;
}
