/**
 * ISSI Display Popup Frontend Styles
 * Styles pour l'affichage du popup sur le frontend
 */

.issi-popup-overlay {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.issi-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.issi-popup-container {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    max-width: 350px;
    max-height: 430px;
    width: 350px;
    height: 430px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 999999;
}

.issi-popup-overlay.show .issi-popup-container {
    transform: translateY(-50%) translateX(0);
}

.issi-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.issi-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.issi-popup-close::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.issi-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}


/* Responsive */
@media (max-width: 480px) {
    .issi-popup-overlay {
        left: 0;
    }
    
    .issi-popup-container {
        left: 0;
        max-width: 320px;
        max-height: 400px;
        width: 320px;
        height: 400px;
    }
    
    .issi-popup-close {
        width: 25px;
        height: 25px;
    }
    
    .issi-popup-close::before {
        width: 14px;
        height: 14px;
    }
}

/* Animation d'entrée */
@keyframes issi-popup-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.issi-popup-overlay.show .issi-popup-container {
    animation: issi-popup-slide-in 0.3s ease-out;
}
