/* UpperMatch Browse - Jobs */
.um-jobs-app {
    font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
}
.um-jobs-app * { box-sizing: border-box; }
.um-jobs-loading { text-align: center; padding: 80px 20px; font-size: 15px; color: #94a3b8; }

/* ======================== */
/* SIDEBAR OVERLAY          */
/* ======================== */
.umj-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 2147483646;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    backdrop-filter: blur(2px);
}
.umj-sidebar-overlay.open { opacity: 1; visibility: visible; }

/* ======================== */
/* SIDEBAR                  */
/* ======================== */
.umj-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
    background: #fff; z-index: 2147483647; transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.1);
    overflow: hidden;
}
.umj-sidebar.open { transform: translateX(0); }

.umj-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e8eaef; flex-shrink: 0;
}
.umj-sidebar-header h3 {
    margin: 0; font-size: 15px; font-weight: 600;
    display: flex; align-items: center; gap: 8px; color: #1e293b;
}
.umj-sidebar-close {
    background: none; border: none; padding: 6px; cursor: pointer;
    color: #64748b; border-radius: 50%; transition: background .15s; display: flex;
}
.umj-sidebar-close:hover { background: #f1f5f9; }

.umj-sidebar-body {
    flex: 1; overflow-y: auto; padding: 16px 20px;
    display: flex; flex-direction: column; gap: 20px;
}
.umj-sidebar-body::-webkit-scrollbar { width: 4px; }
.umj-sidebar-body::-webkit-scrollbar-thumb { background: #d4d6dd; border-radius: 2px; }

.umj-sidebar-group label {
    display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: #64748b; margin-bottom: 6px;
}
.umj-sidebar-select {
    width: 100%; background: #f8f9fa; border: 1px solid #e8eaef; border-radius: 8px;
    padding: 10px 32px 10px 12px; font-size: 13px; color: #1e293b;
    cursor: pointer; outline: none; font-family: inherit;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.umj-sidebar-select:focus { border-color: #0071E3; }

.umj-sidebar-footer {
    padding: 14px 20px; border-top: 1px solid #e8eaef;
    display: flex; gap: 10px; flex-shrink: 0;
    background: #fff;
}
.umj-sidebar-clear {
    flex: 1; background: #fff; border: 1px solid #d4d6dd; color: #64748b;
    padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .15s;
}
.umj-sidebar-clear:hover { border-color: #dc2626; color: #dc2626; }

.umj-sidebar-apply {
    flex: 2; background: #0071E3; color: #fff; border: none;
    padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: background .15s;
}
.umj-sidebar-apply:hover { background: #005bb5; }

/* ======================== */
/* HEADER                   */
/* ======================== */
.umj-header { text-align: center; margin-bottom: 28px; }
.umj-header h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; color: #1e293b; }
.umj-header p { margin: 0; font-size: 15px; color: #64748b; }

/* ======================== */
/* TOOLBAR                  */
/* ======================== */
.umj-toolbar {
    display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap;
}
.umj-search-wrap { flex: 1; min-width: 180px; position: relative; }
.umj-search-wrap svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: #94a3b8; pointer-events: none;
}
.umj-search {
    width: 100%; background: #fff; border: 1px solid #d4d6dd; border-radius: 999px;
    padding: 10px 14px 10px 38px; font-size: 13px; color: #1e293b;
    outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.umj-search:focus { border-color: #0071E3; box-shadow: 0 0 0 3px rgba(0,113,227,.1); }
.umj-search::placeholder { color: #94a3b8; }

.umj-filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #d4d6dd; border-radius: 999px;
    padding: 10px 16px; font-size: 13px; font-weight: 600; color: #1e293b;
    cursor: pointer; white-space: nowrap; position: relative; font-family: inherit;
    transition: all .15s;
}
.umj-filter-btn:hover { border-color: #0071E3; color: #0071E3; }

.umj-filter-badge {
    display: none; background: #0071E3; color: #fff;
    font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
    line-height: 18px; text-align: center; border-radius: 9px; padding: 0 5px;
}
.umj-filter-badge.active { display: inline-block; }

.umj-sort {
    background: #fff; border: 1px solid #d4d6dd; border-radius: 999px;
    padding: 10px 28px 10px 14px; font-size: 13px; color: #1e293b;
    cursor: pointer; outline: none; font-family: inherit;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.umj-sort:focus { border-color: #0071E3; }

.umj-view-toggle {
    display: flex; gap: 2px; background: #f8f9fa; border: 1px solid #e8eaef;
    border-radius: 999px; padding: 3px;
}
.umj-view-btn {
    background: transparent; border: none; color: #94a3b8;
    padding: 5px 8px; border-radius: 999px; cursor: pointer;
    transition: all .15s; display: flex; align-items: center;
}
.umj-view-btn.active { background: #0071E3; color: #fff; }

/* ======================== */
/* META                     */
/* ======================== */
.umj-meta { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.umj-meta strong { color: #1e293b; font-weight: 600; }

/* ======================== */
/* JOB LIST                 */
/* ======================== */
.umj-list { display: flex; flex-direction: column; gap: 8px; }

/* ======================== */
/* JOB CARD                 */
/* ======================== */
.umj-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #e8eaef; border-radius: 12px;
    padding: 16px 20px; text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.umj-card:hover {
    border-color: #b4d5ff; box-shadow: 0 4px 20px rgba(0,113,227,.08); transform: translateY(-1px);
}

.umj-card-logo {
    width: 140px; flex-shrink: 0; align-self: stretch;
    overflow: hidden; background: #f1f5f9; display: flex;
    align-items: center; justify-content: center;
    border-right: 1px solid #e8eaef;
    margin: -16px 0 -16px -20px;
    border-radius: 12px 0 0 12px;
}
.umj-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.umj-logo-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: #b0b8c8; background: #f1f5f9;
}

.umj-card-body { flex: 1; min-width: 0; }
.umj-card-header { display: flex; align-items: baseline; gap: 8px; }
.umj-card-title {
    font-size: 15px; font-weight: 600; margin: 0; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.umj-card-dates {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0;
}
.umj-card-time { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.umj-card-deadline {
    font-size: 10px; color: #d97706; font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 3px;
}
.umj-card-deadline svg { color: #d97706; }
.umj-card-company { font-size: 13px; color: #475569; margin-top: 1px; }

.umj-card-details { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.umj-detail { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #64748b; }
.umj-detail svg { flex-shrink: 0; color: #94a3b8; }
.umj-salary { font-size: 12px; font-weight: 600; color: #059669; }

.umj-card-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.umj-tag {
    font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .3px;
    display: inline-flex; align-items: center; gap: 3px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.5);
}
.umj-tag svg { flex-shrink: 0; }
.umj-tag-type { background: rgba(0,113,227,.1); color: #0060c7; border-color: rgba(0,113,227,.15); }
.umj-tag-style { background: rgba(5,150,105,.1); color: #047857; border-color: rgba(5,150,105,.15); }
.umj-tag-dept { background: rgba(100,116,139,.1); color: #374151; border-color: rgba(100,116,139,.15); }
.umj-tag-featured { background: rgba(99,102,241,.1); color: #4338ca; border-color: rgba(99,102,241,.15); }

.umj-card-apply {
    flex-shrink: 0; background: #0071E3; color: #fff;
    padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
    transition: background .15s;
}
.umj-card:hover .umj-card-apply { background: #005bb5; }

/* Grid view */
.umj-list.umj-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px;
}
.umj-grid .umj-card {
    flex-direction: column; align-items: stretch; padding: 0;
}
.umj-grid .umj-card-logo {
    width: 100%; height: 120px; margin: 0;
    border-radius: 12px 12px 0 0; border-right: none; border-bottom: 1px solid #e8eaef;
}
.umj-grid .umj-card-logo img { padding: 20px; }
.umj-grid .umj-logo-placeholder { border-radius: 12px 12px 0 0; }
.umj-grid .umj-card-body { padding: 14px 16px; }
.umj-grid .umj-card-header { flex-direction: column; gap: 2px; }
.umj-grid .umj-card-title { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.umj-grid .umj-card-time { align-self: flex-end; margin-top: -18px; }
.umj-grid .umj-card-apply {
    margin: 0 16px 14px; text-align: center; border-radius: 999px;
}

/* ======================== */
/* FLOATING WIDGET          */
/* ======================== */
.umj-float {
    position: fixed; top: 50%; right: 16px;
    transform: translateY(-50%) translateX(16px) scale(.9);
    z-index: 9990; display: flex; flex-direction: column; gap: 8px;
    opacity: 0; visibility: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1); pointer-events: none;
}
.umj-float.visible {
    opacity: 1; transform: translateY(-50%) translateX(0) scale(1);
    visibility: visible; pointer-events: auto;
}
.umj-float-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 2px 12px rgba(0,0,0,.12); position: relative;
}
.umj-float-btn:active { transform: scale(.93); }
.umj-float-search { background: #fff; color: #1e293b; }
.umj-float-search:hover { box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.umj-float-filter { background: #0071E3; color: #fff; }
.umj-float-filter:hover { background: #005bb5; }

.umj-float-badge {
    display: none; position: absolute; top: -3px; right: -3px;
    background: #dc2626; color: #fff; font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; line-height: 16px; text-align: center;
    border-radius: 8px; padding: 0 4px;
}
.umj-float-badge.active { display: block; }

/* ======================== */
/* PAGINATION               */
/* ======================== */
.umj-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.umj-page {
    background: #fff; border: 1px solid #e8eaef; color: #1e293b;
    padding: 8px 14px; border-radius: 999px; font-size: 13px;
    cursor: pointer; transition: all .15s; min-width: 36px; text-align: center;
    font-family: inherit; font-weight: 500;
}
.umj-page:hover:not(:disabled) { border-color: #0071E3; color: #0071E3; }
.umj-page.active { background: #0071E3; border-color: #0071E3; color: #fff; font-weight: 600; }
.umj-page:disabled { opacity: .3; cursor: not-allowed; }
.umj-dots { color: #94a3b8; padding: 0 4px; font-size: 13px; line-height: 36px; }

/* ======================== */
/* EMPTY / SPINNER          */
/* ======================== */
.umj-empty { text-align: center; padding: 48px 20px; color: #94a3b8; }
.umj-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .3; }
.umj-empty h3 { font-size: 17px; color: #1e293b; margin: 0 0 4px; }
.umj-empty p { margin: 0; font-size: 13px; }

.umj-spinner { display: flex; justify-content: center; padding: 32px; }
.umj-spinner::after {
    content: ''; width: 28px; height: 28px;
    border: 2px solid #e8eaef; border-top-color: #0071E3; border-radius: 50%;
    animation: umj-spin .6s linear infinite;
}
@keyframes umj-spin { to { transform: rotate(360deg); } }

/* ======================== */
/* MOBILE                   */
/* ======================== */
@media (max-width: 768px) {
    .umj-header h1 { font-size: 22px; }
    .umj-header p { font-size: 13px; }
    .umj-toolbar { gap: 6px; }
    .umj-search { padding: 8px 10px 8px 32px; font-size: 12px; }
    .umj-search-wrap svg { left: 10px; width: 14px; height: 14px; }
    .umj-filter-btn { padding: 8px 12px; font-size: 12px; }
    .umj-filter-btn span:not(.umj-filter-badge) { display: none; }
    .umj-sort { padding: 8px 24px 8px 10px; font-size: 12px; }
    .umj-view-toggle { display: none; }
    .umj-list.umj-grid { grid-template-columns: 1fr; }

    .umj-card { flex-wrap: wrap; padding: 10px 12px; gap: 8px; align-items: center; }
    .umj-card-logo {
        width: 44px; height: 44px; margin: 0;
        border-radius: 10px; border-right: none; border-bottom: none;
    }
    .umj-card-logo img { padding: 4px; }
    .umj-logo-placeholder { font-size: 18px; border-radius: 10px; }
    .umj-card-body { min-width: 0; flex: 1; padding: 0; }
    .umj-card-title { font-size: 14px; }
    .umj-card-company { font-size: 12px; }
    .umj-card-details { gap: 8px; }
    .umj-detail { font-size: 11px; }
    .umj-salary { font-size: 11px; }
    .umj-card-tags { margin-top: 4px; }
    .umj-tag { font-size: 9px; padding: 1px 6px; }
    .umj-card-dates { flex-direction: row; gap: 6px; align-items: center; }
    .umj-card-apply { padding: 6px 14px; font-size: 12px; }
    .umj-page { padding: 6px 10px; font-size: 12px; }

    .umj-sidebar { width: 100%; max-width: 100vw; }
    .umj-float { right: 10px; }
    .umj-float-btn { width: 52px; height: 52px; }
    .umj-float-btn svg { width: 20px; height: 20px; }
}
