/* Fanda Push Notifications — frontend styles */

/* Auto-prompt modal (dating-style pre-permission) */
#fpn-prompt {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 6, 24, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
#fpn-prompt.fpn-show { opacity: 1; }
.fpn-prompt-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #2b1650 0%, #4c1d95 55%, #7c2d6e 100%);
  border-radius: 24px;
  padding: 34px 26px 26px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
#fpn-prompt.fpn-show .fpn-prompt-card { transform: translateY(0) scale(1); }
.fpn-prompt-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(236,72,153,.55) 0%, rgba(236,72,153,0) 70%);
  pointer-events: none;
}
.fpn-prompt-emoji {
  font-size: 46px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  animation: fpn-ring 1.6s ease-in-out infinite;
}
@keyframes fpn-ring {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
}
.fpn-prompt-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.fpn-prompt-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin-bottom: 22px;
}
.fpn-prompt-allow {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ec4899, #f97316);
  box-shadow: 0 10px 26px rgba(236,72,153,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fpn-prompt-allow:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(236,72,153,.55); }
.fpn-prompt-allow:active { transform: translateY(0); }
.fpn-prompt-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
}
.fpn-prompt-dismiss:hover { color: rgba(255,255,255,.85); text-decoration: underline; }

/* Shortcode button */
.fpn-subscribe-wrap { display: inline-flex; align-items: center; gap: 10px; }
.fpn-toggle-btn {
  background: #7c3aed;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
}
.fpn-toggle-btn.fpn-on { background: #059669; }
.fpn-toggle-btn.fpn-blocked { background: #6b7280; cursor: not-allowed; }
.fpn-status { font-size: 13px; color: #6b7280; }
.fpn-status.fpn-on { color: #059669; font-weight: 600; }

/* Floating bell */
#fpn-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #7c3aed;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
#fpn-float-btn.fpn-on { background: #059669; }
#fpn-float-btn .fpn-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  display: none;
  border: 2px solid #fff;
}
