/* Custom Language Translator Styles */

.ct-language-switcher {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 5px;
}

.ct-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: #f0f0f0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid transparent;
}

.ct-lang-link:hover {
  background: #e0e0e0;
  color: #000;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ct-lang-link.active {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  border-color: #005177;
}

.ct-lang-link.active:hover {
  background: #005177;
}

.ct-flag {
  font-size: 18px;
  line-height: 1;
}

.ct-lang-name {
  white-space: nowrap;
}

/* Dropdown Style */
.ct-style-dropdown .ct-language-switcher {
  position: relative;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ct-style-dropdown .ct-lang-link {
  width: 100%;
  justify-content: flex-start;
}

/* Menu Integration */
.ct-menu-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ct-menu-switcher .ct-language-switcher {
  margin: 0 10px;
}

/* Admin Styles */
.wrap .card {
  padding: 20px;
  margin-top: 20px;
}

.wrap .card h3 {
  margin-top: 0;
}

.wrap .card code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ct-language-switcher {
      flex-direction: column;
      gap: 5px;
  }
  
  .ct-lang-link {
      width: 100%;
      justify-content: center;
  }
  
  .ct-menu-switcher .ct-language-switcher {
      margin: 10px 0;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.ct-language-switcher {
  animation: fadeIn 0.3s ease;
}