/* ============================================================
   JobBoard Pro — Editorial Dark Theme
   Fonts: Syne (display) + DM Sans (body)
   Palette: Deep navy bg · Electric amber accent · Slate text
   ============================================================ */

:root {
  --bg:         #0b0f1a;
  --bg-card:    #111827;
  --bg-card-h:  #161f30;
  --border:     #1e2d45;
  --border-l:   #253347;
  --text:       #e2e8f4;
  --text-muted: #6b7fa0;
  --text-dim:   #94a3b8;
  --accent:     #f59e0b;
  --accent-h:   #fbbf24;
  --accent-dim: rgba(245,158,11,0.12);
  --green:      #10b981;
  --green-dim:  rgba(16,185,129,0.14);
  --blue:       #3b82f6;
  --radius:     12px;
  --radius-sm:  7px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}
.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.header-nav {
  display: flex;
  gap: 28px;
}
.header-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
}

/* ── Search Form ───────────────────────────────────────── */
.search-form { max-width: 740px; }
.search-bar {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent);
  color: #0b0f1a;
  border: none;
  padding: 0 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 50px 50px 0;
}
.search-btn:hover { background: var(--accent-h); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.filter-check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ── Jobs Section ──────────────────────────────────────── */
.jobs-section { padding: 0 0 80px; }
.jobs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.jobs-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.clear-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.clear-link:hover { text-decoration: underline; }

/* ── Job Grid ──────────────────────────────────────────── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.job-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.job-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.job-card:hover::before { opacity: 1; }

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.job-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.job-logo-fallback {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
}
.indexed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #4285f4;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 50%;
  title: 'Indexed by Google';
}
.job-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-company {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: auto;
  padding-bottom: 16px;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-l);
  color: var(--text-dim);
}
.tag-green { background: var(--green-dim); border-color: rgba(16,185,129,0.25); color: var(--green); }
.tag-remote { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.25); color: #60a5fa; }
.tag-type   { background: var(--accent-dim); border-color: rgba(245,158,11,0.25); color: var(--accent); }

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.job-ago { font-size: 0.78rem; color: var(--text-muted); }
.job-apply {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #0b0f1a; }

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 0;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.btn-clear {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #0b0f1a;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-head);
}

/* ═══════════════════════════════════════════════════════════
   Detail Page
   ═══════════════════════════════════════════════════════════ */
.detail-main { padding: 40px 0 80px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* Detail Content */
.detail-content { min-width: 0; }
.detail-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.detail-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}
.detail-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.detail-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.detail-company {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-description {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.96rem;
}
.detail-description h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.detail-posted {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sidebar */
.detail-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.btn-apply {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #0b0f1a;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.3px;
}
.btn-apply:hover { background: var(--accent-h); transform: translateY(-1px); }
.sidebar-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.sidebar-details { display: flex; flex-direction: column; gap: 12px; }
.sidebar-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.sidebar-label { color: var(--text-muted); font-weight: 500; }
.sidebar-schema-note {
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--green);
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-links a { font-size: 0.8rem; color: var(--accent); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}
@media (max-width: 600px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1.5px; }
  .search-btn { padding: 0 18px; font-size: 0.85rem; }
  .detail-header { flex-direction: column; }
}
