/* ═══════════════════════════════════════════
   FAME JOBS — Job Listing Styles
   Matches: Image 1 design exactly
   job_listing.css
═══════════════════════════════════════════ */

/* ── Reset & Wrapper ── */
.fj-wrapper *,
.fj-wrapper *::before,
.fj-wrapper *::after {
    box-sizing: border-box;
}

.fj-wrapper {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a2332;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}


/* ═══════════════════════════════════════════
   SEARCH ROW
═══════════════════════════════════════════ */
.fj-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.fj-search-box {
    flex: 1;
    position: relative;
}

.fj-search-box input {
    width: 100%;
    height: 46px;
    padding: 0 18px 0 44px;
    border: 1.5px solid #dde3ec;
    border-radius: 999px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1a2332;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.fj-search-box input::placeholder {
    color: #a0aab8;
}

.fj-search-box input:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}

.fj-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #8898aa;
    pointer-events: none;
}

.fj-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.fj-alert-btn svg {
    width: 15px;
    height: 15px;
}

.fj-alert-btn:hover {
    background: #14304f;
    transform: translateY(-1px);
}

.fj-alert-btn:active {
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   FILTER BAR (top dropdowns)
═══════════════════════════════════════════ */
.fj-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.fj-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Custom pill dropdown */
.fj-dropdown-wrap {
    position: relative;
}

.fj-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    border: 1.5px solid #dde3ec;
    border-radius: 999px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: #1a2332;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.fj-dropdown-btn:hover,
.fj-dropdown-btn.active {
    border-color: #1a3a5c;
    background: #f0f4f9;
}

.fj-chevron {
    width: 10px;
    height: 7px;
    color: #6b7c93;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.fj-dropdown-btn.open .fj-chevron {
    transform: rotate(180deg);
}

.fj-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
    z-index: 999;
    display: none;
    overflow: hidden;
    animation: fjDropIn 0.15s ease;
}

.fj-dropdown-panel.fj-dropdown-right {
    left: auto;
    right: 0;
}

.fj-dropdown-panel.open {
    display: block;
}

@keyframes fjDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fj-dd-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    color: #2d3d50;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 0.5px solid #f0f3f7;
}

.fj-dd-item:last-child {
    border-bottom: none;
}

.fj-dd-item:hover {
    background: #f5f8fc;
}

.fj-dd-item.active {
    background: #edf3fa;
    color: #1a3a5c;
    font-weight: 500;
}

/* Sort row */
.fj-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fj-sort-label {
    font-size: 13px;
    color: #6b7c93;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.fj-main {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}


/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.fj-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 20px;
}

.fj-sidebar-box {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 14px;
    padding: 18px 16px;
}

.fj-sidebar-title {
    font-size: 13px !important;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f3f7;
}

.fj-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}

.fj-check-item:last-child {
    margin-bottom: 0;
}

.fj-check-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fj-sidebar-check {
    width: 15px;
    height: 15px;
    accent-color: #1a3a5c;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
}

.fj-check-label {
    font-size: 12.5px;
    color: #3a4a5c;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.15s;
}

.fj-check-item:hover .fj-check-label {
    color: #1a3a5c;
}

.fj-check-count {
    font-size: 11.5px;
    color: #8898aa;
    background: #f5f7fa;
    padding: 1px 7px;
    border-radius: 99px;
    min-width: 22px;
    text-align: center;
    line-height: 18px;
}


/* ═══════════════════════════════════════════
   JOBS COLUMN
═══════════════════════════════════════════ */
.fj-jobs-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 200px;
}


/* ═══════════════════════════════════════════
   JOB CARD
═══════════════════════════════════════════ */
.fj-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.fj-card:hover {
    border-color: #b8ccdf;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.08);
    transform: translateY(-1px);
}

/* Card top: info + salary */
.fj-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.fj-card-info {
    flex: 1;
    min-width: 0;
}

.fj-card-title {
    font-size: 25px !important;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 5px;
    line-height: 1.3;
}

.fj-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.fj-company {
    font-size: 12.5px;
    color: #1a3a5c;
    font-weight: 500;
}

.fj-dot {
    color: #c0ccda;
    font-size: 12px;
}

.fj-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #1a3a5c;
}

.fj-location svg {
    width: 11px;
    height: 14px;
    flex-shrink: 0;
}

.fj-posted {
    font-size: 11.5px;
    color: #8898aa;
    margin: 0;
}

.fj-salary {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

/* Description */
.fj-desc {
    font-size: 12.5px;
    color: #6b7c93;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.fj-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fj-tag {
    display: inline-block;
    font-size: 11.5px;
    padding: 4px 12px;
    border: 1px solid #dde3ec;
    border-radius: 999px;
    color: #4a5e72;
    background: #f7f9fc;
    white-space: nowrap;
    font-weight: 500;
}

/* Card footer: recruiter + button */
.fj-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
}

.fj-recruiter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fj-recruiter-img {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1.5px solid #dde3ec;
    flex-shrink: 0;
}

.fj-recruiter-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf3fa;
    border: 1.5px solid #c8d8ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #1a3a5c;
    flex-shrink: 0;
}

.fj-recruiter-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.fj-recruiter-info strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a2332;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fj-recruiter-info small {
    font-size: 11px;
    color: #8898aa;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fj-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 18px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 12.5px;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.fj-view-btn svg {
    width: 14px;
    height: 14px;
}

.fj-view-btn:hover {
    background: #14304f;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.fj-view-btn:active {
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   LOADING SPINNER
═══════════════════════════════════════════ */
.fj-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    z-index: 10;
}

.fj-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dde3ec;
    border-top-color: #1a3a5c;
    border-radius: 50%;
    animation: fjSpin 0.7s linear infinite;
}

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

/* Card entrance animation */
.fj-card {
    animation: fjCardIn 0.3s ease both;
}

@keyframes fjCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   NO RESULTS STATE
═══════════════════════════════════════════ */
.fj-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #8898aa;
    grid-column: 1 / -1;
}

.fj-no-results svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #c0ccda;
}

.fj-no-results p {
    font-size: 15px;
    font-weight: 500;
    color: #3a4a5c;
    margin: 0 0 6px;
}

.fj-no-results span {
    font-size: 13px;
    color: #8898aa;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .fj-main {
        grid-template-columns: 1fr;
    }

    .fj-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fj-sidebar-box {
        flex: 1;
        min-width: 200px;
    }

    .fj-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fj-sort-wrap {
        align-self: flex-end;
    }

    .fj-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fj-alert-btn {
        justify-content: center;
        width: 100%;
    }

    .fj-card-top {
        flex-direction: column;
        gap: 6px;
    }

    .fj-salary {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .fj-filter-group {
        width: 100%;
    }

    .fj-dropdown-btn {
        flex: 1;
        justify-content: space-between;
    }

    .fj-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .fj-view-btn {
        align-self: flex-end;
    }
}

.fj-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    justify-content: center;
}

.fj-page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e6ed;
    background: #fff;
    color: #1a2332;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fj-page-btn:hover {
    background: #f5f7fa;
}

.fj-page-btn.active {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

.fj-dots {
    padding: 0 6px;
    color: #999;
    font-size: 14px;
}

.fj-prev,
.fj-next {
    font-size: 18px;
}

/* ═══════════════════════════════════════════
   SKELETON SHIMMER LOADER
   Matches: High-Contrast Skeleton Shimmers
═══════════════════════════════════════════ */

/* Hide the old spinner overlay */
.fj-loading {
    display: none !important;
}

/* Shimmer animation — deeper slate base for visibility */
@keyframes swiss-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fj-shimmer-line {
    background: #E2E8F0;
    background-image: linear-gradient(
        90deg,
        #E2E8F0 0%,
        #F8FAFC 50%,
        #E2E8F0 100%
    );
    background-size: 200% 100%;
    animation: swiss-shimmer 1.5s infinite linear;
    border-radius: 6px;
}

/* Skeleton card — mimics .fj-card structure */
.fj-skeleton-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 14px;
    padding: 18px 20px;
    animation: fjCardIn 0.3s ease both;
}

/* Title line */
.fj-sk-title {
    height: 22px;
    width: 55%;
    margin-bottom: 10px;
}

/* Meta row: company · location */
.fj-sk-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.fj-sk-meta-a { height: 13px; width: 22%; }
.fj-sk-meta-b { height: 13px; width: 18%; }

/* Description lines */
.fj-sk-desc-1 {
    height: 12px;
    width: 100%;
    margin-bottom: 6px;
}
.fj-sk-desc-2 {
    height: 12px;
    width: 80%;
    margin-bottom: 14px;
}

/* Tags row */
.fj-sk-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.fj-sk-tag {
    height: 24px;
    border-radius: 999px;
}
.fj-sk-tag-a { width: 72px; }
.fj-sk-tag-b { width: 60px; }
.fj-sk-tag-c { width: 50px; }

/* Footer: avatar + button */
.fj-sk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
}
.fj-sk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fj-sk-recruiter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fj-sk-recruiter-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fj-sk-rec-name { height: 12px; width: 100px; }
.fj-sk-rec-role { height: 10px; width: 70px;  }
.fj-sk-btn      { height: 36px; width: 90px; border-radius: 999px; }