/**
 * Language Switcher Styles
 */

.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.language-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-list li {
  margin: 0;
}

.language-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.language-list a:hover {
  background: rgba(52, 152, 219, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.language-list li.active a {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.language-list img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* RTL Adjustments */
[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .language-list {
  flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .language-switcher {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }
  
  .language-list {
    justify-content: center;
  }
  
  [dir="rtl"] .language-switcher {
    margin-right: 0;
  }
}

/* Dropdown variant (optional) */
.language-switcher.dropdown {
  position: relative;
}

.language-switcher.dropdown .language-list {
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 150px;
}

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

.language-switcher.dropdown .language-list a {
  width: 100%;
  justify-content: flex-start;
}

[dir="rtl"] .language-switcher.dropdown .language-list {
  right: auto;
  left: 0;
}

[dir="rtl"] .language-switcher.dropdown .language-list a {
  justify-content: flex-end;
  flex-direction: row-reverse;
}
