/*
 * Copyright 2025 Criptomart
 * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
 */

/**
 * Tag Filter Badges Component
 *
 * Styles for interactive tag filter badges in the product search/filter bar.
 * Badges toggle between secondary (unselected) and primary (selected) states.
 */

/* Container for all tag filter badges */
.tag-filter-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

/* Individual tag filter badge button */
.tag-filter-badge {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    user-select: none;
    display: inline-block;
    border: 1px solid;
    color: #ffffff !important;
}

/* Tags sin color definido en Odoo: usar color secundario del tema */
.tag-filter-badge.tag-use-theme-color {
    background-color: var(--bs-secondary, #6c757d);
    border-color: var(--bs-secondary, #6c757d);
}

/* Product card tags (badge-km) sin color definido: usar color del tema */
.badge-km.tag-use-theme-color {
    background-color: var(--bs-secondary, #6c757d);
    border-color: var(--bs-secondary, #6c757d);
    color: #ffffff !important;
}

.tag-filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

/* Counter text inside badge */
.tag-filter-badge .tag-count {
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tag-filter-badges {
        gap: 0.375rem;
    }

    .tag-filter-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
}
