/**
 * Site Popup Styles
 * Version: 1.0.0
 */

/* Overlay */
.site-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.site-popup-overlay.active {
    display: flex;
}

/* Popup Container */
.site-popup-container {
    position: relative;
    max-width: 90%;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 30px 30px;
    border-radius: 12px;
    animation: slideIn 0.4s ease-out;
    text-align: center;
}

/* Close Button */
.site-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: fadeOut 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-popup-close:hover {
    opacity: 1;
}

/* Heading */
.site-popup-heading {
    margin: 0 0 0px 0;
    font-size: 7vw;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

/* Content */
.site-popup-content {
    font-size: 2vw;
    line-height: 1.6;
    color: inherit;
}

.site-popup-content p {
    margin: 0 0 15px 0;
}

.site-popup-content p:last-child {
    margin-bottom: 0;
}

.site-popup-content a {
    color: inherit;
    text-decoration: underline;
}

.site-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-popup-container {
        width: 95%;
        padding: 35px 20px 20px;
    }
    
    .site-popup-heading {
        font-size: 7vw;
    }
    
    .site-popup-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .site-popup-container {
        max-height: 90vh;
    }
    .site-popup-content {
        font-size: 4vw;
    }
    .site-popup-heading {
        font-size: 10vw;
        margin-bottom: 15px;
    }
}

/* Scrollbar styling for popup content */
.site-popup-container::-webkit-scrollbar {
    width: 8px;
}

.site-popup-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.site-popup-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.site-popup-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

