/* 
 * WhatsApp Floating Button Styles
 * Shared CSS file for the WhatsApp floating button
 * This file is used across all pages of the website
 */

/* Enhanced Floating WhatsApp button styling */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Animation for attention */
@keyframes pulse {
  0% { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(1); }
  100% { transform: scale(1); }
}

.whatsapp-float {
  animation: pulse 5s infinite;
  animation-delay: 3s;
}

/* Add notification dot for extra attention */
.whatsapp-float::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #ff5722;
  border-radius: 50%;
  border: 2px solid white;
}

/* Additional attention animation */
@keyframes attention {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-15px) scale(1.1); }
  50% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-5px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.whatsapp-float.attention {
  animation: attention 1s ease;
}

/* Media queries for responsive behavior */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}