/* ============================================================
   SharkOps Floating Actions
   - WhatsApp button (bottom right)
   - Scroll-to-top button (bottom left)
   ============================================================ */

.sk-fa {
  position: fixed;
  bottom: 24px;
  z-index: 9990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  font-size: 22px;
  color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              opacity 0.3s ease;
  will-change: transform, opacity;
}

.sk-fa:focus-visible {
  box-shadow: 0 0 0 4px rgba(215, 192, 27, 0.45);
}

/* ---------- WhatsApp (right) ---------- */
.sk-fa-whatsapp {
  right: 24px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 2px 6px rgba(18, 140, 126, 0.3);
}

.sk-fa-whatsapp:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.55),
    0 4px 10px rgba(18, 140, 126, 0.45);
}

/* Pulse rings */
.sk-fa-whatsapp::before,
.sk-fa-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: sk-fa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.sk-fa-whatsapp::after { animation-delay: 1.2s; }

@keyframes sk-fa-pulse {
  0%   { transform: scale(1);    opacity: 0.85; }
  100% { transform: scale(1.9);  opacity: 0; }
}

/* Tooltip */
.sk-fa-whatsapp::part(tip) { /* fallback noop for browsers without ::part */ }

.sk-fa-tip {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%) translateX(8px);
  white-space: nowrap;
  background: #0f1b2d;
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.sk-fa-whatsapp .sk-fa-tip { right: calc(100% + 12px); transform: translateY(50%); }
.sk-fa-top .sk-fa-tip      { left:  calc(100% + 12px); transform: translateY(50%); }

.sk-fa:hover .sk-fa-tip { opacity: 1; }
.sk-fa-whatsapp:hover .sk-fa-tip { transform: translateY(50%) translateX(0); }
.sk-fa-top:hover      .sk-fa-tip { transform: translateY(50%) translateX(0); }

/* ---------- Scroll-to-top (left) ---------- */
.sk-fa-top {
  left: 24px;
  background: linear-gradient(135deg, #1b2f45 0%, #0f1b2d 100%);
  box-shadow:
    0 8px 24px rgba(15, 27, 45, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.25);
  color: #d7c01b;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  border: 1px solid rgba(215, 192, 27, 0.25);
}

.sk-fa-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sk-fa-top:hover {
  transform: translateY(-3px) scale(1.06);
  background: linear-gradient(135deg, #d7c01b 0%, #b8a317 100%);
  color: #0f1b2d;
  box-shadow:
    0 14px 32px rgba(215, 192, 27, 0.4),
    0 4px 10px rgba(184, 163, 23, 0.4);
}

/* Progress ring */
.sk-fa-top-ring {
  position: absolute;
  inset: -2px;
  pointer-events: none;
}
.sk-fa-top-ring circle {
  fill: none;
  stroke: rgba(215, 192, 27, 0.9);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 4px rgba(215, 192, 27, 0.5));
  transition: stroke-dashoffset 0.1s linear;
}

/* Reposition on small screens */
@media (max-width: 520px) {
  .sk-fa { width: 48px; height: 48px; font-size: 19px; bottom: 16px; }
  .sk-fa-whatsapp { right: 16px; }
  .sk-fa-top      { left:  16px; }
  .sk-fa-tip { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sk-fa-whatsapp::before,
  .sk-fa-whatsapp::after { animation: none; opacity: 0; }
  .sk-fa { transition: opacity 0.2s ease; }
  .sk-fa:hover { transform: none; }
}
