/**
 * WebiaProd.ai — effects.css v3
 * WhatsApp, Sticky bar, FOMO, Exit intent, Scroll reveal, Particles
 */

/* ─── WhatsApp flottant ──────────────────────────────────────── */
#wp-whatsapp {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
#wp-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .6);
}
#wp-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
#wp-whatsapp-pulse {
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: #FC5B49;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: .7; }
}
#wp-whatsapp-label {
  position: fixed;
  bottom: 100px;
  right: 90px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all .3s ease;
  pointer-events: none;
}
#wp-whatsapp:hover ~ #wp-whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Sticky CTA bar ─────────────────────────────────────────── */
#wp-sticky-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #0d0d0d;
  border-top: 2px solid #FC5B49;
  padding: 10px 24px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: bottom .45s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
#wp-sticky-bar.sticky-visible { bottom: 0; }
#wp-sticky-bar .sticky-text {
  margin: 0 !important;
  color: #ccc !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
#wp-sticky-bar .sticky-text strong { color: #FC5B49 !important; }
#wp-sticky-bar .sticky-cta {
  background: #FC5B49;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
  flex-shrink: 0;
}
#wp-sticky-bar .sticky-cta:hover {
  background: #e04438;
  transform: translateY(-1px);
}
#wp-sticky-bar .sticky-dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
#wp-sticky-bar .sticky-dismiss:hover { color: #fff; }

/* ─── FOMO notification ──────────────────────────────────────── */
#wp-fomo {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  max-width: 310px;
  transform: translateX(calc(-100% - 24px));
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
  border-left: 4px solid #FC5B49;
}
#wp-fomo.fomo-visible { transform: translateX(0); }
.fomo-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FC5B49 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 17px;
}
.fomo-body {
  flex: 1;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #1a1a1a !important;
  min-width: 0;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
.fomo-body strong { font-size: 13px !important; color: #0d0d0d !important; }
.fomo-city  { color: #888 !important; font-weight: 400 !important; }
.fomo-time  { color: #aaa !important; font-size: 11px !important; }
.fomo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 13px;
  line-height: 1;
  transition: color .2s;
}
.fomo-close:hover { color: #555; }

/* ─── Exit intent overlay ────────────────────────────────────── */
#wp-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 20px;
}
#wp-exit-popup.exit-visible {
  opacity: 1;
  pointer-events: all;
}
.exit-popup-box {
  background: #fff !important;
  border-radius: 18px !important;
  padding: 48px 40px 36px !important;
  max-width: 460px;
  width: 100%;
  text-align: center !important;
  position: relative;
  animation: exitSlideIn .4s cubic-bezier(.34, 1.56, .64, 1) both;
  color: #0f0f0f !important;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
  box-sizing: border-box !important;
}
@keyframes exitSlideIn {
  from { transform: scale(.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1) translateY(0);    opacity: 1; }
}
.exit-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #bbb;
  line-height: 1;
  transition: color .2s;
}
.exit-close:hover { color: #555; }
.exit-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}
.exit-badge {
  display: inline-block;
  background: #FFF3F2;
  color: #FC5B49;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.exit-popup-box h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f0f0f !important;
  margin: 0 0 12px !important;
  line-height: 1.25 !important;
}
.exit-popup-box p {
  color: #666 !important;
  font-size: 15px !important;
  margin: 0 0 24px !important;
  line-height: 1.65 !important;
}
.exit-cta {
  display: block;
  background: #FC5B49;
  color: #fff !important;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease;
  width: 100%;
}
.exit-cta:hover {
  background: #e04438;
  transform: translateY(-2px);
}
.exit-skip {
  display: block;
  margin-top: 14px;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  width: 100%;
}
.exit-skip:hover { color: #888; }
.exit-reassure {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.exit-reassure span {
  font-size: 12px;
  color: #aaa;
}

/* ─── Scroll reveal ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Particles canvas ───────────────────────────────────────── */
#wp-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #wp-whatsapp  { bottom: 80px; right: 16px; width: 50px; height: 50px; }
  #wp-fomo      { max-width: 270px; left: 12px; }
  #wp-sticky-bar { gap: 10px; padding: 10px 40px 10px 16px; }
  #wp-sticky-bar .sticky-text { font-size: 13px; }
  .exit-popup-box { padding: 40px 20px 28px; }
  .exit-popup-box h2 { font-size: 22px; }
}
