/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Popup Container */
.popup-container {
  position: relative;
  width: 60vw;
  max-width: 400px;
  min-width: 280px;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.popup-overlay.hidden .popup-container {
  transform: scale(0.9);
}

/* Close Button */
.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.close-button:hover {
  background-color: #ffffff;
  transform: scale(1.1);
}

.close-button:active {
  transform: scale(0.95);
}

.close-button svg {
  color: #333;
}

/* Popup Content */
.popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Popup Image */
.popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Action Button */
.action-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 320px;
  padding: 16px 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 71, 98, 1) 0%,
    rgba(229, 0, 34, 1) 100%
  );
  border: none;
  border-radius: 15px;
  color: #ffffff;
  font-family: "Gmarket Sans-Bold", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 22px);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(229, 0, 34, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .popup-container {
    width: 70vw;
  }
  
  .close-button {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }
  
  .close-button svg {
    width: 20px;
    height: 20px;
  }
  
  .action-button {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 14px 20px;
  }
}

@media (max-width: 360px) {
  .popup-container {
    width: 75vw;
  }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .popup-container {
    width: 50vw;
    max-width: 450px;
  }
}

@media (min-width: 1024px) {
  .popup-container {
    width: 40vw;
    max-width: 500px;
  }
}
