/* Hide English source briefly while Bhashini applies preferred language (default Hindi). */
/* Lock scroll while pending so nothing jumps top↔bottom during translation */
html.bhashini-pending,
html.bhashini-pending body {
  overflow: hidden !important;
}

html.bhashini-pending body {
  opacity: 1;
  pointer-events: none;
}

html.bhashini-ready body {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.12s ease-out;
}

/* Full-screen overlay: blue / black gradient (above site + plugin UI) */
html.bhashini-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(30, 90, 180, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, rgba(5, 10, 20, 0.9) 0%, rgba(10, 26, 58, 0.9) 35%, rgba(13, 43, 107, 0.9) 65%, rgba(2, 6, 15, 0.9) 100%);
  pointer-events: none;
}

/* Center spin loader (no loading text) */
html.bhashini-pending::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 46%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  z-index: 2147483647;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #7eb6ff;
  border-right-color: #3d7dd6;
  border-radius: 50%;
  animation: bhashiniSpin 0.75s linear infinite;
  pointer-events: none;
}

@keyframes bhashiniSpin {
  to { transform: rotate(360deg); }
}

#bhashini-translating-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2147483647;
  background: linear-gradient(90deg, #061428, #1e5aad, #7eb6ff, #1e5aad, #061428);
  background-size: 200% 100%;
  animation: bhashiniBar 1.1s linear infinite;
  pointer-events: none;
}

@keyframes bhashiniBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.footer-brand-emblem {
  max-height: 72px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand-title {
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 11rem;
}
