@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Share+Tech+Mono&display=swap');

/* ── CSS VARIABLES — used by header.html ──────────────────────────────────── */
:root {
  --green:      #20d0a0;
  --green-dim:  #0e8060;
  --muted:      #7ab87a;
  --border:     #1e4a1e;
  --text:       #c8f0d0;
  --purple-dk:  #7a20bb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #050a0f; color: #c8f0d0; font-family: "Share Tech Mono", monospace; overflow: hidden; height: 100vh; }

#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0a0f0a 0%, #0d1f0d 50%, #050a14 100%);
  border-bottom: 2px solid #1a4a1a;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,255,50,0.15);
}
#header h1 {
  font-family: "Creepster", cursive; font-size: 2rem;
  background: linear-gradient(90deg, #00ff41, #39ff14, #00ff88, #bf00ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
#header .subtitle { font-size: 0.65rem; color: #4a8a4a; letter-spacing: 3px; text-transform: uppercase; }

#legend { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; color: #7ab87a; cursor: pointer;
  padding: 4px 10px; border-radius: 20px; border: 1px solid transparent; transition: all 0.3s;
}
.legend-item:hover { border-color: #39ff14; color: #fff; }
.legend-item.active { border-color: #39ff14; background: rgba(57,255,20,0.08); }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

#map { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }

.leaflet-popup-content-wrapper {
  background: rgba(8,18,10,0.97) !important; border: 1px solid #1e6e1e !important;
  border-radius: 12px !important; box-shadow: 0 0 30px rgba(0,255,60,0.25) !important;
  color: #c8f0d0 !important; font-family: "Share Tech Mono", monospace !important;
  min-width: 260px; max-width: 340px;
}
.leaflet-popup-tip { background: #1e6e1e !important; }
.leaflet-tile { filter: brightness(1.7); }
.maplibregl-map, .maplibregl-canvas, .mapboxgl-map, .mapboxgl-canvas { filter: brightness(1.3); }
.leaflet-popup-close-button { color: #39ff14 !important; font-size: 20px !important; }

.popup-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.popup-icon { font-size: 2rem; }
.popup-title { font-size: 1rem; color: #39ff14; font-weight: bold; }
.popup-location { font-size: 0.7rem; color: #7ab87a; }
.popup-type-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 0.65rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.popup-desc { font-size: 0.72rem; color: #a0c8a0; margin-bottom: 10px; line-height: 1.5; }
.popup-shows-label {
  font-size: 0.65rem; color: #39ff14; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 6px; border-top: 1px solid #1e4e1e; padding-top: 8px;
}

/* ── Show tags ── */
.show-tag {
  display: inline-block; margin: 2px 3px;
  background: rgba(57,255,20,0.08); border: 1px solid #2a6a2a;
  color: #a0e0a0; font-size: 0.62rem; padding: 2px 8px; border-radius: 10px;
  font-family: "Share Tech Mono", monospace;
}
.show-tag.ufo     { border-color: #4a4aaa; color: #a0a0ff; background: rgba(80,80,200,0.08); }
.show-tag.ghost   { border-color: #8a5aaa; color: #d0a0ff; background: rgba(120,80,180,0.08); }
.show-tag.bigfoot { border-color: #6a4a1a; color: #f0c060; background: rgba(120,80,20,0.08); }
.show-tag.cryptid { border-color: #1a7a5a; color: #60f0c0; background: rgba(20,130,90,0.08); }

a.clickable-show {
  text-decoration: none; cursor: pointer;
  transition: all 0.2s; display: inline-block;
}
a.clickable-show:hover {
  filter: brightness(1.6); transform: scale(1.05);
  box-shadow: 0 0 8px rgba(57,255,20,0.4);
}
a.clickable-show::after { content: " ↗"; font-size: 0.55rem; opacity: 0.7; }

/* ── Watch panel ── */
.pf-watch-panel {
  position: relative; margin-top: 0.65rem;
  padding: 0.65rem 0.75rem; background: rgba(0,0,0,0.35);
  border: 1px solid #1e4e1e; border-radius: 8px;
}
.pf-watch-panel-close {
  position: absolute; top: 0.4rem; right: 0.45rem;
  background: none; border: none; color: #4a8a4a; font-size: 0.85rem;
  line-height: 1; cursor: pointer; padding: 2px 5px; border-radius: 4px;
  font-family: "Share Tech Mono", monospace; transition: color 0.15s, background 0.15s;
}
.pf-watch-panel-close:hover { color: #39ff14; background: rgba(57,255,20,0.1); }
.pf-watch-panel-title {
  font-size: 0.78rem; color: #39ff14; font-family: "Share Tech Mono", monospace;
  font-weight: 600; margin-bottom: 0.1rem; padding-right: 1.2rem;
}
.pf-watch-panel-meta {
  font-size: 0.78rem; color: #7ab87a; font-family: "Share Tech Mono", monospace; margin-bottom: 0.55rem;
}
.pf-watch-now-label {
  font-size: 0.6rem; color: #4a8a4a; letter-spacing: 2px; text-transform: uppercase;
  font-family: "Share Tech Mono", monospace; margin-bottom: 0.4rem;
}
.pf-watch-icons { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pf-watch-icons a { display: flex; align-items: center; }
.pf-watch-icons img {
  width: 36px; height: 36px; object-fit: contain; border-radius: 4px;
  filter: brightness(0.88); transition: filter 0.15s, transform 0.15s;
}
.pf-watch-icons img:hover { filter: brightness(1.35); transform: scale(1.2); }

/* ── Watchlist button ── */
.pf-btn-watchlist {
  width: 100%; background: #7a20bb; color: #fff; border: 1px solid #9933cc;
  padding: 0.42rem 0.5rem; border-radius: 6px;
  font-family: "Share Tech Mono", monospace; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; min-height: 34px; text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s;
}
.pf-btn-watchlist:hover { background: #9933cc; border-color: #cc60ff; }
.pf-btn-watchlist.saved { background: rgba(57,255,20,0.07); color: #39ff14; border-color: #39ff14; cursor: default; }
.pf-btn-watchlist:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Inline feedback ── */
.pf-wl-msg {
  font-size: 0.65rem; font-family: "Share Tech Mono", monospace;
  margin-top: 0.35rem; padding: 0; max-height: 0;
  overflow: hidden; opacity: 0; border-radius: 5px;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}
.pf-wl-msg.show   { max-height: 3rem; opacity: 1; padding: 0.3rem 0.5rem; }
.pf-wl-msg--ok    { background: rgba(57,255,20,0.08);   border: 1px solid #39ff14; color: #39ff14; }
.pf-wl-msg--error { background: rgba(248,113,113,0.09); border: 1px solid #f87171; color: #f87171; }

/* ── Badge + share row ── */
.popup-badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.popup-badge-row .popup-type-badge { margin-bottom: 0; }
.pf-share-btn {
  background: rgba(32,208,160,0.08); color: #20d0a0;
  border: 1px solid rgba(32,208,160,0.35); padding: 2px 10px; border-radius: 20px;
  font-family: "Share Tech Mono", monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s, color 0.18s; white-space: nowrap;
}
.pf-share-btn:hover { background: rgba(32,208,160,0.18); border-color: #20d0a0; }
.pf-share-btn.copied { color: #39ff14; border-color: #39ff14; background: rgba(57,255,20,0.07); }

/* ── Counter ── */
#counter {
  position: fixed; bottom: 50px; right: 20px; z-index: 900;
  background: rgba(8,18,10,0.55); border: 1px solid #1e6e1e;
  border-radius: 12px; padding: 10px 18px; font-size: 0.7rem; color: #7ab87a;
  backdrop-filter: blur(6px);
}
#counter span { color: #39ff14; font-size: 1.1rem; }

/* ── Markers ── */
.custom-marker {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; font-size: 17px;
  border: 2px solid rgba(255,255,255,0.3); cursor: pointer; animation: pulse 3s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px 2px var(--glow); }
  50%      { box-shadow: 0 0 18px 6px var(--glow); }
}

/* ── Scanlines ── */
#scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.07) 2px,rgba(0,0,0,0.07) 4px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  #header { flex-direction: column; align-items: flex-start; gap: 6px; }
  #header h1 { font-size: 1.4rem; }
  #legend { gap: 8px; }
}

/* ── Show filter bar ── */
#show-filter {
  position: fixed; left: 0; right: 0; z-index: 999;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 7px 20px;
  background: linear-gradient(135deg, #0a0f0a 0%, #0d1f0d 50%, #050a14 100%);
  border-bottom: 1px solid #1a4a1a;
  box-shadow: 0 2px 12px rgba(0,255,50,0.08);
}
#show-filter label { color: #4a8a4a; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; }
#show-filter select {
  background: #050a0f; color: #a0e0a0; border: 1px solid #1e6e1e;
  padding: 4px 10px; font-size: 0.7rem;
  font-family: "Share Tech Mono", monospace;
  border-radius: 6px; cursor: pointer; outline: none;
}
#show-filter select:hover,
#show-filter select:focus { border-color: #39ff14; color: #fff; }
#filter-reset {
  background: transparent; border: 1px solid #1e6e1e; color: #4a8a4a;
  padding: 4px 12px; font-size: 0.65rem;
  font-family: "Share Tech Mono", monospace;
  border-radius: 6px; cursor: pointer;
  letter-spacing: 2px; text-transform: uppercase; transition: all 0.2s;
}
#filter-reset:hover { border-color: #39ff14; color: #39ff14; }


/* ══════════════════════════════════════════════════════════════════════════
   SCAREDY-CAT MODE
   ══════════════════════════════════════════════════════════════════════════ */
body.scaredy-cat-mode {
  background: #f0f0eb !important;
  color: #222 !important;
}

/* Map popups */
body.scaredy-cat-mode .leaflet-popup-content-wrapper {
  background: #fff !important; border-color: #ccc !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14) !important; color: #222 !important;
}
body.scaredy-cat-mode .leaflet-popup-tip { background: #ccc !important; }
body.scaredy-cat-mode .leaflet-popup-close-button { color: #555 !important; }
body.scaredy-cat-mode .popup-title   { color: #1a5c1a !important; }
body.scaredy-cat-mode .popup-location { color: #666 !important; }
body.scaredy-cat-mode .popup-desc    { color: #444 !important; }
body.scaredy-cat-mode .popup-shows-label { color: #2a7a2a !important; border-top-color: #ddd !important; }
body.scaredy-cat-mode .show-tag {
  background: rgba(0,0,0,0.04) !important; border-color: #ccc !important; color: #444 !important;
}
body.scaredy-cat-mode .show-tag.ufo     { border-color: #9090cc !important; color: #4a4a99 !important; background: rgba(100,100,200,0.07) !important; }
body.scaredy-cat-mode .show-tag.ghost   { border-color: #b090cc !important; color: #7a4a99 !important; background: rgba(160,100,200,0.07) !important; }
body.scaredy-cat-mode .show-tag.bigfoot { border-color: #b09050 !important; color: #7a5a20 !important; background: rgba(160,120,40,0.07) !important; }
body.scaredy-cat-mode .show-tag.cryptid { border-color: #50a080 !important; color: #1a6a50 !important; background: rgba(40,140,100,0.07) !important; }

/* Watch panel */
body.scaredy-cat-mode .pf-watch-panel { background: #f7f7f2 !important; border-color: #ddd !important; }
body.scaredy-cat-mode .pf-watch-panel-title { color: #1a5c1a !important; }
body.scaredy-cat-mode .pf-watch-panel-meta  { color: #666 !important; }
body.scaredy-cat-mode .pf-watch-panel-close { color: #888 !important; }
body.scaredy-cat-mode .pf-watch-now-label   { color: #888 !important; }
body.scaredy-cat-mode .pf-share-btn {
  color: #1a7a5a !important; border-color: rgba(26,122,90,0.4) !important;
  background: rgba(26,122,90,0.06) !important;
}

/* Show filter bar */
body.scaredy-cat-mode #show-filter {
  background: rgba(240,240,235,0.97) !important;
  border-bottom-color: #ccc !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}
body.scaredy-cat-mode #show-filter label { color: #777 !important; }
body.scaredy-cat-mode #show-filter select { background: #fff !important; color: #333 !important; border-color: #ccc !important; }
body.scaredy-cat-mode #show-filter select:hover,
body.scaredy-cat-mode #show-filter select:focus { border-color: #888 !important; color: #111 !important; }
body.scaredy-cat-mode #filter-reset { border-color: #ccc !important; color: #777 !important; }
body.scaredy-cat-mode #filter-reset:hover { border-color: #555 !important; color: #333 !important; }

/* Markers & legend */
body.scaredy-cat-mode .custom-marker { animation: none !important; box-shadow: none !important; }
body.scaredy-cat-mode .legend-item.active { background: rgba(0,0,0,0.06) !important; border-color: #555 !important; }
body.scaredy-cat-mode .legend-item:hover  { border-color: #333 !important; color: #111 !important; }

/* Tile brightness */
body.scaredy-cat-mode .leaflet-tile-pane { filter: none !important; }
body.scaredy-cat-mode .leaflet-tile      { filter: none !important; }
body.scaredy-cat-mode .maplibregl-map,
body.scaredy-cat-mode .maplibregl-canvas,
body.scaredy-cat-mode .mapboxgl-map,
body.scaredy-cat-mode .mapboxgl-canvas   { filter: none !important; }

/* Counter */
body.scaredy-cat-mode #counter {
  background: rgba(255,255,255,0.9) !important; border-color: #ccc !important; color: #555 !important;
}
body.scaredy-cat-mode #counter span { color: #2a7a2a !important; }

/* Scanlines off */
body.scaredy-cat-mode #scanlines { display: none !important; }

/* ── Header nav (set by header.html but also need site-level coverage) ── */
body.scaredy-cat-mode #site-header nav {
  background: rgba(240,240,235,0.97) !important;
  border-bottom-color: #ccc !important;
}
body.scaredy-cat-mode .logo { color: #333 !important; text-shadow: none !important; }
body.scaredy-cat-mode .logo-sub { color: #888 !important; }
body.scaredy-cat-mode .logo-img { box-shadow: none !important; border-color: #ccc !important; }
body.scaredy-cat-mode .nav-page-links a { color: #555 !important; }
body.scaredy-cat-mode .profile-trigger { border-color: #ccc !important; color: #333 !important; }
body.scaredy-cat-mode .profile-menu {
  background: #fff !important; border-color: #ddd !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12) !important;
}
body.scaredy-cat-mode .profile-menu a,
body.scaredy-cat-mode .profile-pref-row { color: #555 !important; border-color: #e8e8e8 !important; }
body.scaredy-cat-mode .profile-menu a:hover { background: rgba(0,0,0,0.04) !important; color: #111 !important; }
body.scaredy-cat-mode #profileRank { color: #5a9a5a !important; border-color: #e8e8e8 !important; }
body.scaredy-cat-mode .toggle-slider { background: #ccc !important; }
body.scaredy-cat-mode input:checked + .toggle-slider { background: #5a9a5a !important; }
body.scaredy-cat-mode input:checked + .toggle-slider::before { background: #fff !important; }
body.scaredy-cat-mode .mobile-menu {
  background: rgba(240,240,235,0.98) !important; border-bottom-color: #ccc !important;
}
body.scaredy-cat-mode .mobile-menu a { color: #555 !important; border-bottom-color: #e0e0e0 !important; }
body.scaredy-cat-mode .mobile-pref-row { color: #555 !important; border-bottom-color: #e0e0e0 !important; }
body.scaredy-cat-mode .mobile-top-icons { border-bottom-color: #ddd !important; }
body.scaredy-cat-mode .mobile-icon-circle { border-color: #ccc !important; color: #666 !important; background: rgba(0,0,0,0.04) !important; }
body.scaredy-cat-mode .mobile-icon-item { color: #666 !important; }
body.scaredy-cat-mode .mobile-nav-section-title { color: #999 !important; }
body.scaredy-cat-mode .mobile-user-greeting { color: #5a9a5a !important; }
body.scaredy-cat-mode .hamburger span { background: #444 !important; }