/* Language Switcher Styles */
.lang-switcher-container {
  display: inline-block;
}

.language-switcher {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.language-switcher-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.language-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Dark mode for scrolled header - only when actually scrolled */
.header-section.scrolled .language-switcher-btn {
  color: #333;
  border-color: rgba(0, 0, 0, 0.2);
}

.header-section.scrolled .language-switcher-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.language-switcher-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.language-switcher.active .language-switcher-btn svg {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.language-switcher.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.language-dropdown a:hover {
  background: #f5f5f5;
}

.language-dropdown a.active {
  background: #02528a;
  color: white;
}

/* Desktop - integrate with existing nav */
@media screen and (min-width: 992px) {
  .nav-menu-with-btn {
    display: flex;
    align-items: center;
    gap: 20px;
  }
}

/* Mobile styles */
@media screen and (max-width: 991px) {
  .lang-switcher-container {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
  }

  .language-switcher-btn {
    width: 100%;
    justify-content: space-between;
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
  }

  .language-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
  }

  .language-switcher-btn svg {
    color: #333;
  }

  .language-dropdown {
    position: static;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    border-radius: 0;
    background: transparent;
  }

  .language-dropdown a {
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .language-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .language-dropdown a.active {
    background: rgba(2, 82, 138, 0.1);
    color: #02528a;
    font-weight: 600;
  }

  .language-switcher.active .language-dropdown {
    transform: none;
  }
}
