/* ===== WHATSAPP FLOAT BUTTON ===== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.whatsapp-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  text-decoration: none;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.whatsapp-button:hover::before {
  width: 300px;
  height: 300px;
}

.whatsapp-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-button i {
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.whatsapp-text {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* Pulse Animation */
.whatsapp-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* animation: whatsapp-pulse 2s infinite; */
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Versão Compacta (apenas ícone) */
.whatsapp-float.compact .whatsapp-button {
  width: 60px;
  height: 60px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.whatsapp-float.compact .whatsapp-text {
  display: none;
}

.whatsapp-float.compact .whatsapp-button i {
  font-size: 2.25rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-button {
    /* padding: 0.875rem 1.25rem; */
  }

  .whatsapp-button i {
    font-size: 1.75rem;
  }

  .whatsapp-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  /* Auto compact em mobile */
  .whatsapp-button {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-button i {
    font-size: 2rem;
  }

  .whatsapp-pulse {
    width: 60px;
    height: 60px;
  }
}

/* Modo Escuro (Opcional) */
@media (prefers-color-scheme: dark) {
  .whatsapp-button {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  }

  .whatsapp-button:hover {
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
  }
}

/* Animação de Entrada */
.whatsapp-float {
  animation: whatsapp-slide-in 0.5s ease-out;
}

@keyframes whatsapp-slide-in {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hide on scroll down (opcional) */
.whatsapp-float.hide {
  transform: translateY(150px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
