/*
Theme Name: Jobite Finder
Theme URI: https://example.com/jobite-finder
Author: ChatGPT
Author URI: https://openai.com
Description: Clean full-width job listing WordPress theme inspired by modern marketplace dashboards. Includes job cards, filter sidebar, search bar, and custom Job post type.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobite-finder
*/

:root {
  --jf-bg: #f5f7fb;
  --jf-surface: #ffffff;
  --jf-surface-soft: #f8faff;
  --jf-border: #e6ebf3;
  --jf-border-strong: #d5deea;
  --jf-text: #1e293b;
  --jf-heading: #111827;
  --jf-muted: #6b7280;
  --jf-soft-muted: #97a2b2;
  --jf-primary: #3b82f6;
  --jf-primary-dark: #2563eb;
  --jf-blue-soft: #edf4ff;
  --jf-green: #17c28e;
  --jf-yellow: #ffb800;
  --jf-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  --jf-shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.09);
  --jf-radius-xl: 20px;
  --jf-radius-lg: 16px;
  --jf-radius-md: 12px;
  --jf-radius-sm: 10px;
  --jf-max: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
  color: var(--jf-text);
  font-family: "Google Sans", "Product Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--jf-primary); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.fi { display: inline-flex; line-height: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 76px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(230, 235, 243, 0.9);
  backdrop-filter: blur(14px);
}

.jf-header-inner {
  width: 100%;
  max-width: var(--jf-max);
  min-height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.jf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.jf-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #5da3ff 0%, #2f79f6 100%);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .28);
  font-size: 18px;
}

.jf-brand-text {
  color: var(--jf-heading);
  font-weight: 800;
  letter-spacing: .02em;
}

.jf-main-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 76px;
}

.jf-main-nav a,
.jf-main-nav .menu-item a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #7a8596;
  font-weight: 700;
  font-size: 14px;
  transition: color .18s ease;
}

.jf-main-nav a:hover,
.jf-main-nav .current-menu-item > a,
.jf-main-nav .current_page_item > a {
  color: var(--jf-primary);
}

.jf-main-nav a:after,
.jf-main-nav .current-menu-item > a:after,
.jf-main-nav .current_page_item > a:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background .18s ease;
}

.jf-main-nav a:hover:after,
.jf-main-nav .current-menu-item > a:after,
.jf-main-nav .current_page_item > a:after {
  background: var(--jf-primary);
}

.jf-header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jf-muted);
  font-size: 13px;
}

.jf-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.jf-flag,
.jf-avatar,
.jf-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.jf-flag { background: #f3f6fb; font-size: 13px; }

.jf-icon-button {
  position: relative;
  border: 1px solid var(--jf-border);
  background: #fff;
  color: #6d7788;
}

.jf-bell:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6b6b;
  border: 2px solid #fff;
}

.jf-avatar {
  color: #748096;
  background: #eef3fb;
  font-weight: 800;
}

.jf-page {
  width: 100%;
  padding: 24px 30px 40px;
}

.jf-shell {
  width: 100%;
  max-width: var(--jf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.jf-filter-panel,
.jf-search-panel,
.jf-job-card,
.jf-single-card,
.jf-empty-card {
  background: var(--jf-surface);
  border: 1px solid var(--jf-border);
  border-radius: var(--jf-radius-xl);
  box-shadow: var(--jf-shadow);
}

.jf-filter-panel {
  position: sticky;
  top: 100px;
  align-self: start;
  min-height: calc(100vh - 128px);
  padding: 22px 20px;
}

.jf-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.jf-filter-top h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--jf-heading);
}

.jf-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9aa5b5;
  font-size: 12px;
  font-weight: 700;
}

.jf-filter-group { margin: 0 0 22px; }
.jf-filter-group:last-child { margin-bottom: 0; }

.jf-filter-title {
  display: block;
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 800;
  color: var(--jf-heading);
}

.jf-select-wrap,
.jf-search-field-wrap {
  position: relative;
}

.jf-select-icon-wrap > .fi,
.jf-search-field-wrap > .fi {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #9ca7b6;
  font-size: 14px;
  pointer-events: none;
}

.jf-select,
.jf-search-input,
.jf-field {
  width: 100%;
  border: 1px solid var(--jf-border);
  background: var(--jf-surface-soft);
  color: var(--jf-text);
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

.jf-select {
  height: 46px;
  border-radius: 12px;
  padding: 0 38px 0 40px;
  color: #6d7788;
  appearance: none;
}

.jf-select-wrap:after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-55%);
  color: #9aa5b5;
  pointer-events: none;
}

.jf-select:focus,
.jf-search-input:focus,
.jf-field:focus {
  border-color: rgba(59, 130, 246, .45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .09);
}

.jf-check,
.jf-radio {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 31px;
  gap: 9px;
  color: #6d7788;
  font-size: 13px;
  cursor: pointer;
}

.jf-check input,
.jf-radio input { display: none; }

.jf-check span:before,
.jf-radio span:before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  vertical-align: -4px;
  border: 1px solid var(--jf-border-strong);
  background: #fff;
  transition: .18s ease;
}

.jf-check span:before { border-radius: 6px; }
.jf-radio span:before { border-radius: 999px; }

.jf-check input:checked + span:before {
  content: "✓";
  color: #fff;
  background: var(--jf-primary);
  border-color: var(--jf-primary);
  font-size: 12px;
  font-weight: 900;
}

.jf-radio input:checked + span:before {
  border: 5px solid var(--jf-primary);
}

.jf-specialty-line {
  justify-content: space-between;
  gap: 10px;
}

.jf-count {
  margin-left: auto;
  color: #4c5b70;
  font-size: 12px;
  font-weight: 800;
}

.jf-range-wrap { padding-top: 4px; }

.jf-range-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: #e4eaf3;
}

.jf-range-fill {
  position: absolute;
  left: 17%;
  right: 28%;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--jf-primary);
}

.jf-range-dot {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  background: var(--jf-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, .35);
}

.jf-range-dot:first-of-type { left: 17%; }
.jf-range-dot:last-of-type { left: 72%; }

.jf-range-bubble {
  position: absolute;
  left: 72%;
  bottom: 17px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: #111827;
  font-size: 10px;
  font-weight: 800;
}

.jf-range-bubble:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #111827;
}

.jf-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  color: #4d596d;
  font-size: 11px;
  font-weight: 800;
}

.jf-content { min-width: 0; }

.jf-search-panel {
  padding: 14px;
  margin-bottom: 18px;
}

.jf-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}

.jf-search-input {
  height: 54px;
  border-radius: 14px;
  padding: 0 18px 0 44px;
  font-size: 14px;
}

.jf-search-button,
.jf-apply-button,
.jf-mobile-filter-toggle {
  height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--jf-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(59, 130, 246, .23);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.jf-search-button:hover,
.jf-apply-button:hover,
.jf-mobile-filter-toggle:hover {
  color: #fff;
  background: var(--jf-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(59, 130, 246, .30);
}

.jf-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--jf-muted);
  font-size: 13px;
}

.jf-toolbar strong { color: var(--jf-heading); }

.jf-jobs {
  display: grid;
  gap: 16px;
}

.jf-job-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 42px;
  gap: 18px;
  padding: 22px;
  transition: transform .2s ease, border .2s ease, box-shadow .2s ease;
}

.jf-job-card:hover {
  transform: translateY(-2px);
  border-color: #d7e4f7;
  box-shadow: var(--jf-shadow-hover);
}

.jf-company-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #23c993, #12a875);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24, 194, 143, .18);
}

.jf-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jf-job-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 3px;
}

.jf-job-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.jf-job-title a { color: var(--jf-heading); }
.jf-job-title a:hover { color: var(--jf-primary); }

.jf-time-ago {
  color: #8994a6;
  font-size: 12px;
  font-weight: 700;
}

.jf-job-meta-line {
  margin: 0 0 12px;
  color: #6d7788;
  font-size: 12px;
  font-weight: 700;
}

.jf-job-excerpt {
  margin: 0 0 14px;
  max-width: 1050px;
  color: #3b4758;
  font-size: 16px;
  line-height: 1.62;
}

.jf-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.jf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #6f7b8d;
  font-size: 12px;
  font-weight: 700;
}

.jf-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: #627084;
  font-size: 12px;
  font-weight: 700;
}

.jf-verified,
.jf-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jf-verified {
  color: #5a9ffc;
}

.jf-stars {
  color: var(--jf-yellow);
  letter-spacing: 1px;
  white-space: nowrap;
}

.jf-bookmark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #758297;
  border: 1px solid var(--jf-border);
  background: #fff;
  transition: .2s ease;
}

.jf-bookmark:hover {
  color: var(--jf-primary);
  border-color: rgba(59, 130, 246, .35);
  background: #f6faff;
}

.jf-empty-card {
  padding: 42px 28px;
  text-align: center;
  color: var(--jf-muted);
}

.jf-empty-card h2 {
  margin: 0 0 8px;
  color: var(--jf-heading);
  font-size: 22px;
}

.jf-single-wrap {
  width: 100%;
  max-width: 980px;
  margin: 28px auto;
  padding: 0 24px;
}

.jf-single-card { padding: 32px; }

.jf-single-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--jf-heading);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.jf-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.jf-single-content {
  color: #344154;
  font-size: 16px;
}

.jf-apply-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #d9e7fb;
  border-radius: 16px;
  background: #f7fbff;
}

.jf-apply-box p {
  margin-top: 8px;
  margin-bottom: 16px;
}

.jf-mobile-filter-toggle { display: none; }

.jf-site-footer {
  padding: 26px 30px 34px;
  color: #8490a3;
  text-align: center;
  font-size: 13px;
}

.admin-bar .site-header { top: 32px; }
.admin-bar .jf-filter-panel { top: 132px; }

@media (max-width: 1080px) {
  .jf-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
  .jf-page, .jf-header-inner { padding-left: 20px; padding-right: 20px; }
  .jf-job-card { grid-template-columns: 56px minmax(0, 1fr); }
  .jf-bookmark { position: absolute; right: 18px; top: 18px; }
  .jf-job-title-row { padding-right: 46px; }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  .jf-header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: auto;
  }
  .jf-main-nav {
    order: 3;
    flex-basis: 100%;
    min-height: auto;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .jf-main-nav a,
  .jf-main-nav .menu-item a {
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .jf-shell { grid-template-columns: 1fr; }
  .jf-filter-panel {
    position: static;
    min-height: unset;
    display: none;
  }
  .jf-filter-panel.is-open { display: block; }
  .jf-mobile-filter-toggle {
    display: inline-flex;
    margin-bottom: 14px;
    min-height: 48px;
    padding: 0 16px;
  }
  .jf-search-form { grid-template-columns: 1fr; }
  .jf-search-button { width: 100%; }
}

@media (max-width: 560px) {
  .jf-page { padding: 14px; }
  .jf-header-inner { padding-left: 14px; padding-right: 14px; }
  .jf-header-actions { gap: 8px; }
  .jf-lang { display: none; }
  .jf-job-card { grid-template-columns: 1fr; padding: 18px; }
  .jf-company-logo { width: 50px; height: 50px; font-size: 24px; }
  .jf-job-title-row { padding-right: 42px; }
  .jf-card-footer { gap: 10px; }
  .jf-chip { font-size: 11px; }
  .jf-single-card { padding: 22px; }
  .jf-site-footer { padding-left: 16px; padding-right: 16px; }
}
