/**
 * Job Listings module styles.
 *
 * Loaded via humhub\modules\joblistings\assets\JoblistingsAsset — do not
 * duplicate any of this in view-level <style> blocks or registerCss() calls.
 */

/* Card grid (job/index.php, job/saved.php) */
.joblistings-grid .job-item-column {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.joblistings-grid .job-item-column .job-card {
    height: 100%;
}

.job-card {
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.job-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.job-card .panel-heading {
    background: none;
    border: none;
    padding: 0;
}

.job-card .panel-heading a {
    text-decoration: none;
}

.job-card .panel-heading a:hover {
    text-decoration: underline;
}

/* Job detail page */
.job-description {
    line-height: 1.6;
}

/* Bookmark / save toggle button */
.joblistings-save-toggle {
    border: none;
    background: none;
}

.joblistings-save-toggle[data-saved="1"] i {
    color: var(--bs-warning, #f0ad4e);
}

/* Applicant pipeline (application/index.php, application/_application_item.php) */
.application-item:last-child {
    border-bottom: none !important;
}

.joblistings-status-select {
    min-width: 160px;
}

/* Badge-styled filter links (status counts in the applicant pipeline modal) */
.joblistings-badge-link {
    border: none;
    background: none;
    padding: 0;
    margin-right: 4px;
}

/*
 * Collapsible mobile filter bar (job/index.php), toggled by a
 * .filter-toggle-link button via Bootstrap 5's native data-bs-toggle="collapse" —
 * no custom JS needed. Below md it behaves like any other Bootstrap collapse;
 * from md up it's always shown, regardless of collapse state.
 */
@media (min-width: 768px) {
    .joblistings-filter-collapse {
        display: block !important;
        height: auto !important;
    }
}

/* Admin: quick-nav button bar (views/admin/_nav.php) */
.joblistings-admin-nav .btn {
    flex: 1 1 auto;
}

@media (min-width: 576px) {
    .joblistings-admin-nav .btn {
        flex: 0 0 auto;
    }
}

/* Job section quick-nav bar (views/job/_nav.php) — shared by the job board,
   My job listings, Saved jobs, and My applications pages */
.joblistings-section-nav .btn {
    flex: 1 1 auto;
}

@media (min-width: 576px) {
    .joblistings-section-nav .btn {
        flex: 0 0 auto;
    }
}

/* Admin: overview stat tiles — 2-up on phones, 4-up from md */
.joblistings-stat-tile {
    padding: 8px 0;
}

/* Admin: pending-approval row — stacked on phones, inline from sm up */
.joblistings-pending-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 576px) {
    .joblistings-pending-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
}
