/* ============================================
   JOB LIST - STYLESHEET
   Job-Scouts.com | Job listing/browsing page
   ============================================ */

/* Note: Badge styles imported from components/badges.css */

/* ========== HERO SECTION ========== */
.jobs-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.03) 100%);
    padding: var(--space-12) 0 var(--space-8);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-2xl);
}

.jobs-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-900);
    margin-bottom: var(--space-3);
}

.jobs-hero p {
    font-size: 1.125rem;
    color: var(--secondary-600);
}

/* ========== FILTER BAR ========== */
/* ========== FILTER BAR ========== */
.filter-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9ff 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    margin-bottom: var(--space-8);
    border: 1px solid rgba(79, 70, 229, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    transition: all 0.3s ease;
}

.filter-bar:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}

/* Input / Select styling */
.filter-bar .form-select,
.filter-bar input[type="text"],
.filter-bar select {
    border: 1.8px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    background-color: #fff;
    color: var(--secondary-800);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 180px;
}

.filter-bar .form-select:focus,
.filter-bar input[type="text"]:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    outline: none;
}

/* Filter Button */
.filter-bar button {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

/* Label or heading inside filter bar */
.filter-bar-title {
    font-weight: 600;
    color: var(--secondary-800);
    margin-right: var(--space-4);
    font-size: 1rem;
}

/* ========== JOB CARD - MODERN DESIGN ========== */
.job-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    border: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.job-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.2);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.company-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--secondary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-100);
}

.company-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-wrapper i {
    font-size: 1.75rem;
    color: var(--secondary-400);
}

.job-card-content {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-900);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.job-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.job-title a:hover {
    color: var(--primary-600);
}

.job-company {
    color: var(--secondary-600);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.875rem;
    color: var(--secondary-500);
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.job-meta-item i {
    font-size: 0.8125rem;
}

.job-card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--secondary-100);
}

/* ========== ACTION BUTTONS ========== */
.btn-job-apply {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-job-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-save-job {
    background: white;
    color: var(--secondary-600);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid var(--secondary-200);
    transition: var(--transition-normal);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-save-job:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: rgba(79, 70, 229, 0.04);
}

.btn-save-job.saved {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: rgba(79, 70, 229, 0.08);
}

/* ========== SIDEBAR ========== */
.sidebar-sticky {
    position: sticky;
    top: calc(var(--space-20) + var(--space-4));
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(79, 70, 229, 0.08);
    margin-bottom: var(--space-4);
}

.sidebar-card h6 {
    font-weight: 700;
    color: var(--secondary-900);
    margin-bottom: var(--space-4);
    font-size: 1rem;
}

.quick-link-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 2px solid var(--secondary-200);
    background: white;
    color: var(--secondary-700);
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.quick-link-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: rgba(79, 70, 229, 0.04);
    transform: translateY(-1px);
}

/* ========== LOADING & EMPTY STATES ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: var(--space-8);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--secondary-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.no-more-jobs {
    text-align: center;
    padding: var(--space-6);
    color: var(--secondary-500);
    font-size: 0.9375rem;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.4);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .jobs-hero h1 {
        font-size: 2rem;
    }

    .job-card-header {
        flex-direction: column;
    }

    .company-logo-wrapper {
        width: 56px;
        height: 56px;
    }

    .job-card-actions {
        flex-direction: column;
    }

    .btn-job-apply,
    .btn-save-job {
        width: 100%;
        justify-content: center;
    }

    .sidebar-sticky {
        position: static;
    }
}