/* Popup Modal Styles - Modern & Chic */
.site-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: popupFadeIn 0.3s ease-out;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.site-popup.active {
    display: flex;
}

.site-popup-content {
    background-color: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: popupSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Header: Title + Close Button */
.site-popup-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.site-popup-title {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.site-popup-close {
    background: #f5f5f5;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 15px;
}

.site-popup-close:hover {
    background: #e0e0e0;
    color: #000;
    transform: rotate(90deg);
}

/* Image */
.site-popup-image-container {
    width: 100%;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.site-popup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 400px;
}

/* Body */
.site-popup-body {
    padding: 24px;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Scrollbar for content */
.site-popup-content::-webkit-scrollbar {
    width: 6px;
}

.site-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.site-popup-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.site-popup-action {
    margin-top: 20px;
    text-align: center;
}

.site-popup-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupSlideUp {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .site-popup-content {
        max-height: 85vh;
        width: 100%;
        border-radius: 16px;
    }

    .site-popup-header {
        padding: 16px 20px;
    }

    .site-popup-body {
        padding: 20px;
    }

    .site-popup-title {
        font-size: 1.1rem;
    }

    /* Make close button slightly larger touch target */
    .site-popup-close {
        width: 36px;
        height: 36px;
    }
}