/* Language Selector */
.dc-lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.dc-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: Inter, sans-serif;
  color: #111827;
  transition: border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.dc-lang-btn:hover {
  border-color: #9ca3af;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dc-lang-btn:focus {
  outline: none;
  border-color: #374151;
}

.dc-lang-globe {
  flex-shrink: 0;
  opacity: 0.7;
}

.dc-lang-chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.dc-lang-selector.open .dc-lang-chevron {
  transform: rotate(180deg);
}

.dc-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  padding: 6px;
  min-width: 178px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dc-lang-selector.open .dc-lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dc-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: #374151;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  transition: background 0.13s;
  white-space: nowrap;
}

.dc-lang-option:hover {
  background: #f3f4f6;
  color: #111827;
}

.dc-lang-option.active {
  color: #15803d;
  font-weight: 600;
}

.dc-lang-option.active:hover {
  background: #f0fdf4;
}

.dc-lang-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile: position dropdown to left if near right edge */
@media (max-width: 479px) {
  .dc-lang-dropdown {
    right: auto;
    left: 0;
  }
  .dc-lang-selector {
    margin-right: 4px;
  }
}
