/* ==========================================================================
   MGID Facebook Reels Traffic Viral Funnel - Stylesheet
   Compatible with Astra Theme, GeneratePress & Any WordPress Theme
   ========================================================================== */

#snv-dyn-video,
#snv-dyn-video *,
#snv-dyn-scroll,
#snv-dyn-scroll *,
#snv-dyn-footer,
#snv-dyn-footer * {
  box-sizing: border-box;
}

/* Floating Circular Video Bubble */
#snv-dyn-video {
  position: fixed;
  z-index: 2147483000;
  top: 46%;
  right: 14px;
  width: 108px;
  height: 108px;
  display: none;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 2px solid #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

#snv-dyn-video.snv-dyn-visible {
  display: block;
  animation: snv-dyn-pop 0.35s ease-out both;
}

#snv-dyn-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

/* Unmute Speaker Badge */
.snv-dyn-unmute {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 8px;
  font: 700 11px/1.2 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  animation: snv-dyn-pulse 1.2s infinite;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@keyframes snv-dyn-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* Floating "Scroll Down" Hint Badge */
#snv-dyn-scroll {
  position: fixed;
  z-index: 2147483001;
  top: 59%;
  left: 14px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: #242424;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

#snv-dyn-scroll.snv-dyn-visible {
  display: flex;
  animation: snv-dyn-pop 0.35s ease-out both;
}

#snv-dyn-scroll .snv-dyn-arrow {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  animation: snv-dyn-bounce 1s infinite;
}

/* Fixed Bottom Sticky Footer Button */
#snv-dyn-footer {
  position: fixed;
  z-index: 2147483002;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  justify-content: center;
  pointer-events: none;
}

#snv-dyn-footer.snv-dyn-visible {
  display: flex;
  animation: snv-dyn-pop 0.35s ease-out both;
}

#snv-dyn-footer button,
#snv-dyn-footer a {
  pointer-events: auto;
  display: block;
  width: min(100%, 420px);
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: #ffffff;
  background: #f23878;
  text-align: center;
  text-decoration: none;
  font: 700 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#snv-dyn-footer button:hover,
#snv-dyn-footer a:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

#snv-dyn-footer button:active,
#snv-dyn-footer a:active {
  transform: translateY(1px);
}

/* WhatsApp Final Step Button (Green) */
#snv-dyn-footer .snv-dyn-wa {
  background: #168b50 !important;
}

/* Animations */
@keyframes snv-dyn-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes snv-dyn-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Mobile Responsive Optimization */
@media (max-width: 480px) {
  #snv-dyn-video {
    width: 96px;
    height: 96px;
    right: 10px;
    top: 46%;
  }
  #snv-dyn-scroll {
    left: 8px;
    top: 59%;
    padding: 9px 11px;
    font-size: 13px;
  }
  #snv-dyn-footer {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
