:root {
  --bg: #f4f6f8;
  --card: rgba(255, 255, 255, 0.5);
  --text: #1e2430;
  --muted: #4b5361;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --border: #e2e6ea;
  /* wooden trail-sign accents (brand mark, nav) */
  --wood-light: #8a5a34;
  --wood-mid: #6b4423;
  --wood-dark: #4a3018;
  --wood-text: #f5ead1;
}

/* Light frosted-glass treatment for every card-like surface (uses
   var(--card), which is translucent) so the wilderness artwork stays
   clearly visible behind panels instead of being blocked by opaque white.
   Kept minimal — just enough blur to keep text readable, not a wash. */
.today-card, .stat-tile, .job-card, .settings-card, .materials-box,
.description-box, .hunt-status, .applications-table {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: 17px;
  background-color: var(--bg);
  background-image: url('/static/images/hunter-hero.jpg');
  background-size: cover;
  /* Positioned so the artwork's own speech bubble clears the sticky
     topbar entirely (background-attachment: fixed means the same slice
     of the image is always behind the page top on every page). */
  background-position: 15% 8%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

.topbar {
  background: rgba(250, 246, 237, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 68, 35, 0.18);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 10px;
}

/* Wooden trail-sign brand mark — the JobVanata "sign", not a generic
   SaaS logo tile. Wood-grain gradient + carved/beveled edge + routed
   text, kept flat and restrained so it reads as a real product mark. */
.brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wood-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 7px 9px 8px 6px;
  background:
    repeating-linear-gradient(178deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 7px),
    linear-gradient(160deg, var(--wood-light) 0%, var(--wood-mid) 55%, var(--wood-dark) 100%);
  border: 2px solid var(--wood-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 4px rgba(0,0,0,0.35), 0 2px 5px rgba(0,0,0,0.2);
  text-shadow: 0 1px 1px rgba(0,0,0,0.55);
}

.topbar nav { display: flex; flex-wrap: wrap; }
.topbar nav a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--wood-mid); }
.topbar nav a.active { color: var(--text); border-bottom-color: var(--success); }

.music-toggle {
  margin-left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.music-toggle:hover { border-color: var(--primary); }
.music-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.content { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }

/* Page titles/subtext sit directly on the full-page artwork (no card
   behind them on most pages) — a small translucent chip keeps them
   legible over any part of the image without a heavy overlay block. */
h1 {
  font-size: 34px;
  margin: 0 0 12px;
  display: inline-block;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 10px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
h2 { font-size: 22px; }
.page-sub, .empty-note {
  display: inline-block;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 8px;
}

.today-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.today-card h1 { margin: 0 0 16px; }

.progress-label { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 28px;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--success));
  height: 100%;
  transition: width 0.3s ease;
}

.find-jobs-form { margin-bottom: 24px; }

.big-button {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.big-button.primary { background: var(--primary); color: white; }
.big-button.primary:hover { background: var(--primary-dark); }
.big-button.secondary { background: white; color: var(--primary); border: 2px solid var(--primary); width: auto; padding: 14px 24px; font-size: 16px; }
.big-button.success { background: var(--success); color: white; }
.big-button.muted { background: #e5e7eb; color: var(--text); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-tile {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-number { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.03em;}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.job-card-list { display: flex; flex-direction: column; gap: 14px; }

.job-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.job-card-main { flex: 1; }
.job-title { font-size: 19px; font-weight: 700; }
.job-company { color: var(--muted); margin-bottom: 8px; }
.job-company-large { color: var(--muted); font-weight: 500; margin-top: 0; }

.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.badge {
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge.score-Excellent-match { background: #dcfce7; color: #166534; }
.badge.score-Strong-match { background: #dbeafe; color: #1e40af; }
.badge.score-Possible-match { background: #fef9c3; color: #854d0e; }
.badge.score-Poor-match { background: #fee2e2; color: #991b1b; }
.badge.status-Applied { background: #dcfce7; color: #166534; }
.badge.status-Do-Not-Apply { background: #f3f4f6; color: #6b7280; }

.why-fits ul, .why-fits-box ul { margin: 4px 0 0; padding-left: 20px; font-size: 15px; color: var(--muted); }

.why-fits-box {
  background: rgba(239, 246, 255, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.why-fits-box h3 { margin-top: 0; }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.action-row form { flex: 1; min-width: 200px; }

.materials-box, .description-box {
  background: var(--card);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.answers-list dt { font-weight: 700; margin-top: 12px; }
.answers-list dd { margin: 4px 0 0; color: var(--muted); }

.status-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
}
.tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.settings-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.form-grid { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form-grid label { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; gap: 4px; }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=number] {
  padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px;
}
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }

.source-toggle-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.source-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.source-toggle input { accent-color: var(--primary); }
.source-toggle:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

.inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip { background: #eef2ff; color: #3730a3; padding: 6px 12px; border-radius: 8px; font-size: 14px; }

.back-link { color: var(--primary); text-decoration: none; font-weight: 600; }

.empty-note { color: var(--muted); font-size: 16px; }
.note { color: var(--muted); font-size: 14px; }

.small-button {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: white; cursor: pointer; font-weight: 600;
}
.status-override { margin-top: 24px; }
.status-override form { display: flex; align-items: center; gap: 10px; }

.small-button.primary-outline { border-color: var(--primary); color: var(--primary); }
.small-button:hover { background: var(--bg); }

.footer { max-width: 900px; margin: 0 auto; padding: 20px 24px 40px; text-align: center; }
.footer-panel {
  display: inline-block;
  max-width: 640px;
  background: rgba(20, 22, 20, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  padding: 14px 20px;
}
.footer-link {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  margin-top: 8px;
  padding-top: 8px;
}
.footer-link:hover { color: #fff; }

.hero {
  text-align: center;
  padding: 56px 16px 40px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  margin-bottom: 8px;
}
.hero-badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: 34px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(255,255,255,0.85), 0 0 24px rgba(255,255,255,0.7), 0 0 3px rgba(255,255,255,0.9);
}
.hero-sub {
  color: #3a4150; font-size: 17px; margin: 0 0 28px; font-weight: 500;
  text-shadow: 0 1px 3px rgba(255,255,255,0.95), 0 0 16px rgba(255,255,255,0.85), 0 0 2px rgba(255,255,255,1);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .big-button { width: auto; padding: 16px 30px; }
.hero-cta { box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px; padding: 26px 24px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.4);
}
.feature-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.feature-card h2 {
  font-size: 18px; margin: 0 0 8px; color: var(--text);
  text-shadow: 0 1px 2px rgba(255,255,255,0.95), 0 0 8px rgba(255,255,255,0.85), 0 0 1px rgba(255,255,255,1);
}
.feature-card p {
  color: #3a4150; margin: 0; font-size: 15px; font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,0.95), 0 0 8px rgba(255,255,255,0.85), 0 0 1px rgba(255,255,255,1);
}

/* --- Hunter search animation (Find Jobs loading/status area) --- */
.hunt-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  max-width: 360px;
  overflow: hidden;
}
.hunter-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}
.hunter-figure {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hunter-figure.found {
  border-color: var(--success);
  transform: scale(1.08);
}
.hunter-spark {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 13px;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.5);
}
.hunter-figure.found + .hunter-spark,
.hunter-figure.found ~ .hunter-spark { opacity: 1; transform: scale(1); }
.hunt-text { font-size: 14px; font-weight: 600; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hunter-figure:not(.found) { animation: hunter-bob 0.7s ease-in-out infinite; }
}
@keyframes hunter-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-3deg); }
}

.access-content {
  max-width: 400px; margin: 80px auto; text-align: center;
}
.access-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.access-form input[type=password] {
  padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px;
}
.error-text { color: var(--danger); font-weight: 600; }

.page-sub { color: var(--muted); margin-top: -4px; }

.job-card-actions { display: flex; flex-direction: column; gap: 8px; }

.download-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }

.wizard-form .experience-row {
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px;
}
.wizard-form .experience-row:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.form-grid-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.form-grid textarea {
  padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
  font-family: inherit; width: 100%;
}

.ats-card .progress-label { font-size: 28px; }
.ats-check-list { list-style: none; padding: 0; margin-top: 12px; }
.ats-check-list li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.ats-check-list li:first-child { border-top: none; }
.ats-pass strong { color: var(--success); }
.ats-fail strong { color: #b45309; }

.applications-table-wrap { overflow-x: auto; }
.applications-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.applications-table th, .applications-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.applications-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }

/* An h1 already sitting inside an opaque-ish card doesn't need its own
   chip background on top — that would double up. */
.job-summary-card h1, .today-card h1, .settings-card h1 {
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0; display: block; text-shadow: none;
}

/* --- Job result page (job_detail.html) --- */
.job-summary-card {
  background: var(--card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.job-result-title { font-size: 28px; margin: 0 0 4px; }

.match-gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.gaps-box {
  background: rgba(255, 251, 235, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 230, 138, 0.7);
  border-radius: 12px;
  padding: 16px 20px;
}
.gaps-box h3 { margin-top: 0; }
.gaps-box ul { margin: 4px 0 0; padding-left: 20px; font-size: 15px; color: var(--muted); }

.external-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.4);
}

/* Collapsible full job description (native <details>/<summary>) */
.description-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}
.description-box summary::-webkit-details-marker { display: none; }
.description-box summary::before { content: "\25B8  "; color: var(--primary); }
.description-box[open] summary::before { content: "\25BE  "; }
.description-box p { margin-top: 14px; white-space: pre-line; line-height: 1.6; }

/* --- Disclaimers --- */
.disclaimer-short {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  max-width: 640px;
}
.disclaimer-long {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.5;
}

/* --- Target-role chips with a remove button --- */
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-remove-form { display: inline; margin: 0; }
.chip-remove {
  background: none; border: none; cursor: pointer;
  color: #3730a3; font-size: 16px; line-height: 1; padding: 0;
  font-weight: 700;
}
.chip-remove:hover { color: var(--danger); }

@media (max-width: 640px) {
  .match-gap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .job-card { flex-direction: column; align-items: stretch; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid-inline { grid-template-columns: 1fr 1fr; }
  .hero-tagline { font-size: 26px; }
  .hero { padding: 40px 16px 32px; }
  body { background-position: 20% 5%; }
  .topbar { padding: 12px 16px; justify-content: center; }
  .topbar nav a { margin: 0 10px; }
  .footer-panel { display: block; padding: 12px 16px; }
  .eagle-hotspot { left: 80%; top: 13%; width: 90px; height: 72px; }
  .eagle-pulse { left: 80%; top: 13%; }
}

/* --- Hidden eagle Easter egg (no visible UI — purely discoverable) --- */
.eagle-hotspot {
  position: fixed;
  left: 83%;
  top: 16%;
  width: 140px;
  height: 110px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.eagle-hotspot:focus { outline: none; }
.eagle-hotspot:focus-visible { outline: 2px solid rgba(255,255,255,0.6); border-radius: 50%; }

.eagle-pulse {
  position: fixed;
  left: 83%;
  top: 16%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.eagle-pulse.flap {
  animation: eagle-flap 0.5s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .eagle-pulse.flap { animation: none; }
}
@keyframes eagle-flap {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.4); }
  30%  { opacity: 0.9; transform: translate(-50%, -50%) scale(1.3) rotate(-4deg); }
  60%  { opacity: 0.5; transform: translate(-50%, -55%) scale(1.6) rotate(3deg); }
  100% { opacity: 0;   transform: translate(-50%, -60%) scale(2.2); }
}
