/**
 * Styles frontend pour Solution Park Membership
 */

/* Bouton footer abonnements */
.spm-footer-button {
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.spm-footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.spm-footer-button-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.spm-footer-button-link:hover {
    color: white;
    text-decoration: none;
}

.spm-button-icon {
    margin-right: 8px;
    font-size: 16px;
}

.spm-button-text {
    white-space: nowrap;
}

.spm-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}

/* Bouton clignotant pour expiration proche */
.spm-footer-button.spm-expiring .spm-footer-button-link {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    animation: spm-pulse 2s infinite;
}

/* Bouton pour les visiteurs non connectés */
.spm-footer-button.spm-public .spm-footer-button-link {
    background: linear-gradient(135deg, #28a745 0%, #20c936 100%);
}

@keyframes spm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Alertes membres */
.spm-member-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

.spm-member-alert.spm-expiring-alert {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.spm-member-alert.spm-expired-alert {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.spm-member-alert p {
    margin: 0;
    color: #721c24;
}

.spm-member-alert a {
    color: #155724;
    font-weight: bold;
    text-decoration: underline;
}

/* Badge prix membre */
.spm-member-price-badge {
    background: #28a745;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Statut d'abonnement */
.spm-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.spm-status-badge.spm-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.spm-status-badge.spm-expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Widget statut */
.spm-status-widget {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background: #f8f9fa;
    margin: 15px 0;
}

.spm-status-active {
    color: #155724;
    font-weight: bold;
}

.spm-status-expired {
    color: #721c24;
    font-weight: bold;
}

/* Footer info membre */
.spm-member-footer-info {
    background: #e8f5e8;
    padding: 10px;
    text-align: center;
    border-top: 2px solid #28a745;
    font-size: 14px;
}

.spm-member-footer-info a {
    color: #155724;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .spm-footer-button {
        bottom: 15px;
        right: 15px;
    }
    
    .spm-footer-button-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .spm-button-text {
        display: none;
    }
    
    .spm-button-icon {
        margin: 0;
        font-size: 18px;
    }
    
    .spm-notification-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
} 