/**
 * WP WhatsApp Pro Tracker – Public CSS
 * Premium floating button, animations, mobile responsiveness.
 */

/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

/* ── CSS Custom Properties (defaults – overridden by inline) */
:root {
  --wppro-grad-start: #25D366;
  --wppro-grad-end:   #128C7E;
  --wppro-text-color: #ffffff;
  --wppro-font-size:  17px;
  --wppro-height:     60px;
  --wppro-radius:     999px;
  --wppro-shadow:     0 12px 30px rgba(37, 211, 102, 0.25);
  --wppro-glow:       0 0 40px rgba(37, 211, 102, 0.18);
}

/* ── Float container (position set via inline CSS) ─────── */
#wppro-float-btn {
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── GDPR notice ────────────────────────────────────────── */
.wppro-gdpr-notice {
  font-size: 10px;
  color: #555;
  margin: 0 0 4px;
  text-align: center;
}

/* ── The button itself ──────────────────────────────────── */
.wppro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  height: var(--wppro-height);
  padding: 0 28px;
  background: linear-gradient(135deg, var(--wppro-grad-start) 0%, var(--wppro-grad-end) 100%);
  color: var(--wppro-text-color);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--wppro-font-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--wppro-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: var(--wppro-shadow), var(--wppro-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}

/* Icon */
.wppro-btn .wppro-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

.wppro-btn .wppro-icon svg {
  width: 26px;
  height: 26px;
}

/* Text */
.wppro-btn .wppro-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* ── Hover effect ───────────────────────────────────────── */
.wppro-btn:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow:
    0 18px 40px rgba(37, 211, 102, 0.4),
    0 0 60px rgba(37, 211, 102, 0.28);
  filter: brightness(1.08);
  color: var(--wppro-text-color);
  text-decoration: none;
}

/* ── Click / active effect ──────────────────────────────── */
.wppro-btn:active {
  transform: scale(0.96) translateY(0);
  box-shadow: var(--wppro-shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* ── Pulse animation ────────────────────────────────────── */
@keyframes wppro-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.wppro-btn.wppro-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--wppro-grad-start), var(--wppro-grad-end));
  animation: wppro-pulse-ring 2s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}

.wppro-btn.wppro-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--wppro-grad-start), var(--wppro-grad-end));
  animation: wppro-pulse-ring 2s ease-out 1s infinite;
  z-index: -1;
  pointer-events: none;
}

/* ── Shortcode inline button ────────────────────────────── */
.wppro-shortcode-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.wppro-shortcode-btn {
  min-width: 260px;
}

/* ── Mobile responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  #wppro-float-btn {
    bottom: 20px !important;
  }

  .wppro-btn {
    min-width: unset;
    width: 90%;
    max-width: 350px;
    height: 55px;
    font-size: calc(var(--wppro-font-size) - 1px);
    padding: 0 20px;
  }

  .wppro-btn .wppro-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Desktop hidden on mobile (when setting enabled) ─────── */
.wppro-hidden-mobile {
  display: none !important;
}

@media (min-width: 641px) {
  .wppro-hidden-desktop {
    display: none !important;
  }
}

/* ── Reduced motion support ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wppro-btn,
  .wppro-btn::before,
  .wppro-btn::after {
    animation: none !important;
    transition: none !important;
  }
}
