/* Popup Base Styles */
.wppm-popup {
    position: fixed;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.wppm-popup.active {
    visibility: visible;
    opacity: 1;
}

/* Modal Popup */
.wppm-popup-type-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    max-width: 90%;
    width: auto;
}

.wppm-popup-type-modal .wppm-popup-content {
    position: relative;
    padding: 30px;
}

/* Slide In Popup */
.wppm-popup-type-slide-in {
    bottom: 30px;
    right: 30px;
    max-width: 350px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.wppm-popup-type-slide-in .wppm-popup-content {
    padding: 20px;
}

/* Notification Bar */
.wppm-popup-type-notification-bar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #333;
    color: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wppm-popup-type-notification-bar .wppm-popup-content {
    padding: 12px 40px 12px 20px;
    position: relative;
}

/* Fullscreen Popup */
.wppm-popup-type-fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wppm-popup-type-fullscreen .wppm-popup-content {
    background: #fff;
    padding: 40px;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

/* Close Button */
.wppm-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.wppm-close-btn:hover {
    opacity: 1;
}

/* Overlay */
.wppm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    display: none;
}

.wppm-overlay.active {
    display: block;
}

/* Animations */
@keyframes wppmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wppmSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes wppmSlideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes wppmBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wppmZoom {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wppm-animation-fade.active {
    animation: wppmFadeIn 0.3s ease;
}

.wppm-animation-slide-up.active {
    animation: wppmSlideUp 0.4s ease;
}

.wppm-animation-slide-down.active {
    animation: wppmSlideDown 0.4s ease;
}

.wppm-animation-bounce.active {
    animation: wppmBounce 0.5s ease;
}

.wppm-animation-zoom.active {
    animation: wppmZoom 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .wppm-popup-type-modal {
        width: 90% !important;
        max-width: 90% !important;
    }
    
    .wppm-popup-type-slide-in {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .wppm-popup-type-fullscreen .wppm-popup-content {
        margin: 20px;
        padding: 20px;
    }
}