/**
 * Lightbox commerciale pour les slots
 * Affiche une image cliquable par-dessus le jeu
 */

/* Animation fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Overlay de la lightbox commerciale (z-index élevé pour être au-dessus du jeu) */
.slot-commercial-overlay.mfp-bg {
    z-index: 99999 !important;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.85);
}

.slot-commercial-overlay.mfp-wrap {
    z-index: 100000 !important;
}

/* Container de la popup */
.slot-commercial-popup-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lien cliquable (toute la zone) */
.slot-commercial-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slot-commercial-link:hover {
    transform: scale(1.02);
}

/* Image de la popup */
.slot-commercial-image {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    width: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Bouton de fermeture customisé */
.slot-commercial-overlay .mfp-close {
    color: white;
    font-size: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slot-commercial-overlay .mfp-close:hover {
    opacity: 1;
}

/* Animation d'ouverture */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .slot-commercial-popup-wrapper {
        max-width: 95vw;
    }
    
    .slot-commercial-image {
        border-radius: 5px;
    }
    
    .slot-commercial-overlay .mfp-close {
        font-size: 30px;
        right: 5px;
        top: 5px;
    }
}

/* Style inline pour Magnific Popup */
.mfp-inline-holder .mfp-content {
    width: auto;
    max-width: 90vw;
}
