/* ==========================================================================
   SOLAI SPORTS INFRA — PREMIUM 3D FLOATING CALL NOW BUTTON
   Ultra-realistic depth, convex glossy lens, raised 3D phone icon & soft shadows
   ========================================================================== */

:root {
  --call-btn-size: 62px;
  --call-btn-size-mob: 54px;
  --call-green-top: #2dd4bf;
  --call-green-mid: #16a34a;
  --call-green-deep: #15803d;
  --call-green-dark: #0b4f24;
}

/* Base Floating Container */
.call-float-btn {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: var(--call-btn-size);
  height: var(--call-btn-size);
  border-radius: 50%;
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
  animation: callFloatDrift 4s ease-in-out infinite;
}

/* Fallback if page does not have WhatsApp float button */
body:not(:has(.whatsapp-float-btn)) .call-float-btn {
  bottom: 28px;
}

/* 3D Convex Dome Surface */
.call-btn-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 40%, #15803d 75%, #0d5326 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Multi-stage realistic 3D depth and floor shadow */
  box-shadow:
    0 16px 32px -4px rgba(0, 0, 0, 0.45),
    0 8px 18px -2px rgba(22, 163, 74, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.3),
    inset 0 2.5px 3px rgba(255, 255, 255, 0.75),
    inset 0 -3.5px 6px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glossy Specular Reflection (Curved Glass Dome) */
.call-btn-gloss {
  position: absolute;
  top: 2px;
  left: 6px;
  right: 6px;
  height: 48%;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.05) 85%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(0.3px);
  z-index: 2;
}

/* Bottom Glass Rim Reflection */
.call-btn-surface::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 12px;
  right: 12px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0) 75%
  );
  pointer-events: none;
  z-index: 2;
}

/* Raised 3D Phone Icon Wrapper */
.call-icon-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  /* 3D Emboss / Raised effect: bright rim light above, cast shadow below */
  filter: 
    drop-shadow(0 2.5px 3px rgba(0, 0, 0, 0.55))
    drop-shadow(0 -1px 0.8px rgba(255, 255, 255, 0.8));
  animation: phoneRingShake 5s ease-in-out infinite;
}

.call-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Soft Radial Sonar Waves / Aura Pulse behind 3D Button */
.call-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.5) 0%, rgba(34, 197, 94, 0) 70%);
  pointer-events: none;
  z-index: -1;
  animation: callSonarWave 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.call-pulse-ring.delay {
  animation-delay: 1.4s;
}

/* Premium Floating Tooltip / Callout */
.call-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(12px) scale(0.95);
  background: rgba(11, 22, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 197, 94, 0.25);
  z-index: 10;
}

/* Little pointer triangle */
.call-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(11, 22, 14, 0.94);
}

.call-tooltip-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-tooltip-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: liveBeacon 1.5s infinite;
}

.call-tooltip-number {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
  letter-spacing: 0.2px;
}

/* Hover & Focus Interactions */
.call-float-btn:hover {
  transform: translateY(-5px) scale(1.06);
}

.call-float-btn:hover .call-btn-surface {
  background: linear-gradient(145deg, #34d399 0%, #22c55e 35%, #16a34a 75%, #15803d 100%);
  box-shadow:
    0 22px 38px -4px rgba(0, 0, 0, 0.55),
    0 12px 24px -2px rgba(34, 197, 94, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.35),
    inset 0 3px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3.5px 6px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.call-float-btn:hover .call-btn-gloss {
  opacity: 1;
}

.call-float-btn:hover .call-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

.call-float-btn:hover .call-icon-wrapper {
  animation: phoneRingFast 0.8s ease-in-out infinite;
}

/* Tactile 3D Depress on Active / Tap */
.call-float-btn:active {
  transform: translateY(2px) scale(0.96);
  transition: transform 0.08s ease;
}

.call-float-btn:active .call-btn-surface {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(22, 163, 74, 0.4),
    inset 0 2px 5px rgba(0, 0, 0, 0.4),
    inset 0 -1.5px 3px rgba(255, 255, 255, 0.5);
}

/* Keyframe Animations */
@keyframes callFloatDrift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes callSonarWave {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.9;
  }
  100% {
    width: 220%;
    height: 220%;
    opacity: 0;
  }
}

@keyframes phoneRingShake {
  0%, 80%, 100% {
    transform: rotate(0deg) scale(1);
  }
  82% {
    transform: rotate(-16deg) scale(1.1);
  }
  85% {
    transform: rotate(14deg) scale(1.1);
  }
  88% {
    transform: rotate(-12deg) scale(1.08);
  }
  91% {
    transform: rotate(10deg) scale(1.08);
  }
  94% {
    transform: rotate(-5deg) scale(1.04);
  }
  97% {
    transform: rotate(2deg) scale(1.02);
  }
}

@keyframes phoneRingFast {
  0%, 100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-18deg);
  }
  40% {
    transform: rotate(16deg);
  }
  60% {
    transform: rotate(-12deg);
  }
  80% {
    transform: rotate(10deg);
  }
}

@keyframes liveBeacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .call-float-btn {
    bottom: 88px;
    right: 20px;
    width: var(--call-btn-size-mob);
    height: var(--call-btn-size-mob);
  }

  body:not(:has(.whatsapp-float-btn)) .call-float-btn {
    bottom: 20px;
  }

  .call-icon-wrapper {
    width: 24px;
    height: 24px;
  }

  .call-tooltip {
    display: none; /* Keep clean on touch screens */
  }
}
