/* ====== BEFORE/AFTER SLIDER + PROMO SECTION ====== */

:root {
    --ba-accent: #8b5cf6;
    --ba-accent-hover: #7c3aed;
}

[data-theme="light"] {
    --ba-accent: #7c3aed;
    --ba-accent-hover: #6d28d9;
}

.ba-promo-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.ba-promo-section .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section header */
.ba-promo-section .ba-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ba-promo-section .ba-section-header .section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ba-accent);
    margin-bottom: 0.75rem;
}

.ba-promo-section .ba-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ba-promo-section .ba-section-header .ba-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Two column grid */
.ba-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Col 1 - Text promo */
.ba-promo-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ba-promo-text .ba-usecase-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    position: relative;
    padding-left: 1.2rem;
}

.ba-promo-text .ba-usecase-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--ba-accent), #a855f7);
}

.ba-promo-text .ba-usecase-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.ba-promo-text .ba-usecase-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ba-promo-text .ba-highlight-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.ba-promo-text .ba-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ba-accent), #a855f7, #06b6d4);
}

.ba-promo-text .ba-highlight-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.ba-promo-text .ba-highlight-box strong {
    color: var(--ba-accent);
}

.ba-promo-text .ba-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--ba-accent), #a855f7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    width: fit-content;
}

.ba-promo-text .ba-cta-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.ba-promo-text .ba-cta-inline svg {
    width: 18px;
    height: 18px;
}

/* Col 2 - Before/After Slider */
.ba-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}

.ba-slider-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider-wrapper .ba-img-after {
    z-index: 1;
}

.ba-slider-wrapper .ba-img-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Slider handle */
.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.ba-slider-handle::before,
.ba-slider-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
}

.ba-slider-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ba-accent), #a855f7);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 11;
}

.ba-slider-knob svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
}

/* Labels */
.ba-label {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.ba-label--before {
    left: 16px;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
}

.ba-label--after {
    right: 16px;
    background: rgba(34, 197, 94, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Light mode overrides */
[data-theme="light"] .ba-promo-text .ba-cta-inline {
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .ba-promo-text .ba-cta-inline:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.35);
}

[data-theme="light"] .ba-promo-text .ba-highlight-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.06));
    border-color: rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .ba-slider-wrapper {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ba-promo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ba-promo-section {
        padding: 3rem 0;
    }

    .ba-slider-wrapper {
        border-radius: 16px;
    }

    .ba-slider-knob {
        width: 40px;
        height: 40px;
    }

    .ba-slider-knob svg {
        width: 18px;
        height: 18px;
    }

    .ba-promo-text .ba-usecase-title {
        font-size: 1.15rem;
    }
}
