.language-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background-color: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.language-selector:hover {
  background-color: rgba(30, 30, 30, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.language-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.language-option:hover {
  color: #ffffff;
  background-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-1px);
}

.language-option.active {
  background-color: rgba(212, 168, 83, 0.3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(212, 168, 83, 0.2);
}

.flag-icon {
  width: 1.25rem;
  height: 0.9375rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .language-selector {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.15rem;
  }
  
  .language-option {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    gap: 0.35rem;
  }
  
  .flag-icon {
    width: 1.125rem;
    height: 0.84375rem;
  }
}

.language-option:focus {
  outline: 2px solid hsl(39, 67%, 50%);
  outline-offset: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.it-content, .en-content, .de-content {
  animation: fadeIn 0.3s ease-out;
}
