/**
 * StreamVerse — Floating WhatsApp Widget
 *
 * A single global, fixed-position component appended once to every page
 * (identical markup everywhere, right after the Footer). It sits outside
 * the normal document flow (`position: fixed`), so it never affects any
 * page's layout, and it is not part of the Header or Footer.
 *
 * Built purely from existing tokens: --radius-full for the perfect
 * circle, --shadow-card for a restrained resting elevation (no glow),
 * --duration-micro / --ease-standard for the same hover-transition
 * timing every other interactive element on the site already uses.
 * #25D366 is the one new value here — WhatsApp's own brand green,
 * required by spec for this single icon, the same way brand-specific
 * colors are handled elsewhere (e.g. this project's own #A3AED0 body-copy
 * literal) without introducing a new site-wide color system.
 *
 * The reduced-motion sitewide floor in base.css (`@media
 * (prefers-reduced-motion: reduce) { *, *::before, *::after { ... } }`)
 * already applies to this component's transition automatically — no
 * extra override needed here.
 */

.whatsapp-widget {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.35),
    var(--shadow-card);
  transition: transform var(--duration-micro) var(--ease-standard),
    box-shadow var(--duration-micro) var(--ease-standard);
}

.whatsapp-widget__icon {
  width: 28px;
  height: 28px;
  color: #FFFFFF;
}

/* Desktop hover: a small, elegant lift — no pulsing, no extra glow. */
@media (hover: hover) {
  .whatsapp-widget:hover {
    transform: scale(1.06);
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.45),
      var(--shadow-card-hover);
  }
}

/* Touch/tap feedback on mobile and any pointer. */
.whatsapp-widget:active {
  transform: scale(0.94);
}

.whatsapp-widget:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

/* Mobile: slightly smaller button, tighter edge spacing (18px), per spec. */
@media (max-width: 767px) {
  .whatsapp-widget {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-widget__icon {
    width: 26px;
    height: 26px;
  }
}
