/* Bundle Promotion Components
   Promotional elements for bundles shown on individual product landing pages */

/* =============================================================================
   Bundle Upsell Row - Inline CTA above free tier in pricing sections
   ============================================================================= */

.bundle-upsell-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.bundle-upsell-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bundle-upsell-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(147, 51, 234, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(216, 180, 254);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.bundle-upsell-badge svg {
    flex-shrink: 0;
}

.bundle-upsell-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bundle-upsell-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.bundle-upsell-subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.bundle-upsell-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(147, 51, 234, 0.9);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bundle-upsell-cta:hover {
    background: rgba(147, 51, 234, 1);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.bundle-upsell-cta svg {
    transition: transform 0.2s ease;
}

.bundle-upsell-cta:hover svg {
    transform: translateX(2px);
}

/* Compact pricing wrapper - positions upsell/included below currency selector */
.compact-bundle-upsell-wrapper {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

/* When bundle upsell appears inside upgrade path (between plans and enterprise card) */
.upgrade-path .compact-bundle-upsell-wrapper {
    margin-top: 1rem; /* Match spacing of enterprise card */
    margin-bottom: 0; /* No bottom margin since enterprise card has its own top margin */
}

.compact-bundle-upsell-wrapper .bundle-upsell-row,
.compact-bundle-upsell-wrapper .bundle-included-row {
    margin-bottom: 0; /* Remove default margin when in wrapper */
}

/* =============================================================================
   Bundle Included Products Row - Shows products in a bundle on bundle pages
   ============================================================================= */

.bundle-included-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.bundle-included-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bundle-included-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(147, 51, 234, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(216, 180, 254);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.bundle-included-badge svg {
    flex-shrink: 0;
}

.bundle-included-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bundle-included-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

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

.bundle-product-separator {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.bundle-product-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bundle-product-link:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: rgb(216, 180, 254);
    text-decoration: none;
}

/* Responsive adjustments for bundle included products */
@media (max-width: 768px) {
    .bundle-included-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .bundle-included-content {
        gap: 0.75rem;
    }

    .bundle-included-products {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Responsive adjustments for bundle upsell */
@media (max-width: 768px) {
    .bundle-upsell-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .bundle-upsell-content {
        gap: 0.75rem;
    }

    .bundle-upsell-cta {
        width: 100%;
        justify-content: center;
    }

    .compact-bundle-upsell-wrapper {
        margin-bottom: 1rem;
    }
}

/* =============================================================================
   Bundle Promotion Section - Full promotional card (original styles)
   ============================================================================= */

.bundle-promotion-section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.bundle-promotion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bundle-promotion-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bundle-promotion-header {
    margin-bottom: 1rem;
}

.bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(196, 167, 255);
}

.bundle-badge svg {
    flex-shrink: 0;
}

.bundle-promotion-content {
    margin-bottom: 1.25rem;
}

.bundle-promotion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem 0;
}

.bundle-promotion-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

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

.bundle-product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.bundle-product-tag.bundle-product-current {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
    color: rgb(196, 167, 255);
}

.bundle-product-plus {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.bundle-promotion-cta {
    display: flex;
    justify-content: flex-start;
}

.bundle-promotion-cta .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bundle-promotion-cta .icon-right {
    transition: transform 0.2s ease;
}

.bundle-promotion-cta .button:hover .icon-right {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bundle-promotion-section {
        padding: 1.5rem 1rem;
    }

    .bundle-promotion-card {
        padding: 1.25rem 1.5rem;
    }

    .bundle-promotion-title {
        font-size: 1.125rem;
    }

    .bundle-promotion-products {
        gap: 0.375rem;
    }

    .bundle-product-tag {
        font-size: 0.75rem;
        padding: 0.1875rem 0.5rem;
    }
}
