/* ------------------------------------------------- */
/* Base Styles for Popup Container and Content       */
/* ------------------------------------------------- */
.special-offer-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: relative;
    margin: 10% auto;
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    animation: popupIn 0.5s ease-out;
    overflow: hidden; /* To clip confetti outside the box if desired */
}

/* Popup Entrance Animation */
@keyframes popupIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  /* Confetti Container */
  .confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
  }
  
  /* Confetti Piece */
  .confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: red;
    opacity: 0.8;
    transform: rotate(0deg);
    animation: confettiFall linear forwards;
  }
  
  /* Confetti Fall Animation */
  @keyframes confettiFall {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translateY(120vh) rotate(360deg);
      opacity: 0;
    }
  }
/* Common elements for all popups */
.special-offer-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
.special-offer-popup h2 {
    margin-top: 0;
    font-size: 24px;
}
.special-offer-popup p {
    font-size: 16px;
    margin: 15px 0;
}
.special-offer-popup .timer {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}
.special-offer-popup .offer-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------- */
/* Popup Style 1: Classic White                      */
/* ------------------------------------------------- */
.popup-style-1 {
    background: #fff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ------------------------------------------------- */
/* Popup Style 2: Modern Gradient                    */
/* ------------------------------------------------- */
.popup-style-2 {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* ------------------------------------------------- */
/* Popup Style 3: Minimalist Transparent             */
/* ------------------------------------------------- */
.popup-style-3 {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    color: #333;
    text-align: left;
    padding: 30px;
}

/* ------------------------------------------------- */
/* Popup Style 4: Bold with Bounce Animation         */
/* ------------------------------------------------- */
@keyframes popupBounce {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.popup-style-4 {
    background: #fff;
    color: #333;
    animation: popupBounce 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ------------------------------------------------- */
/* Popup Style 5: Futuristic Dark                    */
/* ------------------------------------------------- */
.popup-style-5 {
    background: #1e1e1e;
    border: 2px solid #ff6600;
    color: #ff6600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ------------------------------------------------- */
/* Popup Style 6: Vibrant Gradient                   */
/* ------------------------------------------------- */
.popup-style-6 {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------- */
/* Popup Style 7: Glassmorphism                      */
/* ------------------------------------------------- */
.popup-style-7 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------- */
/* Responsive Media Queries                          */
/* ------------------------------------------------- */

/* Tablet Devices (max-width: 768px) */
@media only screen and (max-width: 768px) {
    .popup-content {
        margin: 45% auto;
        width: 90%;
        max-width: 350px;
        padding: 15px;
    }
    .special-offer-popup h2 {
        font-size: 22px;
    }
    .special-offer-popup p {
        font-size: 14px;
    }
    .special-offer-popup .timer {
        font-size: 16px;
    }
    .special-offer-popup .offer-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Mobile Devices (max-width: 480px) */
@media only screen and (max-width: 480px) {
    .popup-content {
        margin: 60% auto;
        width: 90%;
        max-width: 300px;
        padding: 10px;
    }
    .special-offer-popup h2 {
        font-size: 20px;
    }
    .special-offer-popup p {
        font-size: 13px;
    }
    .special-offer-popup .timer {
        font-size: 14px;
    }
    .special-offer-popup .offer-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .special-offer-popup .close-popup {
        font-size: 20px;
        top: 5px;
        right: 10px;
    }
}
