/* Rupam Saree - Language Switcher Styles */
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 38, 22, 0.08);
  border: 1px solid rgba(139, 38, 22, 0.2);
  color: var(--color-ink, #211c19);
  padding: 6px 10px;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dark-mode .lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3ede6;
}

.lang-btn:hover {
  background: rgba(139, 38, 22, 0.16);
  border-color: rgba(139, 38, 22, 0.4);
}

body.dark-mode .lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  min-width: 140px;
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  animation: langDropdownIn 0.2s ease-out;
}

body.dark-mode .lang-dropdown {
  background: #251e19;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.lang-dropdown.is-open {
  display: flex;
}

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

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-ink, #211c19);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

body.dark-mode .lang-option {
  color: #f3ede6;
}

.lang-option:hover {
  background: rgba(139, 38, 22, 0.1);
  color: #8b2616;
}

body.dark-mode .lang-option:hover {
  background: rgba(217, 79, 38, 0.2);
  color: #f5a38a;
}

.lang-option.active {
  background: #8b2616;
  color: #ffffff !important;
  font-weight: 600;
}

body.dark-mode .lang-option.active {
  background: #d94f26;
  color: #ffffff !important;
}

/* Enhanced Smart Search Result Styling */
.search-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(139, 38, 22, 0.12);
  color: #8b2616;
  margin-left: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

body.dark-mode .search-badge {
  background: rgba(217, 79, 38, 0.25);
  color: #f8967b;
}

.search-result-desc {
  font-size: 0.76rem;
  color: #8c827a;
  display: block;
  margin-top: 2px;
}
