/* =========================================================================
   Jobs browse page. Reuses .jobs-list / .job-row / .search-field / .btn
   from style.css — this file only adds the filter bar and pagination.
   ========================================================================= */

.jobs-page {
    padding: 44px 0 80px;
}

.jobs-page-head {
    margin-bottom: 28px;
}

.jobs-page-head h1 {
    margin-bottom: 6px;
}

.jobs-page-head p {
    margin: 0;
    color: var(--muted);
}


/* -------------------------------------------------------------------------
   Filter bar
   ------------------------------------------------------------------------- */

.jobs-filter-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 10px;
    margin-bottom: 32px;
}

.jobs-filter-bar .search-field {
    flex: 1 1 220px;
    min-width: 180px;
    background: var(--white);
}

.jobs-filter-select {
    flex: 0 0 180px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0 14px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--text);
    background: var(--white);
}

.jobs-filter-select:focus {
    outline: none;
    border-color: var(--brand);
}

.jobs-filter-bar .btn {
    flex-shrink: 0;
}

.jobs-filter-clear {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: underline;
    padding: 0 4px;
}

.jobs-filter-clear:hover {
    color: var(--ink);
}


/* -------------------------------------------------------------------------
   Save button variant used inline in a job-row (icon only, no label)
   ------------------------------------------------------------------------- */

.job-side .btn-icon-only {
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.job-side .btn-icon-only svg {
    width: 17px;
    height: 17px;
}

.job-side .btn-icon-only:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.job-side .btn-icon-only.is-saved {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */

.jobs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.jobs-page-link {
    font-size: .86rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
}

.jobs-page-link:hover {
    background: var(--brand-soft);
}

.jobs-page-current {
    font-size: .82rem;
    color: var(--muted);
}


/* -------------------------------------------------------------------------
   Email job alert panel
   ------------------------------------------------------------------------- */

.job-alert-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--brand-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 16px 18px;
    margin-bottom: 12px;
}

.job-alert-panel-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.job-alert-panel-text svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--brand);
}

.job-alert-panel-text strong {
    display: block;
}

.job-alert-panel-text span {
    display: block;
    font-size: .82rem;
    color: var(--muted);
}

.job-alert-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-alert-email,
.job-alert-frequency {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0 14px;
    font-family: inherit;
    font-size: .88rem;
    background: var(--white);
}

.job-alert-frequency {
    cursor: pointer;
}

.job-alert-account-email {
    font-size: .82rem;
    color: var(--muted);
}

.job-alert-status {
    min-height: 1.2em;
    margin: -4px 0 20px;
    font-size: .85rem;
}

.job-alert-status.is-success {
    color: var(--success, #16a34a);
}

.job-alert-status.is-error {
    color: var(--danger, #dc2626);
}


/* -------------------------------------------------------------------------
   Job alert manage list (seeker/job-alerts.php)
   ------------------------------------------------------------------------- */

.job-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 14px 16px;
}

.job-alert-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.job-alert-chip {
    display: inline-flex;
    align-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
}

.job-alert-meta {
    font-size: .78rem;
    color: var(--muted);
}


/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 640px) {

    .jobs-filter-bar {
        flex-direction: column;
    }

    .jobs-filter-select,
    .jobs-filter-bar .search-field {
        flex: 1 1 auto;
        width: 100%;
    }

    .jobs-filter-bar .btn {
        width: 100%;
    }

    .job-alert-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .job-alert-form {
        flex-direction: column;
        align-items: stretch;
    }

    .job-alert-form .btn {
        width: 100%;
    }
}