/* Styles pour le modal de vérification d'âge */
#adult_modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
    z-index: -1;
}

#adult_modal .modal-content {
    background: linear-gradient(to bottom, #0A0A0A, #1A1A1A);
    border: 1px solid rgba(212, 160, 23, 0.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    overflow: hidden;
    position: relative;
}

#adult_modal .modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

#adult_modal .modal-header {
    background-color: rgba(26, 26, 26, 0.5);
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    padding: 15px 20px;
}

#adult_modal .modal-title {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#adult_modal .modal-body {
    padding: 25px;
    text-align: center;
}

#adult_modal .manga-adult-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#adult_modal .adult-message {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #E0E0E0;
}

#adult_modal .adult-confirm {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

#adult_modal .modal-footer {
    background-color: rgba(26, 26, 26, 0.3);
    border-top: 1px solid rgba(212, 160, 23, 0.2);
    padding: 15px 20px;
    justify-content: center;
}

#adult_modal .btn {
    padding: 10px 30px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#adult_modal .btn-not-adult {
    background-color: #262626;
    color: #FFFFFF;
    border: none;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

#adult_modal .btn-not-adult:hover {
    background-color: #323232;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.7);
}

#adult_modal .btn-adult-confirm {
    background-color: #FFD700;
    color: #0A0A0A;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#adult_modal .btn-adult-confirm:hover {
    background-color: #D4A017;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.7);
}

/* Styles responsive pour le modal de vérification d'âge */

/* Styles de base (desktop) */
#adult_modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

/* Tablette (768px et moins) */
@media (max-width: 768px) {
    #adult_modal .modal-dialog {
        max-width: 90%;
        margin: 1.5rem auto;
    }
    
    #adult_modal .modal-title {
        font-size: 1.3rem;
    }
    
    #adult_modal .manga-adult-title {
        font-size: 1.2rem;
    }
    
    #adult_modal .adult-message {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    #adult_modal .adult-confirm {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    #adult_modal .modal-body {
        padding: 20px 15px;
    }
    
    #adult_modal .modal-footer {
        padding: 12px 15px;
    }
    
    #adult_modal .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    #adult_modal .btn-not-adult {
        margin-right: 15px;
    }
}

/* Mobile (480px et moins) */
@media (max-width: 480px) {
    #adult_modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    #adult_modal .modal-title {
        font-size: 1.1rem;
    }
    
    #adult_modal .manga-adult-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    #adult_modal .adult-message {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    #adult_modal .adult-confirm {
        font-size: 1rem;
        margin-top: 15px;
    }
    
    #adult_modal .modal-header {
        padding: 12px 15px;
    }
    
    #adult_modal .modal-body {
        padding: 15px 12px;
    }
    
    #adult_modal .modal-footer {
        padding: 10px;
        flex-direction: column;
    }
    
    #adult_modal .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        width: 100%;
        margin-bottom: 8px;
    }
    
    #adult_modal .btn-not-adult {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Simplifier certains effets visuels sur mobile pour améliorer les performances */
    #adult_modal .modal-dialog::before {
        background-size: 250px 250px;
        top: -50px;
        left: -50px;
        right: -50px;
        bottom: -50px;
    }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
    #adult_modal .modal-title {
        font-size: 1rem;
    }
    
    #adult_modal .manga-adult-title {
        font-size: 0.9rem;
    }
    
    #adult_modal .adult-message {
        font-size: 0.8rem;
    }
    
    #adult_modal .adult-confirm {
        font-size: 0.9rem;
    }
    
    #adult_modal .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Orientation paysage sur mobile */
@media (max-height: 480px) and (orientation: landscape) {
    #adult_modal .modal-dialog {
        max-width: 90%;
        margin: 0.5rem auto;
    }
    
    #adult_modal .modal-body {
        padding: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    #adult_modal .manga-adult-title {
        margin-bottom: 10px;
    }
    
    #adult_modal .adult-message {
        margin-bottom: 10px;
    }
    
    #adult_modal .adult-confirm {
        margin-top: 10px;
    }
    
    #adult_modal .modal-footer {
        padding: 8px;
    }
}