/* Styles pour les abonnements récurrents */

/* Badge sur la carte de plan */
.recurring-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.70rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    align-items: center;
    gap: 5px;
    z-index: 10;
    white-space: nowrap;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    }
}

.recurring-badge i {
    animation: rotate-icon 3s linear infinite;
}

@keyframes rotate-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Carte de plan récurrent */
.plan-card.recurring-plan {
    position: relative;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.plan-card.recurring-plan:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

/* Info de renouvellement */
.renewal-info {
    font-size: 0.85rem;
    color: rgba(102, 126, 234, 1);
    font-weight: 600;
}

/* Badge inline dans account.php */
.recurring-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.recurring-badge-inline i {
    animation: rotate-icon-slow 4s linear infinite;
}

@keyframes rotate-icon-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Section de gestion de l'abonnement */
.subscription-management-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-cancel-subscription {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-cancel-subscription:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-cancel-subscription:active {
    transform: translateY(0);
}

.cancel-info {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Bouton de réactivation */
.btn-reactivate-subscription {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-reactivate-subscription:hover {
    background: linear-gradient(45deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-reactivate-subscription:active {
    transform: translateY(0);
}

.reactivate-info {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Notice d'abonnement annulé */
.subscription-cancelled-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    color: rgba(251, 191, 36, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.subscription-cancelled-notice i {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .recurring-badge {
        top: -8px;
        right: -8px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .btn-cancel-subscription {
        width: 100%;
        justify-content: center;
    }
    
    .subscription-cancelled-notice {
        flex-direction: column;
        text-align: center;
    }
}
