/* ============================================================
   QWINT CAPTION - PREMIUM TRANSFORMATION SHOWCASE
   Luxury Before/After Interaction
   ============================================================ */

.transformation-showcase {
    padding: 140px 20px;
    background: #050508;
    overflow: hidden;
    position: relative;
}

.transformation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* LEFT SIDE: CONTENT */
.transformation-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(162, 89, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    color: #A259FF;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #A259FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #A259FF;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.transformation-headline {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -2px;
}

.transformation-subheadline {
    font-size: 1.2rem;
    color: #999;
    max-width: 500px;
    line-height: 1.6;
}

/* PREMIUM COMPACT TOGGLE (Player Style) */
.transformation-control-wrap.player-style {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.05);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-labels {
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-labels span {
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-labels span.active {
    color: #A259FF;
}

.premium-toggle {
    width: 64px;
    height: 32px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.toggle-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #A259FF 0%, #6A00FF 100%);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 0 4px 10px rgba(162, 89, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-thumb::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
}



.feature-bullets {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.bullet-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 200, 150, 0.1);
    color: #00C896;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RIGHT SIDE: VISUAL */
.transformation-visual {
    position: relative;
}

.preview-glass-container {
    position: relative;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.video-window {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.video-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dummy-video-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1A1A1A 0%, #0D0D14 100%);
    filter: brightness(0.7) grayscale(0.5);
    transition: filter 1s ease;
}

.dummy-video-content.captioned {
    background: linear-gradient(180deg, #1A1A2E 0%, #0D0D1A 100%);
    filter: brightness(1.1) contrast(1.1);
}

.video-label-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

.video-label-tag.after {
    background: rgba(162, 89, 255, 0.2);
    border-color: rgba(162, 89, 255, 0.4);
}

.active-captions-container {
    position: absolute;
    bottom: 15%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
}

.caption-line {
    background: #FFD700;
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.caption-line.secondary {
    background: #fff;
    font-size: 1.1rem;
    padding: 4px 10px;
}

.layer-after { opacity: 0; pointer-events: none; }
.transformation-visual.toggled .layer-after { opacity: 1; pointer-events: auto; }
.transformation-visual.toggled .layer-before { opacity: 0; }

.after-glow-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(162, 89, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.scanline-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    box-shadow: 0 0 30px #fff;
    opacity: 0;
    z-index: 50;
}

.ambient-visual-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(162, 89, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.trans-audio-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trans-audio-btn:hover {
    background: rgba(162, 89, 255, 0.2);
    border-color: rgba(162, 89, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(162, 89, 255, 0.3);
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .transformation-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .transformation-content {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .transformation-showcase { padding: 60px 20px; }
    .transformation-headline { font-size: 2rem; text-align: center; }
    .transformation-subheadline { text-align: center; margin: 0 auto; font-size: 1.1rem; }
    
    .transformation-control-wrap.player-style {
        width: 100%;
        max-width: 320px;
        padding: 10px 16px;
        gap: 12px;
    }

    .premium-toggle {
        width: 56px;
        height: 28px;
    }
    .toggle-thumb {
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
    }
    
    .feature-bullets { 
        grid-template-columns: 1fr; 
        text-align: left;
        width: 100%;
        max-width: 320px;
        margin: 30px auto;
    }
    .caption-line { font-size: 1rem; padding: 4px 8px; }
    .preview-glass-container { border-radius: 20px; padding: 6px; }
}


