@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #0f1b2d;
  --panel-border: #2e4a67;
  --text: #e5f3ff;
  --muted: #a7c3da;
  --accent: #ffb44a;
  --accent-soft: #293f56;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(circle at 20% 10%, #284865 0%, transparent 35%),
    radial-gradient(circle at 85% 90%, #18334f 0%, transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
}

.shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100vh;
}

.panel {
  border-right: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(25, 44, 65, 0.94), rgba(20, 34, 51, 0.97));
  padding: 16px;
  overflow-y: auto;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  margin: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  margin-top: 6px;
}

.origin-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #8a5d1f;
  border-radius: 10px;
  background: rgba(112, 72, 16, 0.28);
  color: #ffd996;
  font-size: 0.82rem;
  line-height: 1.45;
}

.section {
  margin-top: 18px;
}

.nav-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.nav-links a,
.caught-toggle {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--panel-border);
  background: #1b314a;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "Space Mono", monospace;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  padding: 4px;
}

.status {
  color: var(--muted);
  margin-bottom: 8px;
}

.force-fetch {
  margin-bottom: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: #1b314a;
  color: var(--text);
  padding: 8px 10px;
  font-family: "Space Mono", monospace;
  cursor: pointer;
}

.force-fetch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.debug-log {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(10, 22, 35, 0.65);
}

.debug-log-entry {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.debug-log-entry strong {
  color: var(--text);
}

.imp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.imp-row {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px;
  background: var(--accent-soft);
  cursor: pointer;
}

.imp-row strong {
  color: var(--accent);
}

.imp-row.caught {
  opacity: 0.72;
  border-style: dashed;
}

.imp-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.imp-meta-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(11, 27, 41, 0.45);
}

.caught-toggle {
  margin-top: 8px;
  cursor: pointer;
  font-size: 0.76rem;
}

.map-wrap {
  padding: 12px;
}

#map {
  width: 100%;
  height: calc(100vh - 24px);
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.leaflet-popup-content {
  font-family: "Space Mono", monospace;
  min-width: 220px;
}

@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, auto) 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  #map {
    height: calc(100vh - 360px);
  }
}