/* ══════════════════════════════════════════
   JOBS MODULE — jobs.css
   Uses PKK Soft design tokens from style.css
══════════════════════════════════════════ */

/* ── NAVBAR ── */
.jobs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 66px;
    z-index: 900;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.jobs-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jobs-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.jobs-nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.jobs-nav-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.jobs-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.jobs-nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.jobs-nav-link:hover { color: var(--primary); }


/* ── HERO ── */
.jobs-hero {
    position: relative;
    height: 320px;
    margin-top: 66px;
    background: url('../assets/images/careers-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.jobs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(30,56,114,0.72) 0%,
        rgba(80,152,81,0.60) 100%);
}
.jobs-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.jobs-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}
.jobs-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}
.jobs-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.jobs-breadcrumb a       { color: rgba(255,255,255,0.75); transition: color .2s; }
.jobs-breadcrumb a:hover { color: #ffffff; }
.jobs-breadcrumb i       { font-size: 9px; }
.jobs-breadcrumb span    { color: #ffffff; font-weight: 600; }


/* ── SECTION ── */
.jobs-section {
    padding: 64px 0 40px;
    background: var(--bg-soft);
    min-height: 60vh;
}
.jobs-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
}


/* ── HEAD ── */
.jobs-head {
    text-align: center;
    margin-bottom: 36px;
}
.jobs-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.jobs-sub {
    font-size: 13px;
    color: var(--text-muted);
}


/* ── FILTERS ── */
.jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}
.jobs-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}
.jobs-search-wrap i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 12px;
}
.jobs-search-wrap input {
    width: 100%;
    padding: 9px 12px 9px 32px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.jobs-search-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,56,114,0.08);
}
.jobs-filters select {
    padding: 9px 32px 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .2s;
    min-width: 140px;
}
.jobs-filters select:focus {
    border-color: var(--primary);
}


/* ── RESULT COUNT ── */
.jobs-result-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 2px;
}
.jobs-result-count strong {
    color: var(--primary);
    font-weight: 700;
}


/* ── JOB CARD ── */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.job-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.job-card:hover {
    border-color: var(--border-h);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.job-card-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 1;
}
.job-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,56,114,0.2);
}
.job-info { flex: 1; }
.job-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 8px;
}
.job-meta span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-meta i {
    font-size: 10px;
    color: var(--secondary);
}
.job-summary {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.7;
    margin: 0;
}
.job-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* ── TYPE BADGE ── */
.job-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}
.job-type-badge.full-time  { background: rgba(80,152,81,0.12); color: #3d7a3e; border: 1px solid rgba(80,152,81,0.25); }
.job-type-badge.part-time  { background: rgba(245,158,11,0.12); color: #b45309; border: 1px solid rgba(245,158,11,0.25); }
.job-type-badge.contract   { background: rgba(30,56,114,0.10); color: #1e3872; border: 1px solid rgba(30,56,114,0.2); }
.job-type-badge.internship { background: rgba(139,92,246,0.10); color: #6d28d9; border: 1px solid rgba(139,92,246,0.2); }


/* ── EMPTY STATE ── */
.jobs-empty {
    text-align: center;
    padding: 72px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
}
.jobs-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
}
.jobs-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.jobs-empty p {
    font-size: 13px;
    color: var(--text-sec);
    margin-bottom: 24px;
}

/* ── NO RESULT (JS) ── */
.jobs-no-result {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}
.jobs-no-result i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    color: var(--border-h);
}


/* ── FOOTER ── */
.jobs-footer {
    text-align: center;
    padding: 28px 20px;
    background: var(--primary);
}
.jobs-footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}
.jobs-footer a {
    color: var(--sec-light);
    font-weight: 600;
    text-decoration: underline;
}
.jobs-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.35) !important;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .jobs-hero  { height: 240px; }
    .job-card   { flex-direction: column; }
    .job-card-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .jobs-filters { flex-direction: column; }
    .jobs-search-wrap,
    .jobs-filters select { width: 100%; min-width: unset; }
    .jobs-nav-name { display: none; }
}
@media (max-width: 480px) {
    .job-card-left { flex-direction: column; }
    .job-icon { width: 40px; height: 40px; font-size: 16px; }
}
