/* ========================================
   SPOTLIGHT GALLERY SECTION
======================================== */
.spotlight-section {
    position: relative;
    z-index: 5;
    /* Height will be set dynamically via JS based on number of slides, 
       but we set a default here to ensure it exists */
    min-height: 300vh; 
    padding: 0;
}

.spotlight-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.spotlight-wrapper {
    display: flex;
    gap: 0;
    height: 100%;
    width: 100%;
    padding: 0; /* Removed padding to correct translate alignment */
    will-change: transform;
}

/* Hide scrollbar since we handle it via transform now */
.spotlight-wrapper::-webkit-scrollbar {
    display: none;
}

.spotlight-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Category Container (The "Hero Stats" look) */
.spotlight-category-container {
    background: linear-gradient(0deg, rgb(30, 30, 30), rgb(20, 20, 20));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

/* Header inside container */
.category-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(241, 168, 23, 0.3);
}

.category-divider {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(241, 168, 23, 0.5), transparent);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* Larger left side */
    gap: 30px;
    height: 500px; /* Adjusted height */
    align-items: stretch;
    margin-top: 0;
}

.spotlight-grid.single-column {
    grid-template-columns: 1fr;
}

/* LARGE PREVIEW */
.large-preview {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
}

/* Hover effect on the image wrapper only */
.large-preview:hover .large-image-box {
    border-color: rgba(241, 168, 23, 0.5);
}

.large-image-box {
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Rounded corners for image */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: border-color 0.3s ease;
}

.large-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.large-preview:hover .large-image-box img {
    transform: scale(1.05);
}

.large-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.large-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.large-info .price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.price-vnd {
    color: #f1a817;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.price-token {
    color: #f1c40f;
    opacity: 0.9;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.price-token i {
    color: #f1c40f;
}

.btn-spotlight {
    background: #f1a817;
    border: 1px solid #f1a817;
    color: #000;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.btn-spotlight:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 168, 23, 0.4);
}

/* SMALL PREVIEWS */
.small-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

.small-card {
    background: rgba(255, 255, 255, 0.03); /* Very subtle bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.small-card:hover {
    border-color: rgba(241, 168, 23, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.small-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.small-card:hover .small-bg-img {
    opacity: 0.8;
}

.small-info {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 10px;
    border-radius: 0 0 15px 15px;
    margin: -15px -15px -15px -15px;
    padding-top: 30px;
}

.small-info h5 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Indicators */
.spotlight-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #f1a817;
    width: 60px;
}

/* Light Theme (Yellow Background) Overrides */
.spotlight-indicators.light-theme .indicator {
    background: rgba(0, 0, 0, 0.2);
}

.spotlight-indicators.light-theme .indicator.active {
    background: #000000;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .large-preview {
        height: 400px;
    }
    
    .small-preview-grid {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .spotlight-grid {
        display: flex;
        flex-direction: column;
        height: 395px; /* Fixed height for consistency */
        gap: 10px;
    }

    .spotlight-slide {
        padding: 0 10px; /* Reduced from 5% */
    }

    .spotlight-category-container {
        padding: 15px;
        padding-bottom: 40px; /* Reserve space for indicators */
        margin-top: 60px;
        border-radius: 20px;
    }

    .category-header {
        margin-bottom: 10px; /* Reduced from 15px */
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .category-divider {
        display: none;
    }

    .large-preview {
        flex: 1; /* Grow to fill space */
        height: auto;
        min-height: 200px;
        display: block;
        margin-bottom: 0; /* Use grid gap */
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }
    
    /* ... (rest of large-preview styles) ... */

    .small-preview-grid {
        height: auto;
        margin-top: 0; /* No margin, rely on grid gap */
        grid-template-columns: 1fr 1fr;
        gap: 5px; 
    }
    
    .large-image-box {
        position: absolute;
        height: 100%;
        width: 100%;
        border-radius: 20px;
        top: 0;
        left: 0;
    }
    
    .large-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        padding: 12px; /* Reduced padding */
        background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.5) 60%, transparent 100%);
        backdrop-filter: none;
        border-radius: 0 0 20px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 30px;
    }

    .large-info h3 {
        font-size: 1rem; /* Slightly smaller */
        margin-bottom: 2px;
    }
    
    .price-row {
        margin-bottom: 2px; /* Reduced */
        gap: 8px;
    }

    .price-vnd {
        font-size: 0.9rem;
    }

    .price-token {
        font-size: 0.75rem;
    }

    .btn-spotlight {
        padding: 4px 12px; /* Smaller button */
        font-size: 0.7rem;
        border-radius: 20px;
    }

    .small-preview-grid {
        flex: 0 0 185px; /* Fixed height */
        height: 185px;
        margin-top: 0;
        grid-template-columns: 1fr 1fr;
        gap: 5px; /* Internal gap */
    }

    .small-card {
        padding: 5px;
        min-height: 0;
        height: 100%;
    }
    
    .small-info {
        margin: -5px -5px -5px -5px; /* Offset parent padding */
        width: calc(100% + 10px);
        padding: 5px 8px 8px 8px; /* Inner padding */
        padding-top: 25px; /* Enough space for gradient */
    }
    
    .small-info h5 {
        font-size: 0.75rem;
        white-space: normal; /* Allow text wrapping */
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Move indicators down */
    .spotlight-indicators {
        bottom: 10px !important;
    }
}
