/* Bundle Pricing Comparison Styles */

/* ============================================
   Bundle Card - Main Container
   ============================================ */
.bundle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* ============================================
   Card Header - Badge + Savings
   ============================================ */
.bundle-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.15), rgba(var(--brand-primary-rgb), 0.05));
    border-bottom: 1px solid var(--border-subtle);
}

.bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bundle-savings-highlight {
    display: inline-flex;
    align-items: center;
}

.bundle-savings-highlight .savings-amount {
    padding: 0.375rem 0.75rem;
    background: var(--color-success);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 6px;
}

/* ============================================
   Card Body - Products + Pricing
   ============================================ */
.bundle-card-body {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.25rem;
}

/* Products Section - Left side */
.bundle-products-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bundle-products-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bundle-products-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bundle-product-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bundle-product-chip:hover {
    background: var(--bg-surface-raised);
    border-color: var(--brand-primary);
    color: var(--brand-primary-light);
}

.bundle-plus {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0.25rem;
}

/* Pricing Section - Right side */
.bundle-pricing-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-subtle);
    min-width: 180px;
}

.bundle-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.bundle-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.bundle-price-original {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--color-danger);
}

.bundle-price-row-deal {
    margin-top: 0.25rem;
}

.bundle-price-deal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-success);
}

.bundle-billing-note {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ============================================
   Card Footer - Expandable Features
   ============================================ */
.bundle-card-footer {
    border-top: 1px solid var(--border-subtle);
}

.bundle-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--brand-primary-light);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bundle-expand-btn:hover {
    background: rgba(var(--brand-primary-rgb), 0.05);
}

.bundle-expand-btn .expand-icon {
    transition: transform 0.2s ease;
}

.bundle-card.expanded .bundle-expand-btn .expand-icon,
.bundle-expand-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

/* Features Panel - Hidden by default */
.bundle-features-panel {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.bundle-card.expanded .bundle-features-panel {
    display: flex;
}

/* Product Feature Groups */
.bundle-product-feature-group {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
}

.bundle-product-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.bundle-product-feature-header .product-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.bundle-product-feature-header .product-value {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.product-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.product-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.product-feature-list li svg {
    flex-shrink: 0;
    color: var(--color-success);
    margin-top: 0.1875rem;
}

/* ============================================
   Legacy Classes (keep for compatibility)
   ============================================ */

/* Price Comparison Container */
.bundle-plan-breakdown {
    background: rgba(var(--brand-primary-rgb), 0.05);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Price Comparison Header */
.bundle-price-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Original (Crossed Out) Price */
.bundle-original-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.bundle-original-price del {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--color-danger);
    font-weight: 500;
}

/* Bundle Deal Price */
.bundle-deal-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.bundle-price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Discount Badge */
.bundle-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, var(--color-success), #198754);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ============================================
   Usage Limits Section
   ============================================ */
.bundle-usage-limits {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bundle-usage-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(var(--brand-primary-rgb), 0.08);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    border-radius: 6px;
    font-size: 0.8125rem;
}

.bundle-usage-item .usage-icon {
    flex-shrink: 0;
    color: var(--brand-primary);
    opacity: 0.8;
}

.usage-limit-name {
    color: var(--text-muted);
    font-weight: 400;
}

.usage-limit-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Bundle Exclusive Badge */
.bundle-product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.15), rgba(var(--brand-primary-rgb), 0.08));
    color: var(--brand-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .bundle-card-body {
        flex-direction: column;
        gap: 1rem;
    }

    .bundle-pricing-section {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        min-width: auto;
    }

    .bundle-price-row {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .product-feature-list {
        grid-template-columns: 1fr;
    }
}
