/* =========================================
   STYLOWA FURA
   3D BRAND SLIDER
========================================= */

.brand-slider {
    --brand-accent: var(--gold, #e7c765);

    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;
    max-width: 420px;

    margin-inline: auto;
}

.brand-slider::before {
    position: absolute;

    inset: 5% 0 15%;
    z-index: -1;

    background: radial-gradient(
        ellipse,
        color-mix(
            in srgb,
            var(--brand-accent) 12%,
            transparent
        ),
        transparent 70%
    );

    content: "";
    pointer-events: none;
}

/* =========================================
   SLIDER STAGE
========================================= */

.brand-slides {
    position: relative;

    width: 100%;
    height: clamp(180px, 22vw, 270px);

    perspective: 1200px;

    touch-action: pan-y;
}

.brand-slide {
    --tilt-x: 0deg;
    --tilt-y: 0deg;

    position: absolute;

    top: 50%;
    left: 50%;

    width: min(52%, 210px);
    aspect-ratio: 1 / 1;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, -50%)
        scale(0.7);

    pointer-events: none;

    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 500ms ease,
        visibility 500ms ease;
}

.brand-slide-inner {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border: 1px solid
        var(--line-gold, rgba(231, 199, 101, 0.25));

    border-radius: 8px;

    background: #080c12;

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.35);

    transform:
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y));

    transition: transform 180ms ease;
}

.brand-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================
   PREVIOUS SLIDE
========================================= */

.brand-slide.is-prev {
    z-index: 1;

    visibility: visible;
    opacity: 0.75;

    pointer-events: auto;
    cursor: pointer;

    transform:
        translate(-115%, -50%)
        rotateY(30deg)
        scale(0.82);
}

/* =========================================
   NEXT SLIDE
========================================= */

.brand-slide.is-next {
    z-index: 1;

    visibility: visible;
    opacity: 0.75;

    pointer-events: auto;
    cursor: pointer;

    transform:
        translate(15%, -50%)
        rotateY(-30deg)
        scale(0.82);
}

/* =========================================
   ACTIVE SLIDE
========================================= */

.brand-slide.is-active {
    z-index: 5;

    visibility: visible;
    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%, -50%)
        translateZ(35px);
}

.brand-slide.is-active .brand-slide-inner {
    border-color: var(--brand-accent);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 25px color-mix(
            in srgb,
            var(--brand-accent) 12%,
            transparent
        );
}

/* =========================================
   SLIDER CONTROLS
========================================= */

.brand-slider-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-top: 10px;
}

.brand-slider-arrow {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid
        var(--line, rgba(255, 255, 255, 0.1));

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.04);
    color: #f5f6f8;

    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;

    transition:
        color 200ms ease,
        border-color 200ms ease;
}

.brand-slider-arrow:hover {
    color: var(--gold, #e7c765);
    border-color: var(--gold, #e7c765);
}

.brand-slider-arrow:focus-visible,
.brand-dot:focus-visible {
    outline: 2px solid var(--gold, #e7c765);
    outline-offset: 3px;
}

.brand-slider-info {
    display: grid;

    justify-items: center;

    gap: 6px;

    min-width: 130px;
}

.brand-slider-name {
    color: var(--gold, #e7c765);

    font-size: 0.78rem;
    font-weight: 700;

    text-align: center;
}

.brand-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;
}

.brand-dot {
    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.brand-dot::after {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: #697281;

    content: "";

    transition:
        width 250ms ease,
        background 250ms ease;
}

.brand-dot.is-active::after {
    width: 18px;

    background: var(--gold, #e7c765);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .brand-slider {
        max-width: 340px;
    }

    .brand-slides {
        height: 220px;
    }

    .brand-slide {
        width: min(52%, 175px);
    }

}

@media (max-width: 480px) {

    .brand-slides {
        height: 180px;
    }

    .brand-slide {
        width: min(52%, 145px);
    }

    .brand-slide.is-prev {
        transform:
            translate(-100%, -50%)
            rotateY(28deg)
            scale(0.82);
    }

    .brand-slide.is-next {
        transform:
            translate(0%, -50%)
            rotateY(-28deg)
            scale(0.82);
    }

    .brand-slider-controls {
        gap: 10px;
    }

    .brand-slider-info {
        min-width: 110px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .brand-slide,
    .brand-slide-inner,
    .brand-dot::after {
        transition: none;
    }

}