/* ═══════════════════════════════════════════════
   SITE SWITCHER – Floating bottom-right buttons
   ═══════════════════════════════════════════════ */

.site-switcher {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

/* ── Individual button ── */
.site-switcher__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.12),
    0 1.5px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
  overflow: visible;
}

.site-switcher__link:hover {
  transform: scale(1.12);
  box-shadow:
    0 8px 28px rgba(0, 52, 113, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
}

.site-switcher__link:active {
  transform: scale(0.96);
}

/* ── Logo image inside the circle ── */
.site-switcher__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ── Tooltip label ── */
.site-switcher__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #003471 0%, #00508f 100%);
  padding: 5px 14px;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 52, 113, 0.28);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  letter-spacing: 0.3px;
}

/* small arrow pointing right */
.site-switcher__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #00508f;
  border-radius: 1px;
}

.site-switcher__link:hover .site-switcher__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ── Subtle pulse ring on first load ── */
@keyframes siteSwitcherPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 52, 113, 0.25); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 52, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 52, 113, 0); }
}

.site-switcher__link {
  animation: siteSwitcherPulse 2.2s ease-out 1s 1;
}

/* ── Responsive – slightly smaller on mobile ── */
@media (max-width: 576px) {
  .site-switcher {
    bottom: 18px;
    right: 14px;
    gap: 10px;
  }

  .site-switcher__link {
    width: 44px;
    height: 44px;
  }

  .site-switcher__logo {
    width: 28px;
    height: 28px;
  }

  /* hide tooltip on mobile – tap is enough */
  .site-switcher__tooltip {
    display: none;
  }
}
