/**
 * Styles du bouton WP Article PDF Exporter
 */

.wp-ape-wrapper {
    margin: 20px 0;
    clear: both;
}

.wp-ape-align-left {
    text-align: left;
}

.wp-ape-align-center {
    text-align: center;
}

.wp-ape-align-right {
    text-align: right;
}

.wp-ape-align-inline {
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
}

/* Bouton principal */
.wp-ape-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #e11d48;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.25);
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    user-select: none;
    vertical-align: middle;
    outline: none;
}

.wp-ape-btn:hover {
    background-color: #be123c;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(190, 18, 60, 0.35);
    transform: translateY(-1px);
}

.wp-ape-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(190, 18, 60, 0.3);
}

.wp-ape-btn:disabled,
.wp-ape-btn.is-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
    transform: none;
}

/* État succès */
.wp-ape-btn.is-success {
    background-color: #10b981 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

/* État erreur */
.wp-ape-btn.is-error {
    background-color: #ef4444 !important;
}

/* Icônes */
.wp-ape-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wp-ape-svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Spinner de chargement */
.wp-ape-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wpApeSpin 0.75s linear infinite;
    display: inline-block;
}

@keyframes wpApeSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Masquer le bouton lors de l'impression papier classique */
@media print {
    .wp-ape-wrapper {
        display: none !important;
    }
}
