/* ==========================================
   GigFind.com — Modern Job Search Engine
   Clean Professional Theme v3
   ========================================== */

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-darker: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-bg: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.12);

  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --bg-secondary: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 8px 25px -5px rgba(37,99,235,0.10), 0 1px 3px rgba(37,99,235,0.06);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--primary-dark); }

::selection { background: var(--primary); color: white; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo:hover { opacity: 0.85; text-decoration: none; color: var(--text); }

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.15s var(--ease); }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav .btn-primary { padding: 7px 18px; font-size: 0.85rem; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn:hover { background: var(--bg-secondary); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: var(--border-dark); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text); }

.btn-sm { padding: 7px 16px; font-size: 0.825rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  padding: 64px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 300px at 10% 80%, rgba(255,255,255,0.05) 0%, transparent 100%),
    radial-gradient(ellipse 400px 400px at 90% 20%, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Search Box */
.search-form { max-width: 720px; margin: 0 auto; }

.search-box {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.08);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: white;
  outline: none;
  min-width: 0;
}
.search-box input:first-child { padding-left: 24px; }
.search-box input::placeholder { color: #94a3b8; }

.search-box .divider {
  width: 1px;
  background: #e2e8f0;
  margin: 14px 0;
  flex-shrink: 0;
}

.search-box button {
  padding: 16px 30px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s var(--ease);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-box button:hover { background: var(--primary-dark); }

/* Search extras row */
.search-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.country-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.country-select select {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.country-select select option { color: var(--text); background: white; }

.trending-searches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.83rem;
}
.trending-searches .label { opacity: 0.6; }
.trending-searches a {
  color: rgba(255,255,255,0.9);
  padding: 3px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: all 0.15s var(--ease);
  font-size: 0.83rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.trending-searches a:hover {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 52px 0;
  background: var(--bg-section);
}

.section-alt { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-tertiary);
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: transform 0.2s var(--ease);
}

.category-card:hover .category-icon { transform: scale(1.12); }

.category-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.category-card .count {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Category icon colors */
.cat-it { background: #dbeafe; color: #2563eb; }
.cat-engineering { background: #e0e7ff; color: #4f46e5; }
.cat-healthcare { background: #d1fae5; color: #059669; }
.cat-finance { background: #fef3c7; color: #d97706; }
.cat-sales { background: #fce7f3; color: #db2777; }
.cat-education { background: #ede9fe; color: #7c3aed; }
.cat-hospitality { background: #fff7ed; color: #ea580c; }
.cat-retail { background: #ffe4e6; color: #e11d48; }
.cat-manufacturing { background: #f1f5f9; color: #475569; }
.cat-creative { background: #f3e8ff; color: #9333ea; }

/* ==========================================
   JOB CARDS
   ========================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.job-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.job-card:active { transform: translateY(0); }

.job-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.job-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: var(--primary);
}

.job-card-info { flex: 1; min-width: 0; }

.job-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-company {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.job-card-salary {
  font-weight: 700;
  color: var(--success);
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 2px 10px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-self: flex-start;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 8px 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.job-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card-desc {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.job-card-date { font-size: 0.77rem; color: var(--text-muted); }

.job-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-fulltime { background: #dcfce7; color: #166534; }
.badge-parttime { background: #fef9c3; color: #854d0e; }
.badge-contract { background: #dbeafe; color: #1e40af; }
.badge-permanent { background: #f3e8ff; color: #6b21a8; }

/* ==========================================
   SEARCH RESULTS PAGE
   ========================================== */
.search-page { padding: 28px 0; flex: 1; }

.search-header { margin-bottom: 20px; }
.search-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 2px; }
.search-header .count { color: var(--text-tertiary); font-size: 0.88rem; }

.search-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filters-header h3 { font-size: 0.95rem; font-weight: 700; }

.filter-group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s var(--ease);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--primary-light); }

.filter-group input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
}
.filter-group input[type="number"]:focus { border-color: var(--primary-light); }

.salary-range-inputs { display: flex; gap: 8px; align-items: center; }
.salary-range-inputs input { width: 100%; min-width: 0; }
.salary-range-inputs span { color: var(--text-muted); font-size: 0.85rem; }

.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-tertiary); }

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* No results */
.no-results { text-align: center; padding: 60px 20px; }
.no-results .icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.no-results h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.no-results p { color: var(--text-tertiary); margin-bottom: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination .btn { min-width: 38px; justify-content: center; }
.pagination .dots { color: var(--text-muted); padding: 0 4px; font-size: 0.85rem; }

/* ==========================================
   JOB DETAIL MODAL
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s var(--spring);
  position: relative;
  margin: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s var(--ease);
  z-index: 10;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 32px; }

.modal-job-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  padding-right: 36px;
}

.modal-job-company { font-size: 1rem; color: var(--primary); font-weight: 500; margin-bottom: 16px; }

.modal-job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.modal-meta-item { display: flex; flex-direction: column; gap: 2px; }
.modal-meta-item .label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.modal-meta-item .value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.modal-job-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.modal-job-desc p { margin-bottom: 10px; }
.modal-job-desc ul, .modal-job-desc ol { padding-left: 20px; margin-bottom: 10px; }
.modal-job-desc li { margin-bottom: 3px; }
.modal-job-desc h1, .modal-job-desc h2, .modal-job-desc h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-top: 18px; margin-bottom: 6px; }

.modal-job-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.modal-job-actions .btn { flex: 1; }

/* ==========================================
   FEATURES
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.feature-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.86rem; color: var(--text-tertiary); line-height: 1.6; }

/* ==========================================
   INFO PAGES
   ========================================== */
.info-page { max-width: 700px; margin: 0 auto; padding: 48px 24px; flex: 1; }
.info-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.info-page .subtitle { color: var(--text-tertiary); margin-bottom: 28px; }
.info-page h2 { font-size: 1.2rem; font-weight: 700; margin-top: 32px; margin-bottom: 10px; }
.info-page p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.info-page ul { padding-left: 20px; margin-bottom: 14px; }
.info-page li { margin-bottom: 6px; color: var(--text-secondary); }

/* ==========================================
   ADSENSE
   ========================================== */
.ad-container {
  text-align: center;
  overflow: hidden;
  margin: 24px 0;
  min-height: 90px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}
.ad-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 44px 0 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer p { font-size: 0.84rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer a { color: rgba(255,255,255,0.5); font-size: 0.84rem; display: block; margin-bottom: 8px; transition: all 0.15s var(--ease); }
.footer a:hover { color: white; text-decoration: none; }
.footer .logo { margin-bottom: 12px; color: white; }
.footer .logo span { color: var(--primary-lighter); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ==========================================
   FILTER BAR
   ========================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.filter-bar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar-select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
  min-width: 160px;
}
.filter-bar-select:focus { border-color: var(--primary-light); }

.filter-bar-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.trending-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trending-chips a {
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.trending-chips a:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .filter-bar-group { flex-direction: column; align-items: stretch; }
  .filter-bar-divider { display: none; }
  .trending-chips { justify-content: center; }
}

/* ==========================================
   API WARNING
   ========================================== */
.api-warning { background: #fef3c7; border-bottom: 1px solid #f59e0b; color: #92400e; padding: 10px 24px; text-align: center; font-size: 0.85rem; }
.api-warning a { color: #92400e; font-weight: 600; }

/* ==========================================
   TOAST
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s var(--spring);
  max-width: 360px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.animate-in { animation: fadeInUp 0.4s ease both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; margin-bottom: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: 0.92rem; margin-bottom: 22px; }

  .search-box { flex-direction: column; border-radius: 10px; }
  .search-box .divider { display: none; }
  .search-box input { padding: 14px 16px; }
  .search-box input:first-child { padding-left: 16px; }
  .search-box button { border-radius: 0; padding: 14px; justify-content: center; }

  .search-extras { flex-direction: column; align-items: stretch; }
  .trending-searches { justify-content: center; }

  .mobile-menu-btn { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav.active { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn-primary { margin-top: 6px; justify-content: center; }

  .jobs-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-body { padding: 24px; }
  .modal-job-title { font-size: 1.15rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .stats-bar-inner { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }

  .section { padding: 36px 0; }
  .section-header h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .categories-grid { gap: 8px; }
  .category-card { padding: 18px 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-job-meta-grid { grid-template-columns: 1fr; }
  .modal-job-actions { flex-direction: column; }
  .stats-bar-inner { gap: 14px; }
  .stat-value { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
