/* popup.css - Separate styles for the popup system */

#custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
}

#custom-popup-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

/* Optional subtle gradient background */
#custom-popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    z-index: -1;
}

#custom-popup-content {
    text-align: center;
    color: #333;
    position: relative;
    z-index: 1;
}

#custom-popup-content h2 {
    margin-top: 0;
    color: #444;
    font-family: Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

#custom-popup-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

#custom-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

#custom-popup-close-btn:hover {
    background: #e2e2e2;
    transform: scale(1.1);
}

/* Animation classes */
.popup-visible {
    opacity: 1 !important;
}

.popup-container-visible {
    transform: scale(1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #custom-popup-container {
        width: 85%;
        padding: 25px 20px;
    }
    
    #custom-popup-content h2 {
        font-size: 22px;
    }
    
    #custom-popup-content p {
        font-size: 14px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    #custom-popup-container {
        width: 90%;
        padding: 20px 15px;
    }
    
    #custom-popup-close-btn {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}