@import url("./tokens.css");

/* jouw overige globale styles hieronder */
body{
  font-family: var(--font-body);
}
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-heading);
}

/* =========================
   WhatsApp floating bubble
========================= */

.wa-bubble{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

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

  padding: 12px 14px;
  border-radius: 999px;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);

  text-decoration: none;

  /* aandacht trekken */
  animation: wa-float 3.6s ease-in-out infinite;
}

.wa-bubble:hover{
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* WhatsApp icon */
.wa-bubble__icon{
  width: 22px;
  height: 22px;
  fill: #25D366;
  flex: 0 0 auto;

  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* Label text */
.wa-bubble__text{
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;

  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* Subtiele ping ring */
.wa-bubble::after{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.45);
  opacity: 0;
  pointer-events: none;

  animation: wa-ping 2.8s ease-out infinite;
}

/* Floating animation */
@keyframes wa-float{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Ping animation */
@keyframes wa-ping{
  0%   { transform: scale(0.96); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1.14); opacity: 0; }
}

/* =========================
   Mobile: alleen icoon
========================= */

@media (max-width: 480px){
  .wa-bubble{
    padding: 12px;
  }

  .wa-bubble__text{
    display: none;
  }
}

.wa-bubble__icon{
  width: 22px;
  height: 22px;
  color: #25D366; /* currentColor voor de SVG */
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}