/*
Theme Name: JobZoom
Theme URI: https://jobzoom.com
Author: JobZoom
Description: A clean, modern job board theme with map search, seeker profiles, and employer dashboards. No page builder required.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
Text Domain: jobzoom
*/

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --brand:        #1a56db;
  --brand-dark:   #1040a0;
  --brand-light:  #e8f0fe;
  --accent:       #f97316;
  --surface:      #ffffff;
  --surface-2:    #f7f8fa;
  --surface-3:    #eef0f4;
  --border:       #e2e5ea;
  --text:         #111827;
  --text-2:       #4b5563;
  --text-3:       #9ca3af;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --font-head:    'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-w:        1200px;
  --nav-h:        64px;
}

/* ─── BASE ─────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-2);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 72px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 100px 0; }

/* ─── NAV ─────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary   { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline   { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost     { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-accent    { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #ea6c0a; }
.btn-lg { font-size: 16px; padding: 12px 28px; border-radius: 10px; }
.btn-sm { font-size: 13px; padding: 6px 14px; }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--brand);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; color: #fff;
  letter-spacing: -1px; margin-bottom: 16px;
}
.hero h1 em { color: #fbbf24; font-style: normal; }
.hero p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 40px; }

/* ─── SEARCH BAR ─────────────────────────────────────────── */
.search-bar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow-md);
  max-width: 680px; margin: 0 auto;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 15px; padding: 10px 14px;
  background: transparent; color: var(--text);
  font-family: var(--font-body);
}
.search-bar input::placeholder { color: var(--text-3); }
.search-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ─── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.stats-grid { display: flex; gap: 0; justify-content: center; }
.stat-item {
  text-align: center; padding: 0 40px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 24px; font-weight: 800; color: var(--brand); font-family: var(--font-head); }
.stat-item span { font-size: 13px; color: var(--text-2); }

/* ─── CATEGORIES ─────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card .cat-icon { font-size: 28px; margin-bottom: 8px; }
.category-card .cat-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.category-card .cat-count { font-size: 12px; color: var(--text-3); }

/* ─── JOB CARDS ─────────────────────────────────────────── */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all .15s;
  cursor: pointer;
}
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.job-card.featured { border-color: var(--brand); border-left: 3px solid var(--brand); }
.company-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--brand);
  font-family: var(--font-head);
}
.job-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.job-company { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; border: 1px solid var(--border);
  color: var(--text-2); background: var(--surface-2);
}
.tag.tag-remote { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.tag.tag-featured { background: var(--brand-light); border-color: #93c5fd; color: var(--brand-dark); }
.tag.tag-new { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.job-meta { margin-left: auto; text-align: right; flex-shrink: 0; font-size: 12px; color: var(--text-3); }
.job-salary { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* ─── JOB LISTINGS PAGE ─────────────────────────────────── */
.jobs-page-wrap {
  display: flex; gap: 20px;
  align-items: flex-start;
  min-height: calc(100vh - var(--nav-h));
}
.jobs-filters-sidebar {
  flex: 0 0 260px;
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.jobs-list-col {
  flex: 1; min-width: 0;
}
.jobs-map-col {
  flex: 0 0 420px;
  position: sticky; top: calc(var(--nav-h) + 20px);
  height: calc(100vh - var(--nav-h) - 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
#jobzoom-map { width: 100%; height: 100%; }

/* ─── FILTERS ─────────────────────────────────────────────── */
.filter-group { margin-bottom: 20px; }
.filter-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px;
  display: block;
}
.filter-input {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text);
  font-family: var(--font-body);
  background: var(--surface-2);
  outline: none; transition: border-color .15s;
}
.filter-input:focus { border-color: var(--brand); background: var(--surface); }
.filter-checks { display: flex; flex-direction: column; gap: 6px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.filter-check input { accent-color: var(--brand); width: 14px; height: 14px; }

/* ─── SEARCH BAR (listings page) ───────────────────────── */
.listings-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.listings-search input {
  flex: 1; border: none; outline: none;
  font-size: 14px; padding: 8px 12px;
  background: transparent; color: var(--text);
  font-family: var(--font-body);
}
.listings-count { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }

/* ─── MAP PIN POPUP ─────────────────────────────────────── */
.map-popup { font-family: var(--font-body); min-width: 200px; }
.map-popup strong { font-size: 14px; display: block; margin-bottom: 2px; }
.map-popup span { font-size: 12px; color: var(--text-2); }
.map-popup a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--brand); }

/* ─── DASHBOARD ─────────────────────────────────────────── */
.dashboard-wrap { display: flex; gap: 24px; align-items: flex-start; padding: 32px 0; }
.dashboard-sidebar {
  flex: 0 0 220px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.dashboard-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dashboard-nav a {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; padding: 9px 14px;
  border-radius: 8px; color: var(--text-2);
  transition: all .15s;
}
.dashboard-nav a:hover, .dashboard-nav a.active {
  background: var(--brand-light); color: var(--brand);
}
.dashboard-nav .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.dashboard-main { flex: 1; min-width: 0; }
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.panel-header { margin-bottom: 24px; }
.panel-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.panel-header p { font-size: 14px; color: var(--text-2); }

/* ─── CARDS / WIDGETS ─────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface-2); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card .stat-val { font-size: 28px; font-weight: 800; color: var(--brand); font-family: var(--font-head); }
.stat-card .stat-lbl { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ─── FORMS ─────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text);
  font-family: var(--font-body); background: var(--surface);
  outline: none; transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: #0f172a; color: rgba(255,255,255,.6);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; }

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--brand); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center;
}
.cta-banner h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 16px; }
.cta-banner .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.how-col h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: var(--font-head);
}
.step-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.step-text span { font-size: 13px; color: var(--text-2); }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brand); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { font-size: 16px; color: var(--text-2); margin-top: 10px; max-width: 520px; margin-inline: auto; }

/* ─── BADGE / ALERTS ─────────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-blue { background: var(--brand-light); color: var(--brand); }
.badge-green { background: #ecfdf5; color: #065f46; }
.badge-orange { background: #fff7ed; color: #c2410c; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jobs-map-col { display: none; }
  .jobs-page-wrap { flex-direction: column; }
  .jobs-filters-sidebar { position: static; flex: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { padding: 12px 20px; flex: 1 1 40%; }
  .how-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-wrap { flex-direction: column; }
  .dashboard-sidebar { position: static; flex: none; width: 100%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .search-bar { flex-direction: column; }
  .search-divider { display: none; }
  .nav-menu { display: none; }
}
