/**
 * SLJ Company List - Styles
 * BEM methodology
 *
 * Uses CSS variables from Jobify Child Theme (jobify-classic)
 * --color-primary, --color-accent, --color-body-text, etc.
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */

.slj-cl-wrapper {
    padding: 0;
    margin-bottom: 3rem;
}

.slj-cl-empty {
    padding: 2rem;
    text-align: center;
    color: var(--color-body-text, #666);
    font-style: italic;
}

/* ==========================================================================
   Top-Unternehmen
   ========================================================================== */

.slj-cl-top {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary, #3f6745);
}

.slj-cl-top__title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-primary, #3f6745);
}

.slj-cl-top__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slj-cl-top__item {
    padding: 0;
}

.slj-cl-top__link {
    color: var(--color-body-text, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.slj-cl-top__link:hover {
    color: var(--color-link, #3f6745);
}

.slj-cl-top__count {
    color: var(--color-body-text, #666);
    opacity: 0.7;
    font-size: 0.9em;
}

/* ==========================================================================
   Filter
   ========================================================================== */

.slj-cl-filter {
    margin-bottom: 4rem;
}

.slj-cl-filter__header {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-body-text, #333);
    display: none;  /* Task: Hide header */
}

.slj-cl-filter__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.slj-cl-filter__link {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--color-primary, #3f6745);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.slj-cl-filter__link:hover {
    background-color: var(--color-accent, #3f6745);
    filter: brightness(0.85);
    color: #fff;
}

.slj-cl-filter__link--disabled {
    background-color: hsla(0, 0%, 85%, 1);
    color: hsla(0, 0%, 60%, 1);
    cursor: default;
}

.slj-cl-filter__link--disabled:hover {
    background-color: hsla(0, 0%, 85%, 1);
    color: hsla(0, 0%, 60%, 1);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.slj-cl-section {
    margin-top: 3rem;
    scroll-margin-top: 100px;
}

.slj-cl-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: var(--color-primary, #3f6745);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.slj-cl-section__title {
    font-size: 2.5em;
    color: #fff !important;  /* Task: Ensure white color */
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.slj-cl-section__links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slj-cl-section__link {
    padding: 8px 16px;
    background-color: #fff;
    border-radius: 8px;
    color: var(--color-primary, #3f6745);
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.slj-cl-section__link:hover {
    background-color: var(--color-accent, #3f6745);
    color: #fff;
}

/* ==========================================================================
   Company List
   ========================================================================== */

.slj-cl-list {
    column-count: 3;
    column-gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slj-cl-list__item {
    break-inside: avoid;
    border-bottom: 1px solid hsla(0, 0%, 90%, 1);
    padding: 0.6rem 0;
}

.slj-cl-list__link {
    color: var(--color-body-text, #333);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.slj-cl-list__link:hover {
    color: var(--color-link, #3f6745);
}

.slj-cl-list__count {
    color: var(--color-body-text, #666);
    opacity: 0.7;
    font-size: 0.9em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .slj-cl-list {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    .slj-cl-list {
        column-count: 1;
    }

    .slj-cl-section__header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .slj-cl-section__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slj-cl-filter__link {
        padding: 8px 12px;
        min-width: 35px;
        font-size: 0.9em;
    }
}
