/* Fractional Pulse — Job Board specific styles.
   Reuses the design tokens defined in chrome.css (--teal, --bg-card, etc.). */

main { min-height: 60vh; }

/* ---- Hero ---- */
.board-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 50% -10%, var(--teal-ghost), transparent 70%);
}
.board-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.board-hero h1 .accent { color: var(--teal); }
.board-hero p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 620px;
  margin: 0 auto var(--space-lg);
}
.board-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--space-md);
}
.board-stats .count {
  color: var(--teal);
  font-weight: 700;
  font-feature-settings: "tnum";
}
.board-stats .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

/* ---- Filter bar ---- */
.filters {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(15, 25, 35, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.filters__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto auto;
  gap: var(--space-sm);
  align-items: center;
}
.filters input[type="text"],
.filters select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.filters input[type="text"]::placeholder { color: var(--text-muted); }
.filters input[type="text"]:focus,
.filters select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-ghost);
}
.filters select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235EEDC5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 1.8rem;
}
.remote-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-secondary); font-size: 0.85rem; white-space: nowrap; cursor: pointer;
}
.remote-toggle input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }
.btn-clear {
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  padding: 0.55rem 0.9rem; border-radius: var(--radius-md); font: inherit; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; transition: all var(--transition-fast);
}
.btn-clear:hover { border-color: var(--teal); color: var(--teal); }

/* ---- Job list ---- */
.job-list { padding: var(--space-xl) 0 var(--space-3xl); display: flex; flex-direction: column; gap: var(--space-md); }

.job-card {
  display: flex; gap: var(--space-lg); justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.job-card:hover {
  border-color: rgba(45, 212, 168, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.job-info { min-width: 0; flex: 1; }
.job-title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.25rem; }
.job-company { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.job-company a { color: var(--teal); text-decoration: none; }
.job-company a:hover { text-decoration: underline; }
.badge-confidential {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--warning); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251,191,36,0.25);
  padding: 0.1rem 0.45rem; border-radius: var(--radius-full);
}
.job-meta { display: flex; flex-wrap: wrap; gap: var(--space-md); color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
.job-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 70ch; margin-bottom: 0.7rem; white-space: pre-line; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.tag-remote { color: var(--teal); background: var(--teal-ghost); border-color: rgba(45,212,168,0.25); }
.tag-function { color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.tag-source { color: var(--text-muted); }
.job-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--space-md); flex-shrink: 0; }
.salary-badge {
  font-weight: 700; font-size: 0.95rem; color: var(--teal); white-space: nowrap;
  background: var(--teal-ghost); border: 1px solid rgba(45,212,168,0.25);
  padding: 0.35rem 0.7rem; border-radius: var(--radius-md);
}
.job-link {
  background: var(--teal); color: #07221b; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-md); white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.job-link:hover { background: var(--teal-light); transform: translateY(-1px); }

.loading { text-align: center; color: var(--text-muted); padding: var(--space-3xl) 0; font-size: 1rem; }

/* ---- Mobile nav (authoritative; matches fractionalpulse.com) ---- */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-sm); }
.mobile-nav {
  display: none; position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--bg-card); z-index: 200; padding: var(--space-xl);
  transition: right var(--transition-base);
}
.mobile-nav.active { right: 0; }
.mobile-nav__overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
.mobile-nav__overlay.active { display: block; }
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .filters__grid { grid-template-columns: 1fr 1fr; }
  .filters__grid .search-cell { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .job-card { flex-direction: column; gap: var(--space-md); }
  .job-right { flex-direction: row; align-items: center; width: 100%; }
  .filters { position: static; }
  .filters__grid { grid-template-columns: 1fr 1fr; }
}
