/* ==========================================================================
   Risel – Public Job Search Board CSS
   Design System: Sora + Inter, Modern SaaS, #0066FF Primary
   ========================================================================== */

.jobs-main {
    display: block;
    flex: none;
    min-height: 0;
    padding-bottom: 40px;
}

.jobs-workspace-section {
    padding: 20px 0 40px;
}

/* --- SEARCH CARD --- */
.jobs-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    box-sizing: border-box;
}

.jobs-search-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.jobs-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jobs-input-group.flex-2 { flex: 2; }
.jobs-input-group.flex-1 { flex: 1; }
.jobs-input-group.btn-wrap { flex: 0 0 160px; }

.jobs-input-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.jobs-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.jobs-input-wrapper svg {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
}

.jobs-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.jobs-input:focus {
    border-color: #0066FF;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.jobs-search-btn {
    width: 100%;
    height: 46px;
    background: #0066FF;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.jobs-search-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

/* Chips Bar */
.jobs-chips-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.chips-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.chips-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jobs-chip {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jobs-chip:hover,
.jobs-chip.active {
    background: rgba(0, 102, 255, 0.08);
    color: #0066FF;
    border-color: rgba(0, 102, 255, 0.25);
}

/* --- RESULTS HEADER --- */
.jobs-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.results-meta {
    font-size: 13.5px;
    color: #64748b;
}

.results-meta strong {
    color: #0f172a;
}

/* --- JOB CARDS LIST --- */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.06);
}

.job-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.job-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 102, 255, 0.08);
    color: #0066FF;
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-title {
    font-family: 'Sora', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.job-company {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.job-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.job-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.job-tag.salary {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.job-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0066FF;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-apply:hover {
    background: #0066FF;
    color: #ffffff;
}

.job-posted-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Pagination */
.jobs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.page-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
}

.page-num.active {
    background: #0066FF;
    color: #ffffff;
    border-color: #0066FF;
}

@media (max-width: 768px) {
    .jobs-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .jobs-input-group.btn-wrap { flex: auto; }
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }
}
