/* 
* RAKWEB - Estilos do botão flutuante de WhatsApp
* Tema escuro com contraste excelente
*/

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.whatsapp-button a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.whatsapp-button i {
  font-size: 30px;
  color: white;
}

.whatsapp-button .tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 8px 15px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.whatsapp-button .tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary-dark);
}

.whatsapp-button a:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Animação de pulso */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-button a {
  animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 576px) {
  .whatsapp-button {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-button a {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-button i {
    font-size: 25px;
  }
}
