/**
 * WhatsApp Floating Button Styles
 * BEM-based CSS
 */

/* ==================== Floating Action Buttons ==================== */
.floating-actions {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* ==================== WhatsApp Modal ==================== */
.whatsapp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-modal.active {
  opacity: 1;
}

.whatsapp-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.whatsapp-modal__container {
  position: relative;
  background: var(--dark-bg-light, #161b22);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid #25D366;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.whatsapp-modal.active .whatsapp-modal__container {
  transform: scale(1);
}

.whatsapp-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.whatsapp-modal__close:hover {
  opacity: 1;
}

.whatsapp-modal__title {
  color: #25D366;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.whatsapp-modal__subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.whatsapp-modal__qr {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.whatsapp-modal__qr img {
  width: 200px;
  height: 200px;
  display: block;
}

.whatsapp-modal__number {
  color: #ccc;
  font-size: 0.875rem;
}

.whatsapp-modal__number strong {
  color: #25D366;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 7rem;
    right: 50%;
    transform: translateX(50%);
    gap: 0.75rem;
  }

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

  .whatsapp-float__btn svg {
    width: 28px;
    height: 28px;
  }
}
