/* =========================================================
   EMERGENCY SYNAGOGUE DONATION POP-UP & FLOATING BUTTON
   "הצילו את בית הכנסת!"
   ========================================================= */

/* Backdrop overlay with blur */
.synagogue-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 35, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  direction: rtl;
  padding: 16px;
  box-sizing: border-box;
}

.synagogue-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container Card */
.synagogue-popup-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  padding: 38px 32px 32px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 25px 60px rgba(10, 35, 42, 0.35),
              0 0 0 1px rgba(210, 160, 63, 0.3),
              0 0 40px rgba(210, 160, 63, 0.15);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  overflow: hidden;
}

.synagogue-popup-overlay.active .synagogue-popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Decorative top border accent */
.synagogue-popup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #D2A03F 0%, #F5D382 50%, #B88528 100%);
}

/* Subtle background watermark / pattern */
.synagogue-popup-watermark {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(210, 160, 63, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Close Button (X) */
.synagogue-popup-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f4f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0E404B;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.synagogue-popup-close:hover {
  background: #e2e8ea;
  color: #c93434;
  transform: rotate(90deg);
}

/* Urgent Tag Pill */
.synagogue-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 52, 52, 0.1);
  color: #c93434;
  border: 1px solid rgba(201, 52, 52, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.synagogue-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c93434;
  box-shadow: 0 0 0 0 rgba(201, 52, 52, 0.7);
  animation: synagogue-pulse 1.8s infinite;
}

@keyframes synagogue-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 52, 52, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(201, 52, 52, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 52, 52, 0);
  }
}

/* Icon / Graphic */
.synagogue-popup-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(210, 160, 63, 0.18) 0%, rgba(210, 160, 63, 0.08) 100%);
  border: 1.5px solid rgba(210, 160, 63, 0.35);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(210, 160, 63, 0.12);
}

/* Main Heading */
.synagogue-popup-title {
  font-family: 'sprinter', sans-serif !important;
  font-size: clamp(26px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  color: #0E404B !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.5px;
}

.synagogue-popup-title span {
  color: #D2A03F;
}

/* Description Text */
.synagogue-popup-desc {
  font-family: 'sprinter', sans-serif !important;
  font-size: 16px !important;
  color: #3f5559 !important;
  line-height: 1.6 !important;
  margin: 0 auto 20px !important;
  max-width: 440px;
}

.synagogue-popup-desc strong {
  color: #0E404B;
  font-weight: 700;
}

/* Highlighted Features Strip */
.synagogue-popup-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.synagogue-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7faf9;
  border: 1px solid #e1e9e8;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #0E404B;
  font-weight: 600;
}

.synagogue-feature-item svg,
.synagogue-feature-item .icon {
  font-size: 14px;
  color: #D2A03F;
}

/* Call to Action Button */
.synagogue-popup-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: linear-gradient(135deg, #D2A03F 0%, #E8B958 50%, #B88528 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 16px 28px !important;
  border-radius: 16px !important;
  font-family: 'sprinter', sans-serif !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px rgba(210, 160, 63, 0.4) !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
}

.synagogue-popup-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 14px 32px rgba(210, 160, 63, 0.5) !important;
  color: #ffffff !important;
}

.synagogue-popup-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.synagogue-popup-btn:hover svg {
  transform: translateX(-4px);
}

/* Dismiss / Later Link */
.synagogue-popup-dismiss {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  color: #7b8e91;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-family: 'sprinter', sans-serif;
}

.synagogue-popup-dismiss:hover {
  color: #0E404B;
}

/* Bottom Trust Indicators */
.synagogue-popup-trust {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e8ecec;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: #6a8184;
}

.synagogue-popup-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   FLOATING BUTTON ("הצילו את בית הכנסת!")
   ========================================================= */
.synagogue-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0E404B;
  color: #ffffff;
  border: 2px solid #D2A03F;
  padding: 13px 20px 13px 18px;
  border-radius: 999px;
  font-family: 'sprinter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(14, 64, 75, 0.35),
              0 0 18px rgba(210, 160, 63, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.synagogue-floating-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: #134f5c;
  box-shadow: 0 14px 34px rgba(14, 64, 75, 0.45),
              0 0 24px rgba(210, 160, 63, 0.45);
}

.synagogue-floating-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  animation: synagogue-heartbeat 2s infinite ease-in-out;
}

@keyframes synagogue-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.synagogue-floating-badge {
  background: #D2A03F;
  color: #0E404B;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  margin-right: 2px;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 600px) {
  .synagogue-popup-card {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }
  .synagogue-popup-title {
    font-size: 24px !important;
  }
  .synagogue-popup-desc {
    font-size: 14.5px !important;
    margin-bottom: 16px !important;
  }
  .synagogue-popup-features {
    gap: 8px;
    margin-bottom: 18px;
  }
  .synagogue-feature-item {
    font-size: 12px;
    padding: 5px 10px;
  }
  .synagogue-popup-btn {
    padding: 14px 20px !important;
    font-size: 16.5px !important;
  }
  .synagogue-floating-btn {
    bottom: 18px;
    right: 18px;
    padding: 10px 15px;
    font-size: 14px;
  }
}
