/* ==============================================================================
   Samkaksha Foundation - Enhanced UI/UX Widgets (WhatsApp & Trust Center)
   ============================================================================== */

/* --- Floating WhatsApp Click-to-Chat Widget (Relocated to Right Side) --- */
.sam-wa-container {
  position: fixed;
  bottom: 92px;
  right: 24px;
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

/* Remove legacy right-side React WhatsApp icon */
a[aria-label="Chat on WhatsApp"]:not(.sam-wa-btn),
a[href*="wa.me"][class*="rounded-full"][class*="fixed"]:not(.sam-wa-btn) {
  display: none !important;
}

.sam-wa-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
  outline: none;
  border: none;
}

.sam-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sam-wa-btn:active {
  transform: scale(0.96);
}

/* Pulsating radar ring */
.sam-wa-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: sam-wa-pulse 2.2s infinite;
  pointer-events: none;
}

@keyframes sam-wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.sam-wa-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.sam-wa-badge {
  background: #ffffff;
  color: #1f2937;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: sam-wa-slideIn 0.4s ease;
  border: 1px solid #e5e7eb;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sam-wa-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
}

@keyframes sam-wa-slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .sam-wa-container {
    bottom: 84px;
    right: 16px;
    left: auto;
  }
  .sam-wa-badge {
    display: none; /* Keep clean on small mobile screens */
  }
}

