/* SiliconBoard — Brutalist Editorial Design System */

html { scroll-behavior: smooth; }

/* ── Design Tokens ── */
:root {
  --ink: #0f1724;
  --paper: #fbfcfe;
  --muted: #f4f7ff;
  --subtle: #f1f5f9;
  --accent: #00B4D8;
}

/* ── Content Gutter — ~20% on each side for large screens ── */
.gutter {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .gutter {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .gutter {
    padding-left: 20%;
    padding-right: 20%;
  }
}

/* ── SVG noise texture — raw concrete feel ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  opacity: 0.04;
}

/* ── Hard-offset card shadows with hover lift ── */
.job-card {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
  transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.12s cubic-bezier(0.2, 0, 0, 1);
}
.job-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--ink);
}
.job-card:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px var(--ink);
}

/* ── Job title underline animation ── */
.job-title {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.job-card:hover .job-title {
  background-size: 100% 2px;
}

/* ── Button color-invert ── */
.btn-apply {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  transition: all 0.12s ease-out;
}
.btn-apply:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Accent color CTA (surgical deployment) ── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  transition: all 0.12s ease-out;
}
.btn-accent:hover {
  background: #fff;
  color: var(--accent);
}

/* ── Three-tier tag hierarchy ── */
/* Tier 1: Employment type — filled */
.tag-t1 {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
}

/* Tier 2: Key metadata — outlined */
.tag-t2 {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* Tier 3: Tech stack — subtle, monospace */
.tag-t3 {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid #999;
  color: #666;
}

/* ── Monospace salary treatment ── */
.salary-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

/* ── Form focus ring ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink);
  border-color: var(--ink) !important;
}

/* ── Transitions ── */
a, button, input, select {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Filter button invert (brutalist active state) ── */
.filter-btn {
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.12s ease-out;
}
.filter-btn:hover,
.filter-btn--active {
  background: var(--ink);
  color: var(--paper);
}

/* ── Alternating row backgrounds ── */
.job-list-alt > *:nth-child(even) {
  background: var(--subtle);
}
