/* ===== OFFER POPUP STYLES ===== */

/* Backdrop */
#offerBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* light dark overlay */
  backdrop-filter: blur(10px); /* blur effect */
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#offerBackdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Blur the page content when popup is active */
#pageContent {
  transition: filter 0.4s ease;
}

#offerBackdrop.active ~ #pageContent,
body > #offerBackdrop.active ~ #pageContent {
  filter: blur(5px);
}

/* Popup Modal */
#offerPopupModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  overflow: hidden;
}

#offerPopupModal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Popup Header */
.offer-popup-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 30px 20px;
  color: white;
  position: relative;
  text-align: center;
}

.offer-popup-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Close Button */
.offer-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Popup Content */
.offer-popup-content {
  padding: 30px;
  text-align: center;
}

.offer-popup-content p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Offer Highlight Box */
.offer-highlight-box {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; */
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Buttons Container */
.offer-buttons-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
}

/* Grab Offer Button */
.offer-grab-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 250px;
}

.offer-grab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.offer-grab-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  #offerPopupModal {
    width: 95%;
    max-width: 100%;
  }

  .offer-popup-header h2 {
    font-size: 24px;
  }

  .offer-popup-content {
    padding: 20px;
  }

  .offer-popup-content p {
    font-size: 14px;
  }

  .offer-highlight-box {
    font-size: 16px;
    padding: 15px;
  }

  .offer-grab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #offerPopupModal {
    width: 98%;
  }

  .offer-popup-header {
    padding: 20px 20px 15px;
  }

  .offer-popup-header h2 {
    font-size: 20px;
  }

  .offer-close-btn {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  .offer-popup-content {
    padding: 15px;
  }

  .offer-popup-content p {
    font-size: 13px;
  }

  .offer-highlight-box {
    font-size: 14px;
    padding: 12px;
  }
}
