/* ===================================================================
   Landing Page — localtechjobs.com (root domain)
   Terminal / hacker aesthetic — IBM Plex Mono, green accent, minimal
   =================================================================== */

/* ── Landing theme overrides ────────────────────────────────────── */
[data-region="landing"] {
  --accent: #22a34e;
  --accent-bright: #3ddc68;
  --accent-hover: #1b8a40;
  --accent-text: #18803a;
  --bg-chrome: #162216;
  --bg-page: #fafcfa;
}

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--bg-chrome);
  color: var(--accent-bright);
  font-family: var(--font-primary);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  border-radius: 0;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Geo-suggestion banner ──────────────────────────────────────── */
.geo-banner {
  background: var(--bg-chrome);
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.geo-banner__text {
  font-family: var(--font-primary);
  font-size: 13px;
  color: #d0dece;
  margin: 0;
}
.geo-banner__text strong {
  color: var(--accent-bright);
  font-weight: 600;
}
.geo-banner__link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 18px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.geo-banner__link:hover {
  background: var(--accent-hover);
}
.geo-banner__link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.landing-hero {
  text-align: center;
  padding: 48px 20px 24px;
}
.landing-hero__cursor {
  font-family: var(--font-brand, 'Space Mono', monospace);
  font-size: 28px;
  color: var(--accent-bright);
  animation: blink 1s step-end infinite;
  margin-bottom: 12px;
}
.landing-hero h1 {
  font-family: var(--font-brand, 'Space Mono', monospace);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.landing-hero__accent {
  color: var(--accent-bright);
}
.landing-hero__tagline {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.6;
}

/* blink keyframes — reuse if already defined in site.css */
@keyframes blink {
  50% { opacity: 0; }
}

/* ── Map ────────────────────────────────────────────────────────── */
.landing-map {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}

.us-map {
  width: 100%;
  height: auto;
  display: block;
}

/* Active state styling */
.map-state--active path {
  fill: var(--accent);
  stroke: #162216;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 3px rgba(34, 163, 78, 0.4));
  pointer-events: none;
}
.map-state--active:focus-visible path {
  stroke: var(--accent-bright);
  stroke-width: 3;
  outline: 2px solid transparent; /* visible in High Contrast Mode */
}
.map-state--active:focus-visible {
  outline: none;
}

/* Inactive state styling */
.map-state--inactive path {
  fill: #d8ddd6;
  stroke: #c0c8be;
  stroke-width: 0.75;
}

/* ── Regions section ────────────────────────────────────────────── */
.landing-regions {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.landing-regions:focus {
  outline: none;
}
.landing-regions__heading {
  font-family: var(--font-brand, 'Space Mono', monospace);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.landing-regions__summary {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.landing-regions__active-count {
  color: var(--accent-text);
  font-weight: 600;
}
.landing-regions__target-count {
  color: var(--text-secondary);
  font-weight: 600;
}
.landing-regions__inactive-count {
  color: var(--text-muted);
  font-weight: 600;
}

/* ── State groups — multi-column on wide screens ───────────────── */
.landing-regions__states {
  columns: 1;
  column-gap: 32px;
}

.landing-state {
  margin-bottom: 28px;
  break-inside: avoid;
}
.landing-state__heading {
  font-family: var(--font-primary, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-default);
}

/* ── Region links — inline flow ────────────────────────────────── */
.landing-state__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  padding: 0;
}

/* Centered-dot separator between links (skips the first) */
.landing-region + .landing-region::before {
  content: "\00b7";
  color: var(--border-input, #ccd4c8);
  padding: 0 8px;
  font-weight: 700;
  pointer-events: none;
}

/* ── Base link reset ───────────────────────────────────────────── */
.landing-region {
  font-family: var(--font-primary, 'IBM Plex Mono', monospace);
  font-size: 12px;
  line-height: 2.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s;
}
.landing-region:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ── Active — accent colored, clearly clickable ────────────────── */
.landing-region--active {
  color: var(--accent, #22a34e);
  font-weight: 600;
}
.landing-region--active:hover {
  color: var(--accent-bright, #3ddc68);
}

/* ── Target — visible but slightly muted (coming soon) ─────────── */
.landing-region--target {
  color: var(--text-secondary, #3a4a38);
  font-weight: 500;
}
.landing-region--target:hover {
  color: var(--accent-text, #18803a);
}

/* ── Inactive / planned — greyed out, still clickable ──────────── */
.landing-region--inactive {
  color: var(--text-muted, #8a948a);
  font-weight: 400;
}
.landing-region--inactive:hover {
  color: var(--text-tertiary, #6a7a68);
}

/* ── Region dots on the map ──────────────────────────────────────── */
.map-dots a {
  cursor: pointer;
}
.map-dot {
  stroke: #fff;
  stroke-width: 2;
}
.map-dot--active {
  fill: var(--accent, #22a34e);
}
.map-dot--target {
  fill: var(--accent-text, #18803a);
  opacity: 0.8;
}
.map-dot--inactive {
  fill: var(--text-muted, #8a948a);
  opacity: 0.5;
}
.map-dot-pulse {
  fill: var(--accent-bright, #3ddc68);
  opacity: 0;
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { opacity: 0.6; r: 6; }
  100% { opacity: 0; r: 18; }
}
.map-dots a:hover .map-dot,
.map-dots a:focus-visible .map-dot {
  r: 9;
  stroke-width: 3;
  fill: var(--accent-bright, #3ddc68);
  filter: drop-shadow(0 0 4px var(--accent, #22a34e));
}
.map-dots a:focus-visible .map-dot {
  stroke: var(--accent-bright, #3ddc68);
  outline: 2px solid transparent;
}

/* ── Landing main wrapper (from MainLayout) ─────────────────────── */
.landing-main {
  flex: 1;
  padding-bottom: 0;
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .landing-hero__cursor {
    animation: none;
    opacity: 1;
  }
  .landing-region,
  .geo-banner__link,
  .map-state--active path {
    transition: none;
  }
  .map-dot-pulse {
    animation: none;
  }
}

/* ── Mobile (small screens) ─────────────────────────────────────── */
@media (max-width: 480px) {
  .geo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
  }
  .geo-banner__link {
    width: 100%;
    text-align: center;
  }

  .landing-hero {
    padding: 32px 16px 16px;
  }

  .landing-map {
    display: none;
  }

  .landing-region {
    font-size: 11px;
  }
}

/* ── Tablet / medium screens ────────────────────────────────────── */
@media (min-width: 600px) {
  .landing-regions__states {
    columns: 2;
  }
}

/* ── Wide desktop ───────────────────────────────────────────────── */
@media (min-width: 1080px) {
  .landing-hero {
    padding: 64px 20px 32px;
  }
  .landing-hero h1 {
    font-size: 36px;
  }
  .landing-map {
    max-width: 860px;
    padding: 24px 20px 40px;
  }
  .landing-regions {
    max-width: 1120px;
  }
  .landing-regions__states {
    columns: 3;
  }
}
