/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  position: relative;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: white;
  display: flex;
  flex-direction: column;
}

.popup-overlay.show .popup-container {
  transform: scale(1) translateY(0);
}

.popup-image-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  flex: 1;
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
}

.popup-button-container {
  padding: 1rem;
  background: white;
  border-radius: 0 0 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* ADICIONADO: Espaço entre os botões */
}

/* MODIFICADO: Estilo aplicado a ambos os botões */
.popup-ok-button,
.popup-app-button {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
  text-decoration: none; /* Garante que o link não tenha sublinhado */
  text-align: center;
  display: inline-block;
}

/* MODIFICADO: Hover aplicado a ambos os botões */
.popup-ok-button:hover,
.popup-app-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* MODIFICADO: Active aplicado a ambos os botões */
.popup-ok-button:active,
.popup-app-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-container {
    max-width: 350px;
    margin: 0 1rem;
  }
  
  .popup-button-container {
    padding: 0.75rem;
  }
  
  /* MODIFICADO: Estilo responsivo para ambos os botões */
  .popup-ok-button,
  .popup-app-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .popup-container {
    max-width: 320px;
  }
  
  .popup-button-container {
    padding: 0.5rem;
    gap: 0.5rem; /* Espaço menor em telas pequenas */
  }
  
  /* MODIFICADO: Estilo responsivo para ambos os botões */
  .popup-ok-button,
  .popup-app-button {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    min-width: 80px;
  }
}

/* Animation for popup entrance */
@keyframes popupEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(5deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.popup-overlay.show .popup-container {
  animation: popupEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Prevent body scroll when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Pulse animation for OK button */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.6);
  }
  100% {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
  }
}

/* MODIFICADO: Animação aplicada a ambos os botões */
.popup-ok-button,
.popup-app-button {
  animation: buttonPulse 2s infinite ease-in-out;
}