/**
 * WP Popup Maker - Frontend Styles
 */

/* Overlay */
.wppm-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wppm-fade-in 0.3s ease;
}

/* Positions */
.wppm-position-center {
  align-items: center;
  justify-content: center;
}
.wppm-position-top {
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}
.wppm-position-bottom {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}
.wppm-position-top-left {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px;
}
.wppm-position-top-right {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 40px;
}
.wppm-position-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
}
.wppm-position-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 40px;
}

/* Popup Box */
.wppm-popup-box {
  position: relative;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: wppm-slide-up 0.3s ease;
}

/* Close Button */
.wppm-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
}
.wppm-close:hover {
  opacity: 1;
}

/* Content */
.wppm-popup-content {
  font-size: 16px;
  line-height: 1.6;
}
.wppm-popup-content a {
  color: inherit;
  text-decoration: underline;
}

/* Image popup */
.wppm-popup-box img {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Animations */
@keyframes wppm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wppm-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .wppm-popup-box {
    width: 95%;
    padding: 20px;
  }
  .wppm-position-top-left,
  .wppm-position-top-right,
  .wppm-position-bottom-left,
  .wppm-position-bottom-right {
    padding: 15px;
  }
}
