/**
 * Bishop Stang Spotlight — Styles v1.0.0
 */

/* =============================================
   VARIABLES
============================================= */
.bss-section {
    --bss-maroon:       #a80532;
    --bss-maroon-dark:  #7a0025;
    --bss-pink:         #d86b88;
    --bss-pink-dark:    #c24a6a;
    --bss-bg:           #3a0617;
    --bss-bg-track:     #741838;
    --bss-serif:        'Playfair Display', Georgia, serif;
    --bss-sans:         'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --bss-ease:         0.2s ease;
    --bss-card-w:       310px;
    --bss-card-h:       420px;
}

/* =============================================
   SECTION WRAPPER
============================================= */
.bss-section {
    background: var(--bss-bg);
    color: #fff;
    overflow: hidden;
    position: relative;
    font-family: var(--bss-sans);
}

.bss-section *,
.bss-section *::before,
.bss-section *::after {
    box-sizing: border-box;
}

.bss-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-areas: "copy carousel";
    min-height: 620px;
    align-items: center;
}

/* Copy always LEFT on desktop */
.bss-copy-col {
    grid-area: copy;
    padding: 86px 48px 86px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Carousel always RIGHT on desktop */
.bss-carousel-col {
    grid-area: carousel;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =============================================
   IMAGES WRAP + FADE EDGES
============================================= */
.bss-images-wrap {
    background: var(--bss-bg-track);
    padding: 72px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.bss-fade-left,
.bss-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 92px;
    z-index: 4;
    pointer-events: none;
}

.bss-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--bss-bg-track) 0%, rgba(116,24,56,0) 100%);
}

.bss-fade-right {
    right: 0;
    background: linear-gradient(270deg, var(--bss-bg-track) 0%, rgba(116,24,56,0) 100%);
}

/* =============================================
   TRACK — horizontal scroll
============================================= */
.bss-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 34px 64px 34px 0;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.bss-track::-webkit-scrollbar {
    display: none;
}

.bss-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* =============================================
   CARD
============================================= */
.bss-card {
    flex: 0 0 var(--bss-card-w);
    height: var(--bss-card-h);
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
    box-shadow: 0 18px 34px rgba(0,0,0,0.28);
    transform: scale(0.88) rotateY(-4deg);
    opacity: 0.58;
    transition: transform 0.42s ease, opacity 0.42s ease, box-shadow 0.42s ease, filter 0.42s ease;
    filter: saturate(0.75);
    scroll-snap-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.bss-card.is-active {
    transform: scale(1.06) rotateY(0deg);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 28px 54px rgba(0,0,0,0.42);
    filter: saturate(1.08);
}

.bss-card.is-near {
    transform: scale(0.96) rotateY(0deg);
    opacity: 0.82;
    filter: saturate(0.95);
}

/* =============================================
   CARD BACKGROUND PHOTO
   Uses background-image so any size photo fills correctly
============================================= */
.bss-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}

.bss-card:hover .bss-card-bg {
    transform: scale(1.05);
}

.bss-card-bg--placeholder {
    background: linear-gradient(135deg, #5a0a1e, #3a0617);
}

/* =============================================
   CARD GRADIENT OVERLAY
============================================= */
.bss-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 35%, rgba(0,0,0,0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   CARD HOVER — PLAY / LINK BUTTON
============================================= */
.bss-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bss-card:hover .bss-card-play {
    opacity: 1;
}

.bss-play-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bss-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(168,5,50,0.5);
    transition: transform 0.2s ease, background 0.2s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.bss-card:hover .bss-play-circle {
    transform: scale(1.08);
    background: var(--bss-pink);
}

/* Link icon variant — slightly smaller circle */
.bss-card-play--link .bss-play-circle {
    width: 52px;
    height: 52px;
}

/* =============================================
   CARD CAPTION
============================================= */
.bss-card-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.bss-card-category {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bss-pink);
    margin-bottom: 4px;
}

.bss-card-headline {
    font-family: var(--bss-serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 3px 0;
}

.bss-card-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    margin: 0;
}

/* =============================================
   PROGRESS BAR
============================================= */
.bss-progress-wrap {
    width: calc(100% - 128px);
    height: 3px;
    background: rgba(255,255,255,0.18);
    margin: 8px 64px 0 auto;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.bss-progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(255,255,255,0.88);
    border-radius: 999px;
    transition: width 0.2s ease;
}

/* =============================================
   COPY INNER
============================================= */

.bss-copy-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bss-kicker {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bss-pink-dark);
    margin-bottom: 14px;
}

.bss-title {
    font-family: var(--bss-serif);
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 700;
    line-height: 0.98;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bss-title-icon {
    color: rgba(255,255,255,0.32);
    font-family: var(--bss-sans);
    font-size: 24px;
    flex-shrink: 0;
    vertical-align: middle;
}

.bss-lead {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.bss-tag {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================
   CONTROLS — ARROWS
============================================= */
.bss-controls {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.bss-arrow {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bss-maroon);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--bss-ease), transform var(--bss-ease);
    line-height: 1;
}

.bss-arrow:hover {
    background: var(--bss-pink);
    transform: translateY(-2px);
}

/* =============================================
   HINT TEXT
============================================= */
.bss-hint {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.bss-hint--mobile {
    display: none;
}

/* =============================================
   SCROLL REVEAL ANIMATION
============================================= */
.bss-section.bss-reveal .bss-copy-inner {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.bss-section.bss-reveal.bss-visible .bss-copy-inner {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   GLIGHTBOX OVERRIDES — keep on-brand
============================================= */
.glightbox-clean .gslide-description {
    background: var(--bss-bg);
}

.glightbox-clean .gprev,
.glightbox-clean .gnext {
    background: var(--bss-maroon);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .bss-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "carousel"
            "copy";
        grid-template-rows: auto auto;
        min-height: unset;
    }

    .bss-copy-col {
        padding: 40px 24px 48px;
    }

    /* Swap hint text on mobile */
    .bss-hint--desktop {
        display: none;
    }

    .bss-hint--mobile {
        display: block;
    }

    .bss-controls {
        margin-top: 28px;
    }

    .bss-arrow {
        display: flex;
    }
}

@media (max-width: 600px) {
    .bss-section {
        --bss-card-w: 270px;
        --bss-card-h: 370px;
    }

    .bss-copy-col {
        padding: 32px 20px 40px;
    }

    .bss-title {
        font-size: clamp(32px, 9vw, 42px);
    }

    .bss-lead {
        font-size: 16px;
        max-width: 100%;
    }

    /* Hide arrows on small mobile — swipe only */
    .bss-controls {
        display: none;
    }

    .bss-hint--mobile {
        display: block;
        margin-top: 12px;
    }

    .bss-images-wrap {
        padding: 40px 0;
    }
}
