/* ===== FLOATING WHATSAPP BUTTON ===== */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-button {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
  transform: scale(0.95);
}

.whatsapp-button i {
  font-size: 32px;
  color: white;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
  transform: scale(1.1) rotate(10deg);
}

/* Pulse animasyonu */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1), 0 0 0 30px rgba(37, 211, 102, 0.05);
  }
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
}

/* Bildirim badge (opsiyonel - mesaj sayısı için) */
.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF3B30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
  animation: badge-bounce 0.5s ease;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Tooltip - hover'da mesaj */
.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: linear-gradient(135deg, #0a1d3b 0%, #132f54 100%);
  color: #ffd400;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #132f54;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

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

/* Responsive - Mobil */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    width: 55px;
    height: 55px;
  }

  .whatsapp-button i {
    font-size: 28px;
  }

  .whatsapp-tooltip {
    display: none; /* Mobilde tooltip gizli */
  }

  @keyframes pulse-whatsapp {
    0% {
      box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
      box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05);
    }
    100% {
      box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
  }
}

/* Scroll Top butonu ile çakışmayı önle */
#scrollTopBtn {
  bottom: 100px !important; /* WhatsApp butonunun üstünde */
}

@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 90px !important;
  }
}

/* Print'te gizle */
@media print {
  .whatsapp-float {
    display: none !important;
  }
}
