/* Plans Component - Professional SaaS Pricing */

/* ============================================
   PLAN CARDS CONTAINER
   ============================================ */
#plan-component {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: nowrap;
    padding: 0 20px;
}

/* ============================================
   INDIVIDUAL PLAN CARD
   ============================================ */
.plan-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 340px;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-clickable {
    cursor: pointer;
}

.plan-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #a5b4fc;
}

/* ============================================
   CURRENT PLAN STYLING
   ============================================ */
.plan-current {
    border-color: #6366f1;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 20px 40px -12px rgba(99, 102, 241, 0.25);
    transform: scale(1.02);
}

.plan-badge-current {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.925rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.plan-badge-current i {
    font-size: 1.025rem;
}

/* ============================================
   PLAN HEADER & PRICING
   ============================================ */
.plan-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.plan-current .plan-header {
    border-bottom-color: #c7d2fe;
}

.plan-name {
    font-size: 1.525rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
}

.plan-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.plan-currency {
    font-size: 1.625rem;
    font-weight: 600;
    color: #6366f1;
    align-self: flex-start;
    margin-top: 8px;
}

.plan-amount {
    font-size: 3.625rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-amount.plan-free {
    font-size: 2.625rem;
    color: #6366f1;
}

.plan-interval {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 4px;
}

/* ============================================
   PLAN BODY & FEATURES
   ============================================ */
.plan-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-description {
    color: #64748b;
    font-size: 1.075rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.plan-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    color: #166534;
    font-weight: 600;
    font-size: 1.025rem;
}

.plan-feature i {
    font-size: 1.225rem;
    color: #22c55e;
}

/* ============================================
   PLAN FOOTER & BUTTON
   ============================================ */
.plan-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.plan-select-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.plan-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.plan-select-btn:active {
    transform: translateY(0);
}

/* Non-clickable plans */
.plan-card:not(.plan-clickable):not(.plan-current) {
    opacity: 0.55;
}

/* Disabled plan (e.g., free plan with too many users) */
.plan-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plan-disabled-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.925rem;
    font-weight: 500;
    margin-top: 12px;
}

.plan-disabled-note i {
    font-size: 1.125rem;
    color: #f59e0b;
}

/* ============================================
   CURRENT SUBSCRIPTION DETAILS
   ============================================ */
.current-subscription-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.current-subscription-details h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.subscription-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 0.975rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 1.025rem;
    color: #1e293b;
    font-weight: 600;
}

.info-value.total-cost {
    color: #6366f1;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #166534;
    background: #dcfce7;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.975rem;
}

.status-active::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
}

.status-canceled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    background: #fee2e2;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.975rem;
}

.status-past_due, .status-unpaid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    background: #fef3c7;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.975rem;
}

.status-trialing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0891b2;
    background: #cffafe;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.975rem;
}

.status-incomplete, .status-incomplete_expired, .status-paused {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.975rem;
}

/* ============================================
   CANCEL WARNING
   ============================================ */
.cancel-warning {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
}

.cancel-warning .info-label {
    color: #92400e;
}

.cancel-warning .info-value {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-warning .info-value::before {
    content: '\F33A';
    font-family: 'bootstrap-icons';
    color: #f59e0b;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    #plan-component {
        gap: 16px;
    }

    .plan-card {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    #plan-component {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    .plan-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
    }

    .plan-current {
        transform: none;
    }

    .subscription-info {
        grid-template-columns: 1fr;
    }

    .current-subscription-details {
        padding: 24px 20px;
    }
}

/* ============================================
   SYNCFUSION CARD OVERRIDES (if still used)
   ============================================ */
.plan-option {
    flex: 1 1 0;
    min-width: 0;
    max-width: 340px;
    text-align: center;
    padding: 0;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.plan-option .e-card-header {
    font-weight: bold;
    width: 100% !important;
    padding: 32px 28px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.plan-option .e-card-content {
    padding: 24px 28px 32px;
}

.clickable-plan-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-plan-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #a5b4fc;
}

.current-plan {
    border: 2px solid #6366f1;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
}

.current-plan::before {
    display: none;
}

.current-plan-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: 20px;
    margin-top: 14px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-text {
    font-size: 1.425rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 2.625rem;
    color: #1e293b;
    font-weight: 800;
    margin: 8px 0;
    letter-spacing: -0.025em;
}

.plan-users {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 1.025rem;
    font-weight: 600;
    margin-top: 12px;
}

.plan-option:not(.clickable-plan-option):not(.current-plan) {
    opacity: 0.55;
}

/* ============================================
   PLAN FEATURE LIST
   ============================================ */
.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.975rem;
    color: #374151;
}

.plan-feature-list li i {
    font-size: 0.975rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.plan-feature-list li i.included {
    color: #10b981;
}

.plan-feature-list li.excluded {
    color: #9ca3af;
}

.plan-feature-list li.excluded i {
    color: #d1d5db;
}

.plan-feature-list li.plan-limit {
    font-weight: 600;
    color: #374151;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 4px;
}

.plan-feature-list li.plan-limit i {
    color: #6b7280;
}

/* ============================================
   COMING SOON (Premium tier placeholder)
   ============================================ */
.plan-card.plan-coming-soon {
    position: relative;
    filter: grayscale(1);
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: none;
    transform: none;
}

.plan-card.plan-coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #d1d5db;
}

.plan-coming-soon-banner {
    position: absolute;
    top: 28px;
    left: -8px;
    right: -8px;
    transform: rotate(-4deg);
    padding: 10px 0;
    background: repeating-linear-gradient(
        45deg,
        #374151,
        #374151 10px,
        #1f2937 10px,
        #1f2937 20px
    );
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.plan-coming-soon-banner i {
    margin-right: 6px;
}

.plan-select-btn-disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.plan-select-btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}
