/* assets/css/components/history-scroller.css */

.gtm-history-section {
    position: relative;
    width: 100%;
    background-color: #222;
    overflow: hidden;
    padding: 0;
    /* Full-width band. site-main is already edge-to-edge, so width:100% fills the
       viewport. The old 100vw breakout measured the viewport *including* the
       scrollbar, so whenever a vertical scrollbar was present this band sat ~8px
       past the page edge and scrolled it sideways. */
}

/* Track */
.gtm-history-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    /* We remove scroll-snap here to allow the JS easing to handle the positioning smoothly */
    scroll-snap-type: none; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: none;
}

.gtm-history-track::-webkit-scrollbar {
    display: none;
}

/* Slide */
.gtm-history-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100vw;
    height: 600px;
    overflow: hidden;
}

/* Background Image with Overlay */
.gtm-history-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gtm-history-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Content Box */
.gtm-history-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    color: #fff;
    border-left: 4px solid #FFC424;
}

.gtm-history-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.gtm-history-text {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
    color: #fff;
}

/* Navigation Layer - Full width alignment */
.gtm-history-nav {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through outside the pill */
}

/* Pill Nav Styling - Matches Explorer/In-Stock */
.gtm-history-nav .gtm-pill-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Fill container */
    
    /* 10% White Background + Blur */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Navigation Buttons */
.gtm-history-nav .gtm-pill-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    
    /* Solid White Icon */
    color: #fff; 
    
    transition: background 0.2s, opacity 0.2s;
    border-radius: 50%;
}

.gtm-history-nav .gtm-pill-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dots Styling (Circular) */
.gtm-history-nav .gtm-pill-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-grow: 1;
}

.gtm-history-nav .gtm-pill-dots .dot {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    
    width: 10px;
    height: 10px;
    border-radius: 50%;
    
    /* Inactive dots: Semi-transparent white */
    background-color: rgba(255, 255, 255, 0.5); 
    
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gtm-history-nav .gtm-pill-dots .dot.active {
    /* Active dot: Solid White */
    background-color: #fff; 
}

.gtm-history-nav .gtm-pill-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 991px) {
    .gtm-history-slide {
        height: auto;
        min-height: 600px;
    }
    
    .gtm-history-slide .container {
        padding-top: 64px;
        padding-bottom: 120px; /* Space for nav */
        display: flex;
        align-items: flex-end;
    }

    .gtm-history-content {
        width: 100%;
        padding: 32px 24px;
        border-left: none;
        border-top: 4px solid #FFC424;
    }
    
    .gtm-history-title {
        font-size: 1.8rem;
    }
}