
/* ==============================
   SNP BUILDER - SHOWCASE CAROUSEL
================================= */

.snp-showcase {
    --snp-blue: #0756d9;
    --snp-navy: #101a2b;
    --snp-white: #ffffff;

    position: relative;
    width: 100%;
    padding: 0 0 45px;
    overflow: hidden;
    background: #fff;
    font-family: "Manrope", sans-serif;
    box-sizing: border-box;
}

.snp-showcase *,
.snp-showcase *::before,
.snp-showcase *::after {
    box-sizing: border-box;
}

/* Main hero */
.snp-hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
    background: #172335;
}

.snp-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.snp-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.snp-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.snp-hero-slide.is-active .snp-hero-image {
    transform: scale(1.14);
}

.snp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(8, 18, 34, 0.82) 0%,
            rgba(8, 18, 34, 0.58) 42%,
            rgba(8, 18, 34, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 18, 34, 0.30),
            transparent 55%
        );
}

/* Text on image */
.snp-hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(6%, calc((100% - 1320px) / 2));
    width: min(610px, 58%);
    color: var(--snp-white);
    transform: translateY(-43%);
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.snp-hero-slide.is-active .snp-hero-content {
    opacity: 1;
    transform: translateY(-50%);
    transition-delay: 0.2s;
}

.snp-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #dce8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.snp-hero-label::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #75aaff;
}

.snp-hero-content h1 {
    max-width: 650px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(38px, 5.1vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.snp-hero-content h2 {
    margin: 0 0 14px;
    color: #f0f4fc;
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 600;
    line-height: 1.4;
}

.snp-hero-content p {
    max-width: 510px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.snp-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 5px;
    color: #fff;
    background: var(--snp-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.25s ease, gap 0.25s ease;
}

.snp-hero-button:hover {
    gap: 36px;
    background: #0648b5;
}

/* Arrow controls */
.snp-hero-controls {
    position: absolute;
    z-index: 5;
    right: 6%;
    bottom: 155px;
    display: flex;
    gap: 10px;
}

.snp-arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(10, 20, 35, 0.25);
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.snp-arrow:hover {
    border-color: var(--snp-blue);
    background: var(--snp-blue);
}

/* Slide count */
.snp-slide-count {
    margin-bottom: 20px;
    position: absolute;
    z-index: 5;
    right: 6%;
    bottom: 90px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.snp-current-count {
    font-size: 20px;
}

.snp-count-line {
    width: 42px;
    height: 1px;
    background: rgba(255,255,255,0.65);
}

/* Thumbnail cards */
.snp-thumb-area {
    position: relative;
    z-index: 6;
    width: min(100% - 80px, 1320px);
    margin: -100px auto 0;
}

.snp-thumb-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.snp-thumb {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 210px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 13px;
    background: #1c2b40;
    box-shadow: 0 12px 30px rgba(10, 25, 45, 0.16);
    text-align: left;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.snp-thumb:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(10, 25, 45, 0.22);
}

.snp-thumb.is-active {
    border-color: var(--snp-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 34px rgba(7, 86, 217, 0.22);
}

.snp-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.snp-thumb:hover img,
.snp-thumb.is-active img {
    transform: scale(1.08);
}

.snp-thumb-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(8, 18, 34, 0.86) 0%,
        rgba(8, 18, 34, 0.12) 80%
    );
}

.snp-thumb-info {
    position: absolute;
    right: 13px;
    bottom: 15px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}

.snp-thumb-number {
    color: #a9c9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.snp-thumb-title {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snp-thumb-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: transparent;
}

.snp-thumb.is-active .snp-thumb-progress {
    background: var(--snp-blue);
}

/* Tablet */
@media (max-width: 1024px) {
    .snp-hero-slider {
        height: 590px;
    }

    .snp-hero-content {
        left: 5%;
        width: 65%;
    }

    .snp-thumb-area {
        width: calc(100% - 48px);
        margin-top: -85px;
    }

    .snp-thumb-track {
        gap: 14px;
    }

    .snp-thumb {
        height: 175px;
    }

    .snp-thumb-title {
        font-size: 12px;
    }

    .snp-hero-controls,
    .snp-slide-count {
        right: 5%;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .snp-showcase {
        padding-bottom: 28px;
    }

    .snp-hero-slider {
        height: 570px;
        min-height: 500px;
    }

    .snp-hero-image {
        object-position: center;
    }

    .snp-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 18, 34, 0.76),
                rgba(8, 18, 34, 0.24)
            ),
            linear-gradient(
                0deg,
                rgba(8, 18, 34, 0.62) 0%,
                transparent 75%
            );
    }

    .snp-hero-content {
        top: 42%;
        left: 22px;
        width: calc(100% - 44px);
        max-width: 520px;
        transform: translateY(-40%);
    }

    .snp-hero-slide.is-active .snp-hero-content {
        transform: translateY(-50%);
    }

    .snp-hero-label {
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .snp-hero-content h1 {
        margin-bottom: 12px;
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .snp-hero-content h2 {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .snp-hero-content p {
        max-width: 420px;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.7;
    }

    .snp-hero-button {
        min-height: 44px;
        padding: 0 15px;
        gap: 20px;
        font-size: 12px;
    }

    .snp-hero-controls {
        right: 20px;
        bottom: 118px;
        gap: 8px;
    }

    .snp-arrow {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .snp-slide-count {
        right: 20px;
        bottom: 78px;
        gap: 9px;
    }

    .snp-current-count {
        font-size: 17px;
    }

    .snp-count-line {
        width: 28px;
    }

    /* Horizontal mobile card carousel */
    .snp-thumb-area {
        width: 100%;
        margin: -70px 0 0;
        padding: 0 0 8px 18px;
        overflow: hidden;
    }

    .snp-thumb-track {
        display: flex;
        width: 100%;
        gap: 12px;
        padding: 0 18px 8px 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .snp-thumb-track::-webkit-scrollbar {
        display: none;
    }

    .snp-thumb {
        flex: 0 0 142px;
        width: 142px;
        height: 132px;
        border: 2px solid #fff;
        border-radius: 11px;
        scroll-snap-align: center;
    }

    .snp-thumb.is-active {
        transform: translateY(-5px);
    }

    .snp-thumb:hover {
        transform: none;
    }

    .snp-thumb-info {
        right: 9px;
        bottom: 10px;
        left: 10px;
        gap: 4px;
    }

    .snp-thumb-title {
        font-size: 12px;
    }

    .snp-thumb-number {
        font-size: 10px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .snp-hero-slider {
        height: 535px;
    }

    .snp-hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .snp-hero-content h1 {
        font-size: 32px;
    }

    .snp-thumb {
        flex-basis: 128px;
        width: 128px;
        height: 122px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .snp-hero-slide,
    .snp-hero-image,
    .snp-hero-content,
    .snp-thumb,
    .snp-thumb img,
    .snp-thumb-track {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}