/**
 * Recurring Membership Frontend Styles
 */

/* Subscription List */
.recurring-memberships {
    margin: 20px 0;
}

.recurring-memberships .badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.recurring-memberships .badge-success {
    background-color: #28a745;
    color: white;
}

.recurring-memberships .badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.recurring-memberships .badge-danger {
    background-color: #dc3545;
    color: white;
}

.recurring-memberships .badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Subscription Details */
.subscription-detail .card {
    margin-bottom: 20px;
}

.subscription-detail .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-detail .payment-history {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.subscription-detail .text-success {
    color: #28a745;
}

.subscription-detail .text-warning {
    color: #ffc107;
}

.subscription-detail .text-danger {
    color: #dc3545;
}

.subscription-detail .text-info {
    color: #17a2b8;
}

/* Payment Notifications */
.recurring-payment-notification {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.recurring-temp-alert {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Payment Gateway Icons */
.gateway-icon {
    height: 30px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Plan Selection */
.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.membership-plan-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.membership-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.membership-plan-card .plan-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.membership-plan-card .plan-price {
    font-size: 36px;
    color: #007bff;
    margin: 20px 0;
}

.membership-plan-card .plan-duration {
    font-size: 14px;
    color: #6c757d;
}

.membership-plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.membership-plan-card .plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.membership-plan-card .plan-features li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-plans {
        grid-template-columns: 1fr;
    }
    
    .subscription-detail .row {
        flex-direction: column;
    }
    
    .subscription-detail .col-md-6 {
        margin-bottom: 20px;
    }
}

/* Loading Spinner */
.recurring-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Account Page Link */
#recurring-membership-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: background-color 0.2s;
}

#recurring-membership-link:hover {
    background-color: #f8f9fa;
}

#recurring-membership-link i {
    margin-right: 10px;
    font-size: 24px;
    color: #007bff;
}
