/* ============================================
   YOUTUBE-STYLE HORIZONTAL SCROLL CATEGORIES
   ============================================ */

/* Categories container */
#categories-quick-browse {
    background: white;
    border-top: 1px solid #e5e5ea;
    border-bottom: 1px solid #e5e5ea;
    padding: 12px 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Horizontal scroll container */
.categories-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome/Safari */
.categories-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Category chip button - YouTube style */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f2f2f2;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-chip:hover {
    background: #e5e5ea;
    border-color: #d1d1d6;
}

.category-chip:active {
    transform: scale(0.96);
    background: #52c77a;
    color: white;
    border-color: #52c77a;
}

/* Chip icon */
.chip-icon {
    font-size: 16px;
    line-height: 1;
    filter: grayscale(0.2);
}

/* Chip text */
.chip-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Mobile specific */
@media (max-width: 768px) {
    #categories-quick-browse {
        padding: 10px 0;
        position: static; /* Don't stick on mobile */
    }
    
    .categories-scroll-container {
        gap: 6px;
        padding: 0 10px;
    }
    
    .category-chip {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .chip-icon {
        font-size: 14px;
    }
    
    .chip-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    #categories-quick-browse {
        padding: 8px 0;
    }
    
    .categories-scroll-container {
        gap: 5px;
        padding: 0 8px;
    }
    
    .category-chip {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .chip-icon {
        font-size: 13px;
    }
    
    .chip-text {
        font-size: 11px;
    }
}
