/* ==========================================================================
   Jobs Page High-Fidelity Design Styles - Hire Flow Theme
   ========================================================================== */

/* Hero Gradient Banner */
.jobs-hero-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(29, 78, 216, 0.15), 0 10px 10px -5px rgba(29, 78, 216, 0.1);
}

.jobs-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.jobs-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.jobs-hero-badge svg {
    color: #fcd34d;
}

.jobs-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.jobs-hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

/* Floating Character */
.jobs-character-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.jobs-character-img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 15px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Stats Cards inside Hero */
.jobs-stats-grid {
    display: flex;
    gap: 1rem;
    height: 100%;
    align-content: center;
    justify-content: center;
}

.jobs-stats-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    flex: 1;
    color: var(--text-main);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.jobs-stats-box:hover {
    transform: translateY(-4px);
}

.jobs-stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.jobs-stats-icon.blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.jobs-stats-icon.orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.jobs-stats-icon.purple {
    background-color: #faf5ff;
    color: #9333ea;
}

.jobs-stats-num {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.jobs-stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.jobs-stats-trend {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jobs-stats-trend.up {
    color: #16a34a;
}

/* Search Bar Wrapper */
.jobs-search-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    gap: 8px;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    flex: 1;
    min-width: 150px;
}

.search-input-group svg {
    color: #94a3b8;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

html[dir="rtl"] .search-input-group svg {
    margin-right: 0;
    margin-left: 0.75rem;
}

.search-input-group input {
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 0.95rem;
    color: var(--text-main);
    width: 100%;
}

.search-input-group input::placeholder {
    color: #94a3b8;
}

.search-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-light);
    flex-shrink: 0;
}

.search-select-dropdown {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    background-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-search-trigger {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search-trigger:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Popular Keywords */
.popular-searches-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
}

.popular-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.25rem 0.85rem;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Layout Padding */
.jobs-main-content {
    padding-top: 4rem;
    padding-bottom: 5rem;
    background-color: #f8fafc;
}

/* Custom Card Layouts */
.jobs-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
}

.reset-link {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

/* Form Controls Filters */
.filter-group-heading {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.filter-checkbox-label input {
    display: none;
}

.custom-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

html[dir="rtl"] .custom-box {
    margin-right: 0;
    margin-left: 0.75rem;
}

.custom-box svg {
    display: none;
    color: #ffffff;
    width: 12px;
    height: 12px;
}

.filter-checkbox-label input:checked + .custom-box {
    background-color: #2563eb;
    border-color: #2563eb;
}

.filter-checkbox-label input:checked + .custom-box svg {
    display: block;
}

.filter-checkbox-label:hover .custom-box {
    border-color: #2563eb;
}

.filter-checkbox-label:hover {
    color: var(--text-main);
}

.filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

html[dir="rtl"] .filter-count {
    margin-left: 0;
    margin-right: auto;
}

/* Custom Salary Slider */
.salary-slider-container {
    padding: 0.5rem 0;
}

.salary-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

.salary-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
}

.salary-range-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.3);
}

.salary-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* Main Listings Header */
.listings-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.listings-count-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.listings-sort-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--text-main);
    background-color: #ffffff;
    font-weight: 600;
}

/* Job Cards */
.job-item-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
    position: relative;
}

.job-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05), 0 8px 8px -6px rgba(0,0,0,0.03);
    border-color: rgba(37, 99, 235, 0.3);
}

.job-company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.job-company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-card-title:hover {
    color: #2563eb;
}

.job-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta-item svg {
    color: #94a3b8;
    width: 14px;
    height: 14px;
}

.job-rating-stars {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    font-size: 0.85rem;
}

.job-rating-reviews {
    color: #94a3b8;
    font-weight: 500;
}

.job-desc-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.job-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background-color: #f1f5f9;
    color: #475569;
}

.job-tag-badge.tech {
    background-color: #eff6ff;
    color: #2563eb;
}

.job-tag-badge.employment-type {
    background-color: #f0fdf4;
    color: #16a34a;
}

.job-tag-badge.work-type {
    background-color: #faf5ff;
    color: #9333ea;
}

.job-action-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.job-salary-display {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.job-posted-time {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.job-bookmark-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.job-bookmark-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

.btn-job-apply {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-job-apply:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Pagination */
.jobs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-main);
}

.pagination-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Right Sidebar featured card */
.sidebar-featured-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-featured-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-featured-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-featured-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-featured-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-featured-title:hover {
    color: #2563eb;
}

.sidebar-featured-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-featured-salary {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    margin-left: auto;
    flex-shrink: 0;
}

html[dir="rtl"] .sidebar-featured-salary {
    margin-left: 0;
    margin-right: auto;
}

/* Top Companies */
.sidebar-company-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-company-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-company-jobs {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

html[dir="rtl"] .sidebar-company-jobs {
    margin-left: 0;
    margin-right: auto;
}

/* Alert box widget */
.sidebar-alert-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.sidebar-alert-box::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: -50px;
    right: -50px;
}

.alert-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.alert-box-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert-box-input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    width: 100%;
    margin-bottom: 0.75rem;
    outline: none;
    box-shadow: none;
}

.alert-box-input::placeholder {
    color: #64748b;
}

.alert-box-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-alert-subscribe {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-alert-subscribe:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

/* Scrolling Brand Strip */
.brand-strip-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 3rem 0;
}

.brand-strip-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-logo-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    user-select: none;
}

.brand-logo-item:hover {
    color: #475569;
}

.brand-logo-item svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .jobs-hero-card {
        padding: 2.5rem 1.75rem;
    }
    .jobs-hero-title {
        font-size: 2.25rem;
    }
    .jobs-stats-grid {
        margin-top: 2rem;
    }
    .jobs-search-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .search-divider {
        display: none;
    }
    .btn-search-trigger {
        width: 100%;
    }
    .jobs-character-wrapper {
        display: none;
    }
}
