﻿ 

:root {
    /* Light Theme Colors */
    --bg-primary-light: #f8f9fa;
    --bg-secondary-light: #ffffff;
    --bg-card-light: #ffffff;
    --text-primary-light: #1a1a1a;
    --text-secondary-light: #4a4a4a;
    --text-muted-light: #6c757d;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    /* Dark Theme Colors */
    --bg-primary-dark: #191716;
    --bg-secondary-dark: #22170e;
    --bg-card-dark: linear-gradient(135deg, #22170e 50%, #5b330d 120%);
    --text-primary-dark: #ffdea2;
    --text-secondary-dark: #ffc473;
    --text-muted-dark: #bc9654;
    --border-dark: #a75f13;
    --shadow-dark: rgba(206, 133, 16, 0.3);
    /* Accent */
    --accent-primary: #ff9901;
    --accent-secondary: #b45010;
    --accent-light: #ffa140;
    --accent-gradient: linear-gradient(90deg, #ff9901 10%, #b45010 100%);
}

/* Theme binding (نفس منطق صفحة المشاريع) */
[data-theme="light"], .light-mode {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-card: var(--bg-card-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-muted: var(--text-muted-light);
    --border-color: var(--border-light);
    --shadow-color: var(--shadow-light);
}

[data-theme="dark"], .dark-mode {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-card: var(--bg-card-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: var(--border-dark);
    --shadow-color: var(--shadow-dark);
}

.hiring-page {
    background: var(--bg-primary, #191716);
    min-height: 100vh;
    padding-bottom: 80px;
    transition: background-color 0.3s ease;
}

/* HERO (بستايل قريب من مشاريع لكن أبسط) */
.hiring-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hiring-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

[data-theme="dark"] .hiring-hero-bg,
.dark-mode .hiring-hero-bg {
    background: linear-gradient(120deg, #191716 50%, #a75f13 100%);
    opacity: 0.96;
}

[data-theme="light"] .hiring-hero-bg,
.light-mode .hiring-hero-bg {
    background: linear-gradient(120deg, #ffffff 30%, #ffe4b5 100%);
    opacity: 1;
}

.hiring-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem;
}

.hiring-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

[data-theme="light"] .hiring-hero-title,
.light-mode .hiring-hero-title {
    color: #1a1a1a;
    -webkit-text-fill-color: transparent;
}

.hiring-hero-desc {
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

[data-theme="dark"] .hiring-hero-desc,
.dark-mode .hiring-hero-desc {
    color: #ffc473;
    text-shadow: 0 2px 15px rgba(93, 57, 24, 0.8);
}

[data-theme="light"] .hiring-hero-desc,
.light-mode .hiring-hero-desc {
    color: #4a4a4a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* JOB CARDS – based on project-card */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem 1.2rem;
    min-height: 260px;
    position: relative;
}

.job-card {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 16px var(--shadow-color);
}

    .job-card:hover {
        transform: scale(1.02);
    }

[data-theme="dark"] .job-card:hover,
.dark-mode .job-card:hover {
    box-shadow: 0 15px 32px rgba(61, 34, 6, 0.47), 0 6px 30px rgba(255, 174, 26, 0.47);
}

[data-theme="light"] .job-card:hover,
.light-mode .job-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(255, 153, 1, 0.15);
}

.job-header {
    padding: 1rem 1.2rem 0.5rem;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

    .job-title i {
        color: var(--accent-primary);
    }

.job-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

    .job-meta i {
        color: var(--accent-primary);
    }

.job-body {
    padding: 0 1.2rem 0.4rem;
    flex: 1 0 auto;
}

.job-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    padding: 0.7rem 1.2rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 18px 18px;
    border-top: 1px solid #e0e0e0;
}

[data-theme="dark"] .job-footer,
.dark-mode .job-footer {
    border-top: 1px solid rgba(167, 95, 19, 0.17);
    background: rgba(37, 24, 14, 0.91);
}

[data-theme="light"] .job-footer,
.light-mode .job-footer {
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.job-footer span {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9em;
}

.job-status-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    border-radius: 18px;
    padding: 0.18em 0.6em;
    font-size: 0.85em;
    box-shadow: 0 1.9px 8px rgba(255, 186, 65, 0.21);
}

.btn-grad-orange {
    background: var(--accent-gradient);
    color: #fff !important;
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 24px rgba(185, 113, 8, 0.25);
    font-weight: 700;
    font-size: 0.95em;
    padding: 0.4em 1.6em;
    transition: all 0.3s ease;
}

    .btn-grad-orange:hover {
        background: linear-gradient(90deg, #b45010 10%, #ff9901 100%);
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 28px rgba(185, 113, 8, 0.4);
    }

/* Pagination – نفس استايل المشاريع */
.pagination {
    justify-content: center;
    gap: 0.5rem;
}

.page-item .page-link {
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 600;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .page-link,
.dark-mode .page-link {
    background: #fff2d9;
    color: #b86214;
}

[data-theme="light"] .page-link,
.light-mode .page-link {
    background: #ffffff;
    color: var(--accent-secondary);
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background: var(--accent-light) !important;
    color: #fff !important;
    border-color: var(--accent-light) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 161, 64, 0.4);
}

.page-link:hover {
    background: var(--accent-secondary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 80, 16, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

    .empty-state i {
        font-size: 4rem;
        color: var(--accent-light);
        margin-bottom: 1rem;
    }

    .empty-state h3 {
        color: var(--text-primary);
        margin-bottom: 1rem;
    }

@media (max-width: 768px) {
    .hiring-hero-content {
        padding: 2.2rem 1rem;
    }
}

.hiring-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 220px;
}

.hiring-hero-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.35), transparent 60%), radial-gradient(circle at bottom right, rgba(255, 152, 0, 0.4), transparent 55%);
    opacity: 0.9;
}

[data-theme="dark"] .hiring-hero-card-bg,
.dark-mode .hiring-hero-card-bg {
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.35), transparent 60%), radial-gradient(circle at bottom right, rgba(184, 96, 8, 0.55), transparent 55%);
}

.hiring-hero-card-content {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}


.text-muted-hero {
    color: rgba(255, 255, 255, 0.82);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.job-card {
    position: relative;
    overflow: hidden;
}

.job-card-accent {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.3), transparent 60%), radial-gradient(circle at bottom right, rgba(255, 152, 0, 0.25), transparent 55%);
}

/* دارك مود = خلفية أغمق */
[data-theme="dark"] .job-card,
.dark-mode .job-card {
    background: radial-gradient(circle at top left, #2b1a10 0, #1a120b 55%, #120c08 100%);
    border-color: rgba(167, 95, 19, 0.6);
}

/* لايت مود = كارد فاتح أنظف */
[data-theme="light"] .job-card,
.light-mode .job-card {
    background: linear-gradient(135deg, #ffffff 0, #fffaf2 100%);
}
/* نجبر الباك دروب يكون أسود غامق بالكامل */
.modal-backdrop.show {
    opacity: 1 !important;
    background-color: #000000 !important;
}

/* نلغي أي شفافية على البودي لو ليه ستايل سابق */
.modal-backdrop {
    background-color: #000000;
}

/* نضمن أن المودال نفسه فوق الخلفية الغامقة */
.modal {
    z-index: 1060;
}


.job-modal-content {
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 18px 40px var(--shadow-color);
}

[data-theme="dark"] .job-modal-content,
.dark-mode .job-modal-content {
    background: radial-gradient(circle at top left, #2b1a10 0, #1a120b 55%, #120c08 100%);
    color: #ffdea2;
}

.modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.modal-body h6 {
    color: var(--accent-light);
}