/* Monster.com Style Jobs List Layout */

* {
    box-sizing: border-box;
}

/* Header */
.jobs-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: #fff;
    padding: 40px 0 30px;
    text-align: center;
}
.jobs-header h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.jobs-header p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 24px;
}
.jobs-search-bar {
    max-width: 600px;
    margin: 0 auto;
}
.jobs-search-bar form {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.jobs-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 50px;
    font-family: inherit;
}
.jobs-search-bar button {
    padding: 12px 28px;
    white-space: nowrap;
}

/* Main Layout - Split View */
.jobs-main {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 280px);
    min-height: 600px;
}

/* Left Panel - Jobs List */
.jobs-list-panel {
    width: 420px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.jobs-stats {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
    background: #fafafa;
}
.jobs-stats strong {
    color: var(--purple);
    font-weight: 600;
}
.jobs-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 5px;
}
.job-item {
    box-shadow: rgba(0, 0, 0, 0.15) 0 4px 8px 0;
    border-left-color: transparent!important;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
    border-left: 4px solid;
    border-radius: 6px;
    position: relative;
    background: #fff;
    cursor: pointer;
    padding: 20px;
}
.job-item:not(:last-child) {
    margin-bottom: 10px;
}
.job-item:hover {
    background: var(--purple-soft);
}
.job-item.active {
    border-left-color: var(--purple)!important;
    background: var(--purple-soft);
    padding-left: 20px;
}
.job-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1b29;
    margin-bottom: 8px;
    font-family: 'Proxima Nova Bold', Arial, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-item-preview {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.job-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-soft);
}
.job-item-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Right Panel - Job Detail */
.job-detail-panel {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    padding: 40px 48px;
}
.job-detail-content {
    display: none;
}
.job-detail-content.active {
    display: block;
}
.job-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--line);
}
.job-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.job-detail-header-content {
    flex: 1;
}
.job-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1b29;
    margin-bottom: 16px;
    line-height: 1.2;
}
.job-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 0;
}
.job-detail-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}
.job-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 32px;
}
.job-detail-actions {
    display: flex;
    gap: 12px;
}
.job-detail-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    white-space: nowrap;
}
/* Pagination */
.pagination-wrapper {
    padding: 10px 24px;
    border-top: 1px solid var(--line);
    background: #fafafa;
}
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.pagination li {
    display: inline-block;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.pagination a:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-soft);
}
.pagination .active span {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}
.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fff;
}
/* No Jobs */
.no-jobs {
    text-align: center;
    padding: 80px 24px;
}
.no-jobs-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}
.no-jobs h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--ink);
}
.no-jobs p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-bottom-sheet.active {
    opacity: 1;
    pointer-events: all;
}
.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    padding: 24px;
}
.mobile-bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.bottom-sheet-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.bottom-sheet-close:hover {
    background: var(--bg-soft);
}
.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 20px;
}
/* Mobile Styles */
@media (max-width: 968px) {
    .jobs-header h1 {
        font-size: 28px;
    }
    .jobs-search-bar form {
        flex-direction: column;
        border-radius: 16px;
    }
    .jobs-search-bar input,
    .jobs-search-bar button {
        border-radius: 12px;
    }
    .jobs-main {
        height: auto;
        min-height: auto;
    }
    .jobs-list-panel {
        width: 100%;
        border-right: none;
        height: auto;
    }
    .job-detail-panel {
        display: none;
    }
    .mobile-bottom-sheet {
        display: block;
    }
    .job-item.active {
        background: #fff;
        border-left: none;
        padding-left: 24px;
    }
    .job-item.active::before {
        display: none;
    }
    /* Mobile bottom sheet - keep actions at bottom */
    .bottom-sheet-header {
        flex-direction: row;
        align-items: flex-start;
    }
    .bottom-sheet-header > div {
        flex: 1;
    }
    .bottom-sheet-header .job-detail-actions {
        display: none;
    }
}

/* Scrollbar */
.jobs-list::-webkit-scrollbar,
.job-detail-panel::-webkit-scrollbar,
.bottom-sheet-content::-webkit-scrollbar {
    width: 8px;
}
.jobs-list::-webkit-scrollbar-track,
.job-detail-panel::-webkit-scrollbar-track,
.bottom-sheet-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.jobs-list::-webkit-scrollbar-thumb,
.job-detail-panel::-webkit-scrollbar-thumb,
.bottom-sheet-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.jobs-list::-webkit-scrollbar-thumb:hover,
.job-detail-panel::-webkit-scrollbar-thumb:hover,
.bottom-sheet-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}
