/* ============================================================
   AELAANY — WHATSAPP FLOATING BUTTON (Global)
   Fixed position, visible on all pages
   ============================================================ */

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0);  }
}

.aelaany-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 99990;

  display: flex;
  align-items: center;
  gap: 10px;

  background: #25D366;
  color: var(--clr-white);
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Collapsed on small screens — expands on hover */
  overflow: hidden;
  max-width: 52px;
}

body.lang-ar .aelaany-whatsapp-float {
  right: auto;
  left: 24px;
  flex-direction: row-reverse;
  padding: 12px 14px 12px 20px;
}

.aelaany-whatsapp-float:hover {
  max-width: 220px;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  color: var(--clr-white);
}

.aelaany-whatsapp-float svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.aelaany-whatsapp-float:hover svg {
  transform: scale(1.1);
}

.aelaany-whatsapp-label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease 0.05s;
  font-family: var(--font-en-heading);
}

body.lang-ar .aelaany-whatsapp-label {
  font-family: var(--font-ar-heading);
}

.aelaany-whatsapp-float:hover .aelaany-whatsapp-label {
  opacity: 1;
}

/* ── Mobile: always show icon only ──────────────────────── */
@media (max-width: 640px) {
  .aelaany-whatsapp-float {
    padding: 14px;
    border-radius: var(--radius-circle);
    max-width: 52px;
    bottom: 20px;
    right: 16px;
  }

  body.lang-ar .aelaany-whatsapp-float {
    right: auto;
    left: 16px;
  }

  .aelaany-whatsapp-float:hover {
    max-width: 52px;
    border-radius: var(--radius-circle);
  }

  .aelaany-whatsapp-label {
    display: none;
  }
}
