/* Language dropdown styles */
.language-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 30px;
  z-index: 9999; /* Ensure the dropdown trigger is above other elements */
}

.language-trigger {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  border: 1px solid #e67e22;
  border-radius: 4px;
}

.language-trigger:hover {
  color: #e67e22;
}

.language-trigger i {
  margin: 0 5px;
  font-size: 20px;
}

.dropdown-content {
  display: none; /* Hide by default */
  position: fixed; /* Changed from absolute to fixed */
  right: 20px; /* Add some space from the right edge */
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 99999; /* Very high z-index to ensure it's on top */
  border-radius: 4px;
  top: 75px; /* Position below the header */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all 0.3s ease;
  will-change: transform, opacity;
  transform-origin: top right;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Show dropdown when active */
.language-dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background-color: #f8f8f8;
}

.flag {
  width: 20px;
  height: 15px;
  margin-right: 10px;
  border-radius: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .language-trigger span {
    display: none;
  }
  
  .language-trigger i:last-child {
    display: none;
  }
}
