/* 
 * IMAGE POPUP CSS - CUSTOM IMPLEMENTATION
 * This file handles the image popup that appears after 1.5 seconds
 * You can modify or remove this file independently
 */

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 10000; /* Higher than form popup */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-container {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
}

.image-popup-overlay.active .image-popup-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.image-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.image-popup-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-popup-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Animation entrance effect */
@keyframes imagePopupSlideIn {
    0% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.image-popup-overlay.active .image-popup-container {
    animation: imagePopupSlideIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Responsive design */
@media (max-width: 768px) {
    .image-popup-container {
        padding: 15px;
        margin: 20px;
    }
    
    .image-popup-image {
        max-height: 70vh;
    }
    
    .image-popup-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 5px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .image-popup-container {
        padding: 10px;
        margin: 10px;
    }
    
    .image-popup-image {
        max-height: 60vh;
    }
}
