/* Floating language switcher and small shared utilities */

.lang-switch {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1080; /* above navbar */
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  color: #111827;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.lang-switch:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.lang-switch a {
  text-decoration: none;
  color: inherit;
  padding: 0 2px;
  transition: color 0.2s ease;
  font-weight: 500;
}

.lang-switch a:hover {
  color: #1F5FA8;
}

.lang-switch .sep { 
  color: #6b7280; 
  margin: 0 2px; 
}

html[data-bs-theme="dark"] .lang-switch {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.06);
}

/* Ensure logo size across variants */
.brand-logo { 
  height: 36px; 
  width: auto; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lang-switch {
    font-size: 13px;
    padding: 5px 8px;
  }
}