/* ============================================================
   PWA Optimizer — Bouton push (shortcode)
   ============================================================ */

.pwa-push-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Alignements */
.pwa-push-align-left   { align-items: flex-start; text-align: left; }
.pwa-push-align-center { align-items: center;     text-align: center; }
.pwa-push-align-right  { align-items: flex-end;   text-align: right; }

/* ===== BOUTON PRINCIPAL ===== */
.pwa-push-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 50px;
    min-width: 220px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.2px;
}

.pwa-push-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.pwa-push-btn-text {
    white-space: nowrap;
}

/* État : Disponible (non abonné) */
.pwa-push-state-available {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.pwa-push-state-available:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.45);
}

/* État : Abonné */
.pwa-push-state-subscribed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.3);
}

.pwa-push-state-subscribed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 204, 113, 0.45);
}

/* État : Bloqué */
.pwa-push-state-blocked {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

.pwa-push-state-blocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(243, 156, 18, 0.45);
}

/* État : Loading */
.pwa-push-state-loading {
    background: #e9ecef;
    color: #6c757d;
    cursor: wait;
    box-shadow: none;
}

/* État : Non supporté */
.pwa-push-state-notSupported {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

.pwa-push-state-notSupported .pwa-push-btn-icon {
    filter: grayscale(100%);
}

/* ===== STATUT ===== */
.pwa-push-status {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    animation: pwaPushButtonFadeIn 0.3s ease;
}

.pwa-push-status-ok {
    color: #155724;
    background: #d4edda;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
}

.pwa-push-status-warn {
    color: #856404;
    background: #fff3cd;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
}

.pwa-push-status-neutral {
    color: #0c5460;
    background: #d1ecf1;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
}

/* ===== AIDE (déblocage) ===== */
.pwa-push-help {
    max-width: 480px;
    padding: 16px 20px;
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
    text-align: left;
    animation: pwaPushButtonFadeIn 0.3s ease;
}

.pwa-push-help strong {
    color: #856404;
    font-weight: 700;
}

/* ===== ERREUR DE CONFIGURATION (admin) ===== */
.pwa-push-button-error {
    padding: 12px 16px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    font-size: 13px;
    color: #721c24;
    font-weight: 500;
}

.pwa-push-button-error a {
    color: #721c24;
    text-decoration: underline;
    font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@keyframes pwaPushButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .pwa-push-main-button {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
        min-width: 0;
    }
    
    .pwa-push-button-wrapper {
        margin: 15px 0;
    }
}

/* ===== RÉDUCTION DES ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    .pwa-push-main-button,
    .pwa-push-status,
    .pwa-push-help {
        transition: none;
        animation: none;
    }
}