/**
 * Star Suites - Multilingual Frontend Language Switcher Styles
 */

.star-lang-switcher {
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  position: relative;
  z-index: 50;
}

/* =========================================================================
   1. Pills Style (EN | 中文)
   ========================================================================= */
.star-lang-pills-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.star-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* When placed over dark header */
#main-header .star-lang-pill,
.dark-context .star-lang-pill {
  color: #ffffff;
}

.star-lang-pill:hover {
  color: #950a0a;
  background: rgba(149, 10, 10, 0.1);
}

.star-lang-pill.is-active {
  background: #950a0a;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(149, 10, 10, 0.3);
}

.star-lang-separator {
  color: rgba(100, 116, 139, 0.4);
  font-size: 11px;
}

#main-header .star-lang-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* =========================================================================
   2. Dropdown Style
   ========================================================================= */
.star-lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.star-lang-current-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #091e24;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.star-lang-current-btn:hover {
  border-color: #950a0a;
  color: #950a0a;
}

.star-lang-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
}

.star-lang-dropdown-wrapper.is-open .star-lang-arrow {
  transform: rotate(180deg);
}

.star-lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.star-lang-dropdown-wrapper.is-open .star-lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.star-lang-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.star-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #1e293b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.star-lang-item:hover {
  background: #f8fafc;
  color: #950a0a;
}

.star-lang-item.is-active {
  background: #fef2f2;
  color: #950a0a;
  font-weight: 700;
}

/* =========================================================================
   3. Flags Only Style
   ========================================================================= */
.star-lang-style-flags .star-lang-pill {
  font-size: 18px;
  padding: 4px 6px;
}

