/**
 * Exit-Intent Popup Styles
 * 
 * Clean, modern design that grabs attention without being annoying
 * Optimized for conversion
 */

/* Overlay */
.bpm-exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.bpm-exit-overlay.bpm-exit-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal */
.bpm-exit-modal {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bpm-exit-visible .bpm-exit-modal {
  transform: scale(1) translateY(0);
}

/* Close button */
.bpm-exit-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bpm-exit-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  transform: rotate(90deg);
}

/* Content */
.bpm-exit-content {
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}

.bpm-exit-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

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

.bpm-exit-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.bpm-exit-message {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bpm-exit-message strong {
  color: rgb(42, 111, 243);
  font-weight: 600;
}

/* Features list */
.bpm-exit-features {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bpm-exit-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #374151;
}

.bpm-exit-feature:last-child {
  margin-bottom: 0;
}

.bpm-exit-checkmark {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Actions */
.bpm-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bpm-exit-cta {
  background: linear-gradient(135deg, rgb(42, 111, 243) 0%, rgb(59, 130, 246) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(42, 111, 243, 0.3);
}

.bpm-exit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 111, 243, 0.4);
}

.bpm-exit-cta:active {
  transform: translateY(0);
}

.bpm-exit-dismiss {
  background: transparent;
  color: #6b7280;
  border: none;
  padding: 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bpm-exit-dismiss:hover {
  color: #374151;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .bpm-exit-content {
    padding: 2.5rem 1.5rem 2rem;
  }
  
  .bpm-exit-title {
    font-size: 1.5rem;
  }
  
  .bpm-exit-message {
    font-size: 1rem;
  }
  
  .bpm-exit-emoji {
    font-size: 3rem;
  }
  
  .bpm-exit-features {
    padding: 1rem;
  }
  
  .bpm-exit-feature {
    font-size: 0.875rem;
  }
}

/* Accessibility */
.bpm-exit-modal:focus {
  outline: 2px solid rgb(42, 111, 243);
  outline-offset: 4px;
}

/* Print styles */
@media print {
  .bpm-exit-overlay {
    display: none !important;
  }
}

