/* ============================================================
   FPGAjobs — "Silicon" skin.

   Dark like the current site, but a different kind of dark: near-black with a
   violet cast, glass surfaces, gradient accents, larger type and more air.
   Where "Terminal" reads as a console, this reads as a product — the register
   a candidate meets everywhere else they look at work.

   The gradients are confined to accents (buttons, rules, the wordmark). A
   gradient behind body text is the failure mode of this style, and a job board
   is body text.

   Same token names as every other skin. See `jobs/theming.py`.
   ============================================================ */
:root {
  color-scheme: dark;

  --bg-primary:    #08070e;
  --bg-surface:    #111019;
  --bg-surface-2:  #191826;
  --border-muted:  #23222f;
  --border-default:#332f45;
  --fg-default:    #f3f2f8;
  --fg-muted:      #a3a1b4;
  --fg-subtle:     #706e85;
  --accent-blue:   #8b8cff;
  --accent-green:  #35d6a0;
  --accent-amber:  #fbbf4c;
  --accent-red:    #fb7185;
  --accent-teal:   #38d6ee;
  --neon-green:    #a98bfa;

  --violet: #7c5cff;
  --cyan:   #29d3ee;
  --gradient: linear-gradient(120deg, #7c5cff, #29d3ee);

  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* === BASE ===
   One glow, fixed, top-centre. It is what makes the ground feel lit rather
   than merely dark, and being fixed means it does not travel down a listing of
   two hundred postings turning every card a different shade. */
body {
  background-color: var(--bg-primary) !important;
  background-image:
    radial-gradient(900px 460px at 50% -160px, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(700px 400px at 88% 4%, rgba(41, 211, 238, 0.10), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg-default) !important;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg-default);
  letter-spacing: -0.022em;
  font-weight: 600;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #b4b5ff; text-decoration: none; }

.text-muted { color: var(--fg-muted) !important; }
.display-4, .display-6 { color: var(--fg-default) !important; letter-spacing: -0.03em; }
.fs-5 { color: var(--fg-muted) !important; }

/* === NAVBAR ===
   Sticky and translucent. The blur is the point of the treatment: content
   passing under the bar stays legible as tone rather than as detail. */
.navbar.bg-dark {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(8, 7, 14, 0.72) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-muted);
  box-shadow: none;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0 !important;
}

.navbar-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg-default) !important;
  letter-spacing: -0.03em;
}
/* The wordmark carries the gradient so nothing else has to. */
.brand-slash {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  color: var(--fg-muted) !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg-default) !important; }

.navbar .form-control {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-muted) !important;
  color: var(--fg-default) !important;
  border-radius: 999px;
  padding-left: 1rem;
  font-size: 0.9rem;
}
.navbar .form-control::placeholder { color: var(--fg-subtle) !important; }
.navbar .form-control:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2) !important;
}

.navbar .btn-outline-success {
  color: var(--fg-default) !important;
  border: 1px solid var(--border-default) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 550;
}
.navbar .btn-outline-success:hover {
  background: var(--gradient) !important;
  border-color: transparent !important;
  color: #0b0a12 !important;
}

/* === DROPDOWNS === */
.dropdown-menu {
  background-color: rgba(17, 16, 25, 0.96) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-muted) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  padding: 0.4rem;
}
.dropdown-item { color: var(--fg-default) !important; font-size: 0.9rem; border-radius: 8px; }
.dropdown-item:hover { background-color: rgba(255, 255, 255, 0.06) !important; color: var(--fg-default) !important; }
.dropdown-divider { border-color: var(--border-muted) !important; }

/* === MAIN === */
main .p-5, main .bg-light { background-color: transparent !important; }
main { padding-top: 0.5rem; }

/* === SECTION HEAD + LABEL === */
.section-head { border-bottom: 1px solid var(--border-muted); padding-bottom: 0.75rem !important; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 650;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0;
  border: none;
  margin-bottom: 0.5rem;
}

/* === CARDS ===
   Still glass, but only for the things that genuinely are cards: the pricing
   tiers, the alert prompt, the employer dashboard. A posting in a listing is
   a row now — see `.job-row` below and `static/css/layout.css`. */
.card {
  background-color: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid var(--border-muted) !important;
  color: var(--fg-default) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  border-color: var(--border-default) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* === THE LISTING ===
   `layout.css` decides the geometry; this decides what it is made of. The
   whole treatment is one hairline and a hover wash, because at this density
   any per-row border, shadow or radius is repeated fifty times down the page
   and stops reading as a card — it reads as noise. */
.job-list-day {
  color: var(--fg-subtle);
  border-bottom: 1px solid var(--border-muted);
}

.job-row {
  border-bottom-color: var(--border-muted);
  transition: background-color 0.12s ease;
}
.job-row:hover { background-color: rgba(255, 255, 255, 0.035); }
.job-row:last-child { border-bottom-color: transparent; }

.job-row-title a { color: var(--fg-default); }
.job-row:hover .job-row-title a { color: #c3b4ff; }

/* Employer and place are context. Left as accent-blue they made every row
   three coloured links deep and the title — the thing being chosen between —
   the quietest text in it. */
.job-row-co a { color: var(--fg-muted); }
.job-row-loc, .job-row-loc a { color: var(--fg-subtle); }
.job-row-co a:hover, .job-row-loc a:hover { color: var(--fg-default); }

.job-row-monogram {
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg-muted);
  border: 1px solid var(--border-muted);
}
.job-row:hover .job-row-monogram { color: var(--fg-default); }

.job-row-age { color: var(--fg-subtle); }

/* Featured: a tinted row and a marked edge. It cannot be a glowing box any
   more without being the thing that makes the list stop being a list, and the
   employer is buying position and a flag, both of which survive. */
.job-row-featured {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.13), rgba(124, 92, 255, 0.02) 60%, transparent);
  box-shadow: inset 2px 0 0 var(--violet);
}
.job-row-featured:hover {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.2), rgba(124, 92, 255, 0.05) 60%, transparent);
}
.job-row-flag {
  background: rgba(124, 92, 255, 0.2);
  color: #c3b4ff;
}

/* Still used by the submission preview at `/preview/`, which is a single
   posting shown on its own and therefore genuinely is a card. */
.card.card-featured {
  background-color: rgba(124, 92, 255, 0.07) !important;
  border-color: rgba(124, 92, 255, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.12), 0 18px 50px rgba(124, 92, 255, 0.12) !important;
}

.card-header {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--border-muted) !important;
  color: var(--fg-default) !important;
  border-radius: 16px 16px 0 0 !important;
}

.card.header-card {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-muted) !important;
  border-radius: 0 !important;
  margin-bottom: 0.5rem !important;
}

/* === BUTTONS === */
.btn {
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gradient) !important;
  border: none !important;
  color: #0b0a12 !important;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-outline-primary {
  color: var(--fg-default) !important;
  border: 1px solid var(--border-default) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}
.btn-outline-primary:hover { border-color: var(--violet) !important; color: #fff !important; background: rgba(124, 92, 255, 0.14) !important; }

.btn-success {
  background-color: rgba(53, 214, 160, 0.14) !important;
  border: 1px solid rgba(53, 214, 160, 0.45) !important;
  color: var(--accent-green) !important;
}
.btn-success:hover { background-color: rgba(53, 214, 160, 0.24) !important; }

.btn-danger {
  background-color: rgba(251, 113, 133, 0.14) !important;
  border: 1px solid rgba(251, 113, 133, 0.45) !important;
  color: var(--accent-red) !important;
}
.btn-danger:hover { background-color: rgba(251, 113, 133, 0.24) !important; }

.btn-warning {
  background-color: rgba(251, 191, 76, 0.14) !important;
  border: 1px solid rgba(251, 191, 76, 0.45) !important;
  color: var(--accent-amber) !important;
}
.btn-info {
  background-color: rgba(56, 214, 238, 0.12) !important;
  border: 1px solid rgba(56, 214, 238, 0.4) !important;
  color: var(--accent-teal) !important;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-muted) !important;
  color: var(--fg-muted) !important;
}
.btn-secondary:hover { color: var(--fg-default) !important; }

.btn-outline-secondary { color: var(--fg-muted) !important; border-color: var(--border-muted) !important; }
.btn-outline-secondary:hover { color: var(--fg-default) !important; border-color: var(--border-default) !important; background: rgba(255,255,255,0.05) !important; }
.btn-outline-danger { color: var(--accent-red) !important; border-color: rgba(251,113,133,0.45) !important; }

.btn-sm { font-size: 0.76rem; padding: 0.3rem 0.7rem; }

.btn-apply {
  background: var(--gradient) !important;
  border: none !important;
  color: #0b0a12 !important;
  font-weight: 700;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28);
}
.btn-apply:hover { filter: brightness(1.1); }

/* === TAGS ===
   Pills, translucent, no hard borders — the same material as the cards. */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
  white-space: nowrap;
}
.tag-fpga      { background: rgba(53, 214, 160, 0.14);  color: var(--accent-green); }
.tag-asic      { background: rgba(251, 113, 133, 0.14); color: var(--accent-red); }
.tag-vhdl      { background: rgba(56, 214, 238, 0.14);  color: var(--accent-teal); }
.tag-verilog   { background: rgba(251, 191, 76, 0.14);  color: var(--accent-amber); }
.tag-skill     { background: rgba(255, 255, 255, 0.06); color: var(--fg-muted); }
.tag-location  { background: rgba(255, 255, 255, 0.06); color: var(--fg-default); }
.tag-remote    { background: rgba(124, 92, 255, 0.18);  color: #c3b4ff; }
.tag-clearance { background: rgba(251, 191, 76, 0.14);  color: var(--accent-amber); }
.tag-salary    { background: rgba(53, 214, 160, 0.16);  color: var(--accent-green); }
.tag-link      { background: rgba(124, 92, 255, 0.14);  color: #c3b4ff; }
.tag-link:hover { background: rgba(124, 92, 255, 0.26); color: #fff; text-decoration: none; }

.company-card-name i { color: var(--fg-subtle); }
.apply-aside { color: var(--fg-subtle); font-size: 0.78rem; }
.logo-fallback { opacity: 0.4; }

/* === FORMS === */
.form-control, .form-select, textarea {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-muted) !important;
  color: var(--fg-default) !important;
  border-radius: 12px;
}
.form-control:focus, .form-select:focus, textarea:focus {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18) !important;
  color: var(--fg-default) !important;
}
.form-control::placeholder { color: var(--fg-subtle) !important; }
.form-label { color: var(--fg-default); font-size: 0.88rem; font-weight: 550; }

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-muted) !important;
  border-radius: 12px !important;
  color: var(--fg-default) !important;
}
.select2-dropdown { background-color: #14131d !important; border: 1px solid var(--border-muted) !important; border-radius: 12px !important; }
.select2-container--default .select2-results__option { color: var(--fg-default) !important; }
.select2-container--default .select2-results__option--highlighted { background-color: var(--violet) !important; color: #fff !important; }
.select2-search__field { background-color: rgba(255,255,255,0.04) !important; color: var(--fg-default) !important; border: 1px solid var(--border-muted) !important; }

/* === TABLES === */
.table { color: var(--fg-default) !important; }
.table > :not(caption) > * > * {
  background-color: transparent !important;
  color: var(--fg-default) !important;
  border-color: var(--border-muted) !important;
}
.table thead th { color: var(--fg-subtle) !important; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.table thead { border-bottom: 1px solid var(--border-default) !important; }

/* === ALERTS === */
.alert { border-radius: 14px; border-width: 1px; }
.alert-info    { background-color: rgba(124, 92, 255, 0.1) !important;  border-color: rgba(124, 92, 255, 0.3) !important;  color: var(--fg-default) !important; }
.alert-success { background-color: rgba(53, 214, 160, 0.1) !important;  border-color: rgba(53, 214, 160, 0.3) !important;  color: var(--fg-default) !important; }
.alert-danger  { background-color: rgba(251, 113, 133, 0.1) !important; border-color: rgba(251, 113, 133, 0.3) !important; color: var(--fg-default) !important; }
.alert-warning { background-color: rgba(251, 191, 76, 0.1) !important;  border-color: rgba(251, 191, 76, 0.3) !important;  color: var(--fg-default) !important; }

/* === PAGINATION === */
.page-link {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--border-muted) !important;
  color: var(--fg-default) !important;
  border-radius: 10px !important;
  margin: 0 2px;
  font-size: 0.85rem;
}
.page-item.active .page-link { background: var(--gradient) !important; border-color: transparent !important; color: #0b0a12 !important; }
.page-link:hover { background-color: rgba(255, 255, 255, 0.09) !important; color: var(--fg-default) !important; }

/* === FOOTER === */
footer {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--border-muted) !important;
  color: var(--fg-muted) !important;
}
footer .text-muted { color: var(--fg-subtle) !important; }
footer a { color: var(--fg-muted) !important; }
footer a:hover { color: var(--fg-default) !important; }

/* === HERO ===
   The one place the type gets big. Everything under it is a listing, and a
   listing wants restraint — so the skin spends its scale here and nowhere
   else. */
.hero {
  padding: 4.5rem 0 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-muted);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 650;
  color: #c3b4ff;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin-bottom: 1.25rem;
  max-width: 17ch;
  background: linear-gradient(150deg, #ffffff 20%, #b9aaff 70%, #7fd8ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--fg-muted);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--fg-default); font-weight: 650; }

.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 660px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 0.4rem;
}
.hero-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16); }
.hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--fg-default);
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
}
.hero-search-input::placeholder { color: var(--fg-subtle); }
.hero-search-input:focus { outline: none; }
.hero-search-button {
  flex: 0 0 auto;
  background: var(--gradient);
  border: none;
  color: #0b0a12;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.92rem;
}
.hero-search-button:hover { filter: brightness(1.1); }

.hero-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 1.25rem; }
.hero-facets-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: 0.35rem;
}
.hero-facet {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  border: 1px solid var(--border-muted);
  background: rgba(255, 255, 255, 0.045);
  color: var(--fg-default);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  text-decoration: none;
}
.hero-facet:hover { border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.12); color: #fff; }
.hero-facet-count { color: var(--fg-subtle); font-size: 0.74rem; }

.hero-actions { font-size: 0.9rem; color: var(--fg-subtle); margin: 0; }
.hero-action { color: var(--fg-muted); }
.hero-action:hover { color: var(--fg-default); }
.hero-action-sep { margin: 0 0.5rem; }

/* === JOB DETAIL === */
.job-detail-header { border-bottom: 1px solid var(--border-muted); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
.job-desc { font-size: 1.02rem; line-height: 1.7; max-width: 74ch; }
.job-desc p, .job-desc li, .job-desc span { color: var(--fg-muted); }
.job-desc h2, .job-desc h3, .job-desc strong { color: var(--fg-default); }

/* === PRICING === */
.pricing-card-title { color: var(--fg-default) !important; letter-spacing: -0.03em; }
.card.border-primary { border-color: rgba(124, 92, 255, 0.5) !important; }
/* See press.css: the heading inside inherits the body colour and would be
   near-white on a bright gradient. */
.card-header.bg-primary { background: var(--gradient) !important; color: #0b0a12 !important; }
.card-header.bg-primary h1, .card-header.bg-primary h2,
.card-header.bg-primary h3, .card-header.bg-primary h4,
.card-header.bg-primary h5, .card-header.bg-primary h6 { color: #0b0a12 !important; }
.card-header.text-white { color: #0b0a12 !important; }

.badge.bg-secondary { background-color: rgba(255,255,255,0.07) !important; color: var(--fg-muted) !important; }

/* === BLOG === */
.blog-post-meta { color: var(--fg-muted) !important; }
.blog-aside {
  background-color: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid var(--border-muted) !important;
  border-radius: 16px;
  color: var(--fg-default) !important;
}
.blog-aside h4 { color: var(--fg-default) !important; }
.blog-aside a  { color: var(--accent-blue) !important; }
.blog-footer { background-color: rgba(255,255,255,0.02) !important; border-top: 1px solid var(--border-muted) !important; color: var(--fg-muted) !important; }
.blog-header { border-bottom: 1px solid var(--border-muted) !important; }

pre code.hljs { border-radius: 12px; border: 1px solid var(--border-muted); }

/* === BREADCRUMB / MISC === */
.breadcrumb-item { color: var(--fg-muted); }
.breadcrumb-item.active { color: var(--fg-default); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--fg-subtle); }

.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }

/* See the note in terminal.css — Bootstrap 5.1 has no min-width utility. */
.min-w-0 { min-width: 0; }
.min-w-0 h5 { overflow-wrap: anywhere; }

/* Motion is decoration here, and decoration is optional. */
@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
