/* Subscription Store Styling */

/* Pricing Cards */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pricing-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pricing-card.popular {
    border-color: #0d6efd;
    position: relative;
    box-shadow: 0 8px 25px rgba(13,110,253,0.15);
    transform: scale(1.02);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #0d6efd, #6610f2);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Price Display */
.price-display {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Annual Savings Badge */
.annual-savings {
    background: linear-gradient(45deg, #198754, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Billing Toggle */
.billing-toggle {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

.billing-option {
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.billing-option.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}

.billing-option:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-check {
    color: #198754;
    margin-right: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Call-to-Action Buttons */
.cta-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.cta-button:disabled,
.cta-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.cta-button.current-plan {
    background: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.cta-button.downgrade-blocked {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.cta-button.disabled:hover {
    background: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

.cta-button.primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.cta-button.primary:hover:not(:disabled) {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.cta-button.secondary {
    background: transparent;
    border-color: #0d6efd;
    color: #0d6efd;
}

.cta-button.secondary:hover:not(:disabled) {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* Current Subscription Status */
#current-subscription-status .alert {
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
}

/* ==========================================
   MEMBERSHIP TIER BADGES - Subtle Design
   ========================================== */
.subscription-plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 10px;
}

.subscription-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
}

/* Free Tier */
.subscription-plan-badge.tier-free {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Basic Tier */
.subscription-plan-badge.tier-basic {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Professional Tier */
.subscription-plan-badge.tier-professional {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* Premium Tier */
.subscription-plan-badge.tier-premium {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Trial Badge */
.subscription-plan-badge.tier-trial {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: none;
    }

    .price-display {
        font-size: 2.5rem;
    }

    .billing-toggle {
        flex-direction: column;
        width: 100%;
    }

    .billing-option {
        width: 100%;
        margin: 2px 0;
    }
}

@media (max-width: 576px) {
    .popular-badge {
        font-size: 0.75rem;
        padding: 4px 16px;
    }

    .price-display {
        font-size: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Animation for success states */
@keyframes checkmarkScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feature-check {
    animation: checkmarkScale 0.3s ease-in-out;
}

/* Hover effects for better UX */
.pricing-card {
    cursor: default;
}

.pricing-card:hover .cta-button.secondary {
    background: rgba(13,110,253,0.1);
}

.pricing-card:hover .cta-button.primary {
    box-shadow: 0 6px 20px rgba(13,110,253,0.4);
}

/* Focus states for accessibility */
.billing-option:focus,
.cta-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Loading overlay */
#subscription-loading {
    background-color: rgba(0,0,0,0.5) !important;
    z-index: 9999 !important;
    display: none !important; /* Force hidden by default */
}