/* ==============================================
   EXPLORE PAGE — REFINED UI/UX
   ============================================== */

/* ── Header ── */
.explore-minimal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.explore-header-search input {
    font-family: inherit;
}

.explore-header-search input:focus {
    border-color: #0085FF !important;
    box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.12) !important;
}

/* ── Tabs / Modes ── */
.explore-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.explore-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.explore-tab:hover:not(.active) {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* ── Sidebar Preference Chips ── */
.sidebar-pref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pref-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    transition: all 0.15s ease;
}

.pref-chip i {
    font-size: 10px;
}

.pref-chip--role {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.pref-chip--type {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.pref-chip--salary {
    background: #fefce8;
    border-color: #fde68a;
    color: #a16207;
}

.pref-chip--empty {
    color: #94a3b8;
    font-weight: 500;
    font-style: italic;
    border: 1px dashed #e2e8f0;
}

.pref-chip--loading {
    color: #94a3b8;
    font-weight: 500;
}

.explore-sidebar,
.explore-sidebar-right {
    width: 220px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    height: fit-content;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

/* ── Pipeline Metric Cards ── */
.pipeline-metric-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.pipeline-metric-card:last-child {
    margin-bottom: 0;
}

.pipeline-metric-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.pipeline-metric-card .metric-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.pipeline-metric-card .metric-count {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    line-height: 1.2;
}

#exploreMarketSubView {
    flex-wrap: nowrap !important;
    flex-direction: row;
}

.explore-sidebar-section+.explore-sidebar-section {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* ── Sidebar Filter Pills ── */
.explore-filter-track {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-x: visible;
    scrollbar-width: none;
}

.explore-filter-track::-webkit-scrollbar {
    display: none;
}

.explore-fpill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.explore-fpill i {
    font-size: 12px;
    width: 16px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.15s;
}

.explore-fpill:hover {
    background: #f8fafc;
    color: #0f172a;
}

.explore-fpill.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.explore-fpill.active i {
    color: #2563eb;
}

/* ── Sort Dropdown ── */
.explore-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.explore-sort-wrap:focus-within {
    border-color: #0085FF;
    box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.08);
}

.sort-icon {
    color: #94a3b8;
    font-size: 12px;
}

.explore-sort-select {
    background: transparent;
    border: none;
    color: #0f172a;
    font-weight: 500;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

/* ── Results Grid ── */
.explore-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Job Cards ── */
.app-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.explore-results-grid .app-card {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 16px;
}

.explore-results-grid .app-card:last-child {
    border-bottom: none;
}

.explore-results-grid .app-card:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.app-card-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
}

.app-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.app-card-company {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-card-company i {
    font-size: 10px;
}

.app-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.card-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.01em;
}

.card-badge i {
    font-size: 9px;
}

.card-badge.salary {
    background: #ecfdf5;
    color: #059669;
}

.card-badge.match {
    background: #eff6ff;
    color: #2563eb;
}

/* ── Job Card Buttons ── */
.app-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.card-btn-save {
    background: transparent;
    border: none;
    font-size: 1.15rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.card-btn-save:hover {
    color: #94a3b8;
    transform: scale(1.1);
}

.card-btn-save.active {
    color: #0085FF;
}

.card-btn-apply {
    padding: 6px 16px;
    border-radius: 100px;
    border: none;
    background: #0085FF;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 133, 255, 0.25);
}

.card-btn-apply:hover {
    background: #0076e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 255, 0.3);
}

.card-btn-applied {
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-weight: 600;
    font-size: 12px;
    cursor: default;
}

/* ── Empty State ── */
.vj-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.vj-empty i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.vj-empty h3 {
    color: #475569;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 8px;
}

.vj-empty p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* ── Skeleton Shimmer ── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}

.skeleton-header {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.skeleton-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.skeleton-line {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── fadeInUp animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Kanban Board ── */
.kanban-board-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 1rem;
}

@media (max-width: 992px) {
    .kanban-board-premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.kanban-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.kanban-column .column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.kanban-column .column-title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column .count-badge {
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.kanban-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: grab;
    transition: all 0.15s ease;
}

.k-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.k-card:active {
    cursor: grabbing;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    #exploreMarketSubView {
        flex-direction: column;
    }

    .explore-sidebar,
    .explore-sidebar-right {
        width: 100% !important;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .explore-sidebar-section {
        flex: 1;
        min-width: 250px;
    }

    .explore-sidebar-section+.explore-sidebar-section {
        padding-top: 0;
        border-top: none;
        padding-left: 12px;
        border-left: 1px solid #f1f5f9;
    }

    .explore-sidebar-right .explore-sidebar-section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .explore-sidebar-right h3 {
        width: 100%;
        margin-bottom: 0 !important;
    }

    .pipeline-metric-card {
        flex: 1;
        min-width: 120px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {

    .explore-sidebar,
    .explore-sidebar-right {
        flex-direction: column;
    }

    .explore-sidebar-section+.explore-sidebar-section {
        padding-left: 0;
        border-left: none;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }

    .explore-results-grid {
        grid-template-columns: 1fr;
    }
}