/*
 * Extracted from modale-shortcode.php.
 *
 * PHP dynamic values:
 * - $style_class (derived from $atts['style']) is represented by the
 *   .msps-style-* selector family used below; the value is a class suffix,
 *   not a CSS value, so no custom property is required.
 * - $extra_class (derived from $atts['class']) remains an arbitrary class
 *   hook supplied by the caller and has no declarations in the source.
 * - $atts['id'] only identifies the modal target and has no CSS declarations.
 *
 * No PHP-echoed CSS strings or HTML style="..." attributes were present in
 * the source file. The source's JavaScript style.display assignments are
 * runtime behavior, not CSS declarations, and are therefore not included.
 */

/* Modal container */
.msps-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Modal content panel */
.msps-modal-content {
    background-color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: msps-fadeIn 0.3s ease-out;
}

/* Modal entrance animation */
@keyframes msps-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close control */
.msps-modal-close {
    color: #999;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.msps-modal-close:hover {
    color: #000;
}

/* Modal title */
.msps-modal-title {
    margin-top: 0;
    color: #333;
}

/* Default modal trigger */
.msps-modal-trigger {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s;
}

.msps-modal-trigger:hover {
    background-color: #005177;
}

/* Predefined button styles: red */
.msps-modal-trigger.msps-style-rouge {
    background-color: #e74c3c;
}

.msps-modal-trigger.msps-style-rouge:hover {
    background-color: #c0392b;
}

/* Predefined button styles: minimal */
.msps-modal-trigger.msps-style-minimal {
    background-color: transparent;
    color: #000 !important;
    font-weight: normal;
}

.msps-modal-trigger.msps-style-minimal:hover {
    background-color: transparent;
    color: grey;
}

/* Predefined button styles: green */
.msps-modal-trigger.msps-style-vert {
    background-color: #81cbd4;
}

.msps-modal-trigger.msps-style-vert:hover {
    background-color: #5c9197;
}

/* Predefined modal style: red */
.msps-modal.msps-style-rouge .msps-modal-content {
    border-top: 5px solid #e74c3c;
}

.msps-modal.msps-style-rouge .msps-modal-title {
    color: #e74c3c;
}

/* Predefined modal style: minimal */
.msps-modal.msps-style-minimal .msps-modal-content {
    box-shadow: none;
    border: 1px solid #eee;
    border-radius: 4px;
}

.msps-modal.msps-style-minimal {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
}

/* Predefined modal style: dark */
.msps-modal.msps-style-sombre .msps-modal-content {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.msps-modal.msps-style-sombre .msps-modal-title {
    color: #ecf0f1;
}

.msps-modal.msps-style-sombre .msps-modal-close {
    color: #95a5a6;
}

.msps-modal.msps-style-sombre .msps-modal-close:hover {
    color: #fff;
}
