/* Language switcher styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 20px;
  position: relative;
  z-index: 1000; /* Ensure it's above other elements */
}

.language-switcher button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  margin: 0 2px;
  transition: all 0.3s ease;
  opacity: 0.7;
  position: relative;
  /* Increase clickable area */
  min-width: 40px;
  min-height: 30px;
}

.language-switcher button.active {
  opacity: 1;
}

.language-switcher button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.language-switcher button:hover {
  opacity: 1;
}

.language-switcher button:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.language-switcher button.active:hover::after {
  background-color: #fff;
}

/* Showcase language switcher */
.showcase-lang-switcher {
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.showcase-lang-switcher button {
  border-radius: 15px;
  padding: 5px 12px;
}

.showcase-lang-switcher button.active {
  background: rgba(255, 255, 255, 0.2);
}

.showcase-lang-switcher button::after,
.showcase-lang-switcher button:hover::after,
.showcase-lang-switcher button.active:hover::after {
  display: none;
}

@media (max-width: 991px) {
  .language-switcher {
    position: absolute;
    top: 15px;
    right: 60px;
  }
}
