/* EXPLORE FILTERS - LANDING PAGE */

:root {
    --gold: #d4af37;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.65);
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
    --active-border-gold: 2px solid rgba(212, 175, 55, 0.95);
    --text-muted: rgba(248, 233, 187, 0.6);
}

.explore-filters-section {
    margin: 64px 0;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION BACKGROUNDS */
#exploreColorSection .explore-carousel-shell {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.92) 100%), 
                url('/image/colourbg.png') no-repeat center center;
    background-size: cover;
}

#exploreGraphicSection .explore-carousel-shell {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.92) 100%), 
                url('/image/graphicbg.png') no-repeat center center;
    background-size: cover;
}

/* SPLIT HEADER STYLES */
.explore-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 16px;
}

.explore-header {
    text-align: left;
}

.explore-title {
    margin: 0 0 8px;
    color: rgba(232, 201, 122, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.92rem, 1.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.explore-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
}

.explore-pagination {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 1px;
    opacity: 0.85;
}

.explore-pagination span {
    font-weight: 600;
}

/* CAROUSEL SHELL */
.explore-carousel-shell {
    border: var(--border-gold);
    border-radius: 16px;
    padding: 40px 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.explore-carousel-frame {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

/* DECK TRACK - 3D CONTAINER */
.explore-deck-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    touch-action: pan-y;
}

/* 3D FILTER CARD STYLES */
.explore-filter-card {
    position: absolute;
    width: 160px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    border: var(--border-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.35, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.35, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    transform-style: preserve-3d;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
}


/* CARD BACKGROUND & OVERLAYS */
.explore-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.explore-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 2;
}

/* CARD CONTENT */
.explore-card-content {
    position: relative;
    z-index: 3;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transform: translateZ(20px); /* Lift content in 3D */
}

.explore-card-label {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.explore-card-products-count {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 400;
    margin: 0;
    opacity: 0.85;
}

/* 3D POSITIONING CLASSES */
.explore-filter-card.pos-active {
    transform: translateX(0) translateZ(100px) scale(1.15);
    z-index: 10;
    opacity: 1;
    pointer-events: auto;
    border-color: var(--gold);
    box-shadow: 
        0 15px 35px rgba(212, 175, 55, 0.25),
        inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.explore-filter-card.pos-active .explore-card-bg {
    opacity: 0.8;
}

.explore-filter-card.pos-active .explore-card-label {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.explore-filter-card.pos-left {
    transform: translateX(-110px) translateZ(-40px) scale(0.85) rotateY(10deg);
    z-index: 5;
    opacity: 0.75;
    pointer-events: auto; /* Allow clicking side cards to make them active */
}

.explore-filter-card.pos-right {
    transform: translateX(110px) translateZ(-40px) scale(0.85) rotateY(-10deg);
    z-index: 5;
    opacity: 0.75;
    pointer-events: auto;
}

.explore-filter-card.pos-hidden-left {
    transform: translateX(-280px) translateZ(-100px) scale(0.7) rotateY(30deg);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: transform 0s, opacity 0.4s ease !important;
}

.explore-filter-card.pos-hidden-right {
    transform: translateX(280px) translateZ(-100px) scale(0.7) rotateY(-30deg);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: transform 0s, opacity 0.4s ease !important;
}

/* HOVER EFFECT ON ACTIVE CARD */
.explore-filter-card.pos-active:hover {
    transform: translateX(0) translateZ(120px) scale(1.2);
    border-color: #ffffff;
    box-shadow: 
        0 20px 45px rgba(212, 175, 55, 0.4),
        0 0 25px rgba(255, 255, 255, 0.15);
}

/* ACTIVE/CHECKMARK STATE (IF CURRENTLY FILTERED) */
.explore-filter-card.selected-filter {
    border: var(--active-border-gold);
}

.explore-filter-card.selected-filter::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    z-index: 4;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* CAROUSEL NAVIGATION CONTROLS */
.explore-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(7, 8, 12, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: var(--gold);
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.explore-control-btn:hover {
    background: var(--gold);
    color: #050609;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
    transform: translateY(-50%) scale(1.12);
}

.explore-control-btn.prev-btn {
    left: 20px;
}

.explore-control-btn.next-btn {
    right: 20px;
}

/* BOTTOM DOT INDICATORS */
.explore-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.explore-dot {
    width: 16px;
    height: 3px;
    background: rgba(212, 175, 55, 0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-dot.active {
    width: 32px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* RESPONSIVE DESIGN - TABLET */
@media (max-width: 992px) {
    .explore-filters-section {
        margin: 48px 0;
        padding: 0;
    }

    .explore-title {
        font-size: 0.9rem;
    }

    .explore-carousel-shell {
        padding: 32px 16px;
    }

    .explore-carousel-frame {
        height: 280px;
    }

    .explore-filter-card {
        width: 140px;
        height: 210px;
    }

    .explore-filter-card.pos-left {
        transform: translateX(-85px) translateZ(-30px) scale(0.85) rotateY(8deg);
        opacity: 0.75;
    }

    .explore-filter-card.pos-right {
        transform: translateX(85px) translateZ(-30px) scale(0.85) rotateY(-8deg);
        opacity: 0.75;
    }
}

/* RESPONSIVE DESIGN - MOBILE */
@media (max-width: 576px) {
    .explore-filters-section {
        margin: 36px 0;
        padding: 0;
    }

    .explore-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .explore-title {
        font-size: 0.84rem;
    }

    .explore-subtitle {
        font-size: 11px;
    }

    .explore-pagination {
        font-size: 15px;
        align-self: flex-end;
    }

    .explore-carousel-shell {
        padding: 24px 8px;
    }

    .explore-carousel-frame {
        height: 240px;
    }

    .explore-filter-card {
        width: 120px;
        height: 180px;
    }

    .explore-filter-card.pos-left {
        transform: translateX(-65px) translateZ(-25px) scale(0.8) rotateY(6deg);
        opacity: 0.75;
    }

    .explore-filter-card.pos-right {
        transform: translateX(65px) translateZ(-25px) scale(0.8) rotateY(-6deg);
        opacity: 0.75;
    }

    .explore-control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .explore-control-btn.prev-btn {
        left: 10px;
    }

    .explore-control-btn.next-btn {
        right: 10px;
    }
}

/* ACCESSIBILITY & MOTION SENSITIVITY */
@media (prefers-reduced-motion: reduce) {
    .explore-filters-section,
    .explore-filter-card,
    .explore-control-btn,
    .explore-dot,
    .explore-filter-card * {
        animation: none !important;
        transition: none !important;
    }
}
