/* =====================================================================
   Marketplace sidebar — Vercel-style refined light theme
   - Black primary text, neutral gray hover/active pills
   - Inline SVG icons (Lucide-style), inherit currentColor
   - Title larger than the list items
   - Scoped to .categories_sidebar / .tags_sidebar / .categoriesContainer
   ===================================================================== */

:root {
    /* Chip-only accent (Zyla brand) */
    --zyla-accent: #000000;
    --zyla-accent-bg: rgba(0, 0, 0, 0.08);
    --zyla-accent-bg-hover: rgba(0, 0, 0, 0.12);

    /* Pure black neutrals */
    --zyla-text-primary: #000000;
    --zyla-text-muted:   #000000;
    --zyla-text-heading: #000000;

    --zyla-hover-bg:  #f5f5f5;       /* Vercel hover pill */
    --zyla-active-bg: #ededed;       /* Vercel active pill, slightly darker */

    --zyla-divider: rgba(15, 23, 42, 0.08);
}

/* ----- Selected categories (filter chips above the sidebar) ----- */
.categoriesContainer {
    display: flex;
    padding: 12px 4px 4px;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tagContainer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    padding: 5px 10px 5px 12px;
    color: var(--zyla-text-primary);
    font-size: 12.5px;
    font-weight: 500;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tagContainer:hover {
    background: #ededed;
    border-color: rgba(15, 23, 42, 0.18);
    color: var(--zyla-text-primary);
}

.tagContainer .removeCategory {
    width: 11px;
    height: 11px;
    opacity: 0.55;
    filter: none;
}

.tagContainer:hover .removeCategory {
    opacity: 0.85;
}

/* =====================================================================
   Categories sidebar — transparent, refined
   ===================================================================== */

.categories_sidebar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    box-shadow: none;
    color: var(--zyla-text-primary);
    margin-top: 0.25rem;
}

/* Heading "Categories" — bigger than list items, dark, normal-case */
.categories_sidebar .sidebar-heading {
    background: transparent !important;
    border-bottom: none !important;
    padding: 4px 12px 14px !important;
    margin-bottom: 2px;
}

.categories_sidebar .sidebar-heading h1 {
    color: var(--zyla-text-heading) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    text-transform: none;
    margin: 0 !important;
    line-height: 1.2;
}

/* List wrapper */
.categories_sidebar .single_field {
    padding: 0;
}

.categories_sidebar .list-group {
    background: transparent;
    gap: 1px;
    display: flex;
    flex-direction: column;
}

/* Items — dark text, no border, small comfortable padding */
.categories_sidebar .list-group-item,
.categories_sidebar .list-group-item-light,
.categories_sidebar .list-group-item-action {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--zyla-text-primary) !important;
    font-size: 14px;
    font-weight: 400;
    transition: background 140ms ease, color 140ms ease;
    text-decoration: none;
    line-height: 1.35;
}

/* Hover — Vercel gray pill */
.categories_sidebar .list-group-item:hover {
    background: var(--zyla-hover-bg) !important;
    color: var(--zyla-text-primary) !important;
}

/* ----- ACTIVE state — no background pill; selection is reflected only in the
   top filter chips. Keep slightly heavier weight so the item still reads as
   "selected" on its own row. ----- */
.categories_sidebar .list-group-item.active,
.categories_sidebar .list-group-item-action.active {
    background: transparent !important;
    color: var(--zyla-text-primary) !important;
    font-weight: 500;
    border: none !important;
    box-shadow: none !important;
}

.categories_sidebar .list-group-item.active:hover {
    background: var(--zyla-hover-bg) !important;
}

/* =====================================================================
   SVG line icons — inherit text color, single source of truth
   ===================================================================== */

.zyla-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: var(--zyla-text-muted);
    flex: 0 0 auto;
    transition: color 140ms ease;
}

.zyla-sidebar-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    /* Subtle 3D relief — top highlight + bottom shadow */
    filter:
        drop-shadow(0 -0.3px 0 rgba(255, 255, 255, 0.6))
        drop-shadow(0 0.8px 1px rgba(15, 23, 42, 0.18));
}

.categories_sidebar .list-group-item:hover .zyla-sidebar-icon,
.categories_sidebar .list-group-item.active .zyla-sidebar-icon {
    color: var(--zyla-text-primary);
}

/* =====================================================================
   Tags sidebar — same refined treatment
   ===================================================================== */

.tags_sidebar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    box-shadow: none;
    color: var(--zyla-text-primary);
    margin-top: 1.5rem !important;
}

.tags_sidebar .sidebar-heading {
    background: transparent !important;
    border-bottom: none !important;
    padding: 4px 12px 14px !important;
    margin-bottom: 2px;
}

.tags_sidebar .sidebar-heading h1 {
    color: var(--zyla-text-heading) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    text-transform: none;
    margin: 0 !important;
    line-height: 1.2;
}

/* ----- Popular Searches block ----- */
.zyla-popular-searches {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.zyla-popular-searches__header {
    padding: 6px 12px;
    margin-bottom: 4px;
}
.zyla-popular-searches__title {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--zyla-text-heading, #000000);
    margin: 0 !important;
    line-height: 1.3;
}

/* ----- Refined tag chips (Linear/Vercel-style, bumped to readable size) ----- */
.zyla-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px 4px;
}

.zyla-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: var(--zyla-text-muted, #000000);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.zyla-tag-chip:hover {
    background: var(--zyla-hover-bg, #fafafa);
    border-color: rgba(15, 23, 42, 0.20);
    color: var(--zyla-text-primary, #000000);
    text-decoration: none !important;
}

.zyla-tag-chip span {
    display: inline-block;
    vertical-align: middle;
}

.zyla-tag-chip__icon {
    opacity: 0.55;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    transition: opacity 140ms ease;
}

.zyla-tag-chip:hover .zyla-tag-chip__icon {
    opacity: 1;
}

/* Search variant — slightly more padding-left for the magnifier glyph balance */
.zyla-tag-chip--search {
    padding-left: 10px;
}

/* "More..." variant — visually accentuated: solid dark pill, white text */
.zyla-tag-chip--more {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    font-weight: 600;
    padding: 6px 16px 6px 13px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
}
.zyla-tag-chip--more .zyla-tag-chip__icon {
    opacity: 1;
    color: #ffffff;
    width: 13px;
    height: 13px;
}
.zyla-tag-chip--more:hover {
    background: #374151 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.30);
}
.zyla-tag-chip--more:hover .zyla-tag-chip__icon {
    opacity: 1;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

/* "See all tags" CTA — light, ghost-style */
#tags_button .btn {
    background: transparent !important;
    color: var(--zyla-text-primary) !important;
    border: 1px solid var(--zyla-divider) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 500;
    font-size: 13px;
    margin-top: 14px;
    transition: background 140ms ease, border-color 140ms ease;
}

#tags_button .btn:hover {
    background: var(--zyla-hover-bg) !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
}

/* =====================================================================
   Mobile dropdown — unchanged behaviour
   ===================================================================== */

.button_dropdown {
    display: none;
}

@media (max-width: 767px) {
    .button_dropdown {
        display: block;
    }
    .categories_sidebar {
        display: none;
    }
    .tags_sidebar {
        display: none;
    }
    #tags_button {
        display: none !important;
    }
}

@media (max-width: 500px) {
    .titleContainer img {
        width: 40px !important;
        height: 40px !important;
    }

    .titleContainer {
        margin-bottom: 0.5rem;
    }
}

/* Strip the white plate the outer wrapper paints underneath */
.job_filter.white-bg,
.job_filter .form_inner.white-bg {
    background: transparent !important;
    box-shadow: none !important;
}

/* Breadcrumb styling moved to public/css/breadcrumbs.css and loaded from
   resources/views/shared/web/breadcrumbs.blade.php so it ships with the
   partial regardless of whether the page also renders the sidebar. */
