/* 1. Main Wrapper Framework */
.sort-tabs {
    display: flex !important;
    flex-direction: column; /* Stacks the button row and indicators vertically */
    gap: 6px;
    font-size: 13px;
    user-select: none;
    padding-bottom: 10px;
    border-bottom: #2c2c2c 2px solid; /* Solid accent line under the whole layout */
    width: 100%;
}

/* 2. Top Inner Row: Keeps label and buttons horizontal */
.sort-tabs-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.sort-label {
    color: #888888;
    margin-right: 4px;
    flex-shrink: 0;
}

/* 3. Horizontal Scroll Context */
.sort-scroll-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    cursor: grab;
    
    -ms-overflow-style: none;  
    scrollbar-width: none;     
}
.sort-scroll-container::-webkit-scrollbar { display: none; }
.sort-scroll-container:active { cursor: grabbing; }

/* 4. Button Pill Configuration */
.sort-tab {
    flex-shrink: 0;
    margin-right: 6px;
    background: #1e1e1e;
    color: #aaaaaa;
    border: 1px solid #2d2d2d;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.sort-tab.active {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border-color: #2ed573;
}

/* 5. Dots Section Layout */
.sort-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

.sort-indicators .dot {
    width: 5px;
    height: 5px;
    background: #2c2c2c; /* Slate grey matching border aesthetics */
    border-radius: 50%;
    transition: all 0.25s ease-in-out;
}

.sort-indicators .dot.active {
    background: #2ed573; /* Glows green dynamically when active */
    width: 12px;        /* Smooth transition stretch to pill shape */
    border-radius: 3px;
}

/* 6. Mobile Compression Adjustments */
@media (max-width: 576px) {
    .sort-tabs {
        padding-bottom: 8px;
    }
    .sort-tab {
        margin-right: 5px;
    }
}