/**
 * Modal Popup - Inscription Required
 * Style Lovanime avec dégradé rose/violet
 */

/* Overlay sombre derrière la popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container de la modal */
.modal-container {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

/* Header avec dégradé */
.modal-header {
    background: linear-gradient(135deg, #9b59b6 0%, #e91e63 100%);
    color: white;
    padding: 20px 15px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: bold;
}

.modal-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Bouton fermer (X) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Contenu */
.modal-body {
    padding: 20px 25px;
    text-align: center;
}

.modal-icon {
    font-size: 45px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.modal-body h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 12px 0;
}

.modal-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Liste des avantages */
.modal-benefits {
    text-align: left;
    margin: 15px 0;
    padding: 0 15px;
}

.modal-benefits li {
    color: #555;
    font-size: 13px;
    margin: 8px 0;
    padding-left: 22px;
    position: relative;
    line-height: 1.4;
}

.modal-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e91e63;
    font-weight: bold;
    font-size: 16px;
}

/* Boutons d'action */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #9b59b6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.modal-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.modal-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
