/**
 * Super Popup Frontend Styles
 */

/* Popup Container */
.super-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.super-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Content Wrapper */
.super-popup-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

/* Content */
.super-popup-content {
    background: #ffffff;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.super-popup-close-button {
    position: absolute;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.super-popup-close-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.super-popup-close-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Body when popup is open */
body.super-popup-open {
    overflow: hidden;
}

/* Animations */

/* Fade Animation */
@keyframes superPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.super-popup-animation-fade {
    animation: superPopupFadeIn 0.3s ease-out;
}

/* Slide Up Animation */
@keyframes superPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.super-popup-animation-slide-up {
    animation: superPopupSlideUp 0.3s ease-out;
}

/* Slide Down Animation */
@keyframes superPopupSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.super-popup-animation-slide-down {
    animation: superPopupSlideDown 0.3s ease-out;
}

/* Zoom Animation */
@keyframes superPopupZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.super-popup-animation-zoom {
    animation: superPopupZoom 0.3s ease-out;
}

/* Rotate Animation */
@keyframes superPopupRotate {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.super-popup-animation-rotate {
    animation: superPopupRotate 0.5s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .super-popup-content-wrapper {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .super-popup-content-wrapper {
        max-width: 100%;
        max-height: 100%;
    }

    .super-popup-content {
        border-radius: 0;
    }
}

/* Scrollbar Styles for Popup Content */
.super-popup-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.super-popup-content-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.super-popup-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.super-popup-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Accessibility */
.super-popup-close-button:focus-visible {
    outline: 3px solid #4a90e2;
    outline-offset: 3px;
}

/* Ensure Elementor content looks good */
.super-popup-content .elementor {
    margin: 0;
}

.super-popup-content .elementor-section {
    margin: 0;
}
