/**
 * Exit-Intent Popup Styles
 */

#exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#exit-intent-popup.show {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay semi-transparente */
.exit-intent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* Modal card */
.exit-intent-modal {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão fechar */
.exit-intent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease;
  z-index: 10;
}

.exit-intent-close:hover {
  color: #333;
}

/* Conteúdo */
.exit-intent-content {
  padding: 48px 32px 32px 32px;
  text-align: center;
}

/* Ícone decorativo */
.exit-intent-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: iconBounce 1s ease-in-out;
}

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

/* Título */
.exit-intent-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

/* Texto descritivo */
.exit-intent-text {
  font-size: 15px;
  color: #555;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* Lista de features */
.exit-intent-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
}

.exit-intent-features li {
  font-size: 14px;
  color: #333;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exit-intent-features li::before {
  content: "✓";
  color: #F5C842;
  font-weight: bold;
  font-size: 16px;
}

/* Botão CTA principal */
.exit-intent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F5C842;
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.3);
}

.exit-intent-cta:hover {
  background: #FDD366;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 200, 66, 0.4);
  text-decoration: none;
  color: #0f172a;
}

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

/* Ícone WhatsApp */
.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botão secundário */
.exit-intent-later {
  background: transparent;
  color: #666;
  padding: 12px 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
}

.exit-intent-later:hover {
  background: #f5f5f5;
  color: #333;
  border-color: #bbb;
}

/* Responsivo */
@media (max-width: 480px) {
  .exit-intent-modal {
    width: 95%;
  }

  .exit-intent-content {
    padding: 40px 24px 24px 24px;
  }

  .exit-intent-title {
    font-size: 20px;
  }

  .exit-intent-text {
    font-size: 14px;
  }

  .exit-intent-features li {
    font-size: 13px;
  }

  .exit-intent-cta,
  .exit-intent-later {
    font-size: 14px;
    padding: 12px 24px;
  }
}
