/* ===================================================
   Feature Showcase — Interactive Split Layout
   Uses site CSS variables from admin panel
   =================================================== */

.fs-section {
    background: color-mix(in srgb, var(--primary-color) 12%, #07111a);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.fs-section::before {
    content: '';
    position: absolute;
    top: -200px;
    inset-inline-end: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--secondary-color) 18%, transparent) 0%,
        transparent 70%);
    pointer-events: none;
}

.fs-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    inset-inline-start: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--primary-color) 12%, transparent) 0%,
        transparent 70%);
    pointer-events: none;
}

.fs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.fs-header {
    text-align: center;
    margin-bottom: 60px;
}

.fs-section-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.25;
}

.fs-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    margin: 14px auto 0;
}

.fs-section-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.7;
}

/* ── Body — two-column grid ── */
.fs-body {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: stretch;
    min-height: 380px;
}

/* ══════════════════════════
   LIST COLUMN
══════════════════════════ */
.fs-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.fs-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border-inline-end: 3px solid transparent;
    overflow: hidden;
}

.fs-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
}

.fs-item.active {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-inline-end-color: var(--primary-color);
    transform: translateX(-4px);
}

[dir="ltr"] .fs-item.active {
    transform: translateX(4px);
}

/* Number */
.fs-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    min-width: 54px;
    text-align: center;
    transition: color 0.3s ease;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.fs-item.active .fs-num,
.fs-item:hover .fs-num {
    color: var(--primary-color);
}

/* Text */
.fs-item-text {
    flex: 1;
    min-width: 0;
}

.fs-item-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-item.active .fs-item-title {
    color: #ffffff;
}

.fs-item-desc {
    color: transparent;
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: color 0.4s ease, max-height 0.4s ease;
}

.fs-item.active .fs-item-desc {
    color: rgba(255, 255, 255, 0.5);
    max-height: 80px;
}

/* Arrow */
.fs-item-arrow {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.fs-item.active .fs-item-arrow {
    color: var(--primary-color);
    transform: translateX(-3px);
}

[dir="ltr"] .fs-item.active .fs-item-arrow {
    transform: translateX(3px) scaleX(-1);
}

/* Progress bar */
.fs-item-progress {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ══════════════════════════
   PREVIEW COLUMN
══════════════════════════ */
.fs-preview {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 380px;
    max-height: 460px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.fs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
}

.fs-slide.active {
    opacity: 1;
    transform: scale(1);
}

.fs-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.fs-slide-content {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    padding: 36px 36px 32px;
}

/* Counter */
.fs-slide-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fs-slide-counter-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    letter-spacing: -2px;
}

.fs-slide-counter-sep {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Tag pill */
.fs-slide-tag {
    display: inline-block;
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    color: color-mix(in srgb, var(--primary-color) 80%, #fff);
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fs-slide-title {
    color: #ffffff;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
}

.fs-slide-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 1100px) {
    .fs-body {
        grid-template-columns: 350px 1fr;
        gap: 35px;
    }
}

@media (max-width: 900px) {
    .fs-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fs-preview {
        min-height: 300px;
        max-height: 360px;
        order: -1;
    }

    .fs-item {
        border-inline-end: none;
        border-bottom: 2px solid transparent;
    }

    .fs-item.active {
        border-bottom-color: var(--primary-color);
        transform: none;
    }
}

@media (max-width: 576px) {
    .fs-section {
        padding: 50px 0;
    }

    .fs-container {
        padding: 0 20px;
    }

    .fs-header {
        margin-bottom: 35px;
    }

    .fs-preview {
        min-height: 260px;
        border-radius: 14px;
    }

    .fs-num {
        font-size: 1.6rem;
        min-width: 40px;
    }

    .fs-item {
        padding: 14px 16px;
    }

    .fs-slide-content {
        padding: 20px;
    }

    .fs-slide-title {
        font-size: 1.15rem;
    }
}
