/* ─────────────────────────────────────────────
     Before & After Transformations (Luxury Light Redesign)
     ───────────────────────────────────────────── */
.fcp-transformations-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin: 40px auto 100px auto;
    max-width: 1200px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border-subtle);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(197, 160, 89, 0.05);
}

.dark-theme .fcp-transformations-container {
    background: rgba(25, 24, 22, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.fcp-transformations-showcase {
    position: relative;
    width: 100%;
}

.fcp-transformation-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    border: 1.5px solid var(--border-subtle);
    overflow: hidden;
    background: var(--surface-raised);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    user-select: none;
    -webkit-user-select: none;
}

.fcp-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fcp-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Clipped Before image (on top) */
.fcp-slider-image.img-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
}

body.rtl-layout .fcp-slider-image.img-before {
    clip-path: inset(0 0 0 var(--slider-pos, 50%));
}

.fcp-slider-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    backdrop-filter: blur(5px);
    z-index: 3;
    pointer-events: none;
}

.dark-theme .fcp-slider-label {
    background: rgba(25, 24, 22, 0.85);
    color: var(--text-on-dark);
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

body.rtl-layout .label-before {
    left: auto;
    right: 20px;
}

body.rtl-layout .label-after {
    right: auto;
    left: 20px;
}

/* Handle Bar styling */
.fcp-slider-handle {
    position: absolute;
    top: 0;
    left: var(--slider-pos, 50%);
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background: var(--gold);
    z-index: 5;
    cursor: ew-resize;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.fcp-slider-handle-line {
    flex-grow: 1;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.fcp-slider-handle-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fcp-slider-handle:hover .fcp-slider-handle-button {
    transform: scale(1.1);
    background: var(--gold-dark);
}

.fcp-showcase-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.15);
}

body.rtl-layout .fcp-showcase-badge {
    left: auto;
    right: 20px;
}

.dark-theme .fcp-showcase-badge {
    background: rgba(25, 24, 22, 0.9);
}

.fcp-showcase-badge span {
    font-size: 1.1rem;
}

/* Sidebar & Selector Cards list */
.fcp-transformations-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.fcp-transformation-selector-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    overflow: hidden;
}

.dark-theme .fcp-transformation-selector-card {
    background: rgba(25, 24, 22, 0.3);
    border-color: rgba(197, 160, 89, 0.08);
}

.fcp-transformation-selector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

body.rtl-layout .fcp-transformation-selector-card::before {
    left: auto;
    right: 0;
}

.fcp-transformation-selector-card:hover {
    transform: translateX(5px);
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.06);
}

body.rtl-layout .fcp-transformation-selector-card:hover {
    transform: translateX(-5px);
}

.fcp-transformation-selector-card.active {
    background: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.12);
}

.dark-theme .fcp-transformation-selector-card.active {
    background: var(--surface-raised);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.fcp-selector-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.fcp-selector-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.03);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fcp-transformation-selector-card.active .fcp-selector-icon {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-dark);
    transform: scale(1.05) rotate(5deg);
}

.fcp-selector-icon span {
    font-size: 1.3rem;
}

.fcp-selector-meta {
    flex-grow: 1;
}

.fcp-selector-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px 0;
    font-family: var(--font-ar), sans-serif;
}

.fcp-selector-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fcp-selector-stat {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-en), sans-serif;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.25);
    color: var(--gold-dark);
    padding: 3px 10px;
    border-radius: 30px;
}

body.rtl-layout .fcp-selector-stat {
    font-family: var(--font-ar), sans-serif;
}

.fcp-selector-quote {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    font-style: normal;
    border-left: 2px solid rgba(197, 160, 89, 0.3);
    padding-left: 14px;
    transition: all 0.3s ease;
}

.fcp-transformation-selector-card.active .fcp-selector-quote {
    color: var(--text);
    border-color: var(--gold);
}

body.rtl-layout .fcp-selector-quote {
    border-left: none;
    padding-left: 0;
    border-right: 2px solid rgba(197, 160, 89, 0.3);
    padding-right: 14px;
}

@media (max-width: 991px) {
    .fcp-transformations-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    .fcp-transformation-slider {
        height: 350px;
    }
    .fcp-slider-label {
        font-size: 0.78rem;
        padding: 4px 12px;
        bottom: 15px;
    }
    .label-before { left: 15px; }
    .label-after { right: 15px; }
    body.rtl-layout .label-before { right: 15px; left: auto; }
    body.rtl-layout .label-after { left: 15px; right: auto; }
}

@media (max-width: 480px) {
    .fcp-transformation-slider {
        height: 280px;
    }
    .fcp-selector-header {
        gap: 12px;
    }
    .fcp-selector-icon {
        width: 36px;
        height: 36px;
    }
    .fcp-selector-icon span {
        font-size: 1.1rem;
    }
    .fcp-selector-name {
        font-size: 0.95rem;
    }
}

/* Hide the gold underline accent specifically for the transformations section */
#transformations-section .section-main-title::after {
    display: none;
}
