/**
 * Language Switcher Styles
 * Modern dropdown language switcher with flags
 */

/* ================================
   MODERN LANGUAGE SWITCHER
   ================================ */

.modern-language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fec233;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1;
  height: 40px;
  border-radius: 50px;
}

.language-toggle:hover {
  background: #ffb302;
}

.language-flag {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.language-name {
  font-size: 12px;
  font-weight: 700;
  color: #1c1c1c;
}

.dropdown-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
  color: #1c1c1c;
}

.modern-language-switcher.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fec233;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  margin-top: 4px;
  border-radius: 15px;
}

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

.language-options {
  list-style: none;
  margin: 0;
  padding: 4px;
}

.language-item {
  margin: 0;
}
.language-dropdown ul li {
  padding: 6px 12px;
  display: flex;
  height: 40px;
}
.language-dropdown ul li a {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btTopBox .language-dropdown ul li {
  padding: 6px 12px;
  display: flex;
  height: 40px;
}
.btTopBox .language-dropdown ul li a {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ================================
   ALTERNATIVE FLAG LAYOUT STYLES
   ================================ */

.language-flags-container {
  display: flex;
  justify-content: center; /* Căn giữa các lá cờ */
  align-items: center;
  gap: 30px; /* Khoảng cách giữa các lá cờ */
  padding: 20px 0;
  flex-wrap: wrap; /* Cho phép xuống hàng trên màn hình nhỏ */
}

.language-flag-item {
  display: flex;
  flex-direction: column; /* Sắp xếp cờ ở trên, chữ ở dưới */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-flag-item:hover {
  transform: translateY(-5px); /* Hiệu ứng nhấc lên khi hover */
  opacity: 0.8;
}

.language-flag-item img {
  width: 90px; /* Kích thước của cờ */
  height: 60px;
  object-fit: cover;
}

.language-flag-item span {
  font-size: 1em;
  font-weight: 500;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 480px) {
  .language-flags-container {
    gap: 20px;
  }
  .language-flag-item img {
    width: 50px;
    height: 50px;
  }
  .language-flag-item span {
    font-size: 0.9em;
  }
}