/* ==========================================================================
   GLOBAL EDUCATION TRACKER — JUPITER HEAVY SPACE DATA VISUALIZATION
   ========================================================================== */

/* Background Effects */
#map-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #101626 0%, #050608 85%);
  z-index: -2;
}

#map-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
  background-size: 100% 4px;
  z-index: 1000;
  pointer-events: none;
}

/* D3 Map Vector Path Styling */
.country-path {
  stroke: rgba(15, 23, 42, 0.8);
  stroke-width: 0.6px;
  transition: fill 0.25s ease, stroke 0.2s ease, stroke-width 0.2s ease;
  cursor: pointer;
}

.country-path:hover {
  stroke: #00f2ff !important;
  stroke-width: 1.8px !important;
  filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.6));
}

.country-path.dimmed {
  opacity: 0.25;
}

.country-path.highlighted {
  stroke: #ebaf37 !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 12px rgba(235, 175, 55, 0.8));
}

/* Custom Scrollbar for Leaderboard & Search Dropdown */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(235, 175, 55, 0.35);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(235, 175, 55, 0.7);
}

/* Light Mode Overrides */
body.light-mode {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode #map-starfield {
  background: radial-gradient(circle at center, #e2e8f0 0%, #cbd5e1 85%) !important;
}

body.light-mode #map-scanlines {
  display: none !important;
}

body.light-mode header,
body.light-mode .bg-jhsDark\/95,
body.light-mode .bg-jhsPanel {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .text-slate-400,
body.light-mode .text-slate-500 {
  color: #475569 !important;
}

body.light-mode .text-white {
  color: #0f172a !important;
}

body.light-mode .country-path {
  stroke: rgba(255, 255, 255, 0.9);
}

body.light-mode input,
body.light-mode select {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .text-slate-100,
body.light-mode .text-slate-200,
body.light-mode .text-slate-300 {
  color: #0f172a !important;
}

body.light-mode .bg-slate-900,
body.light-mode .bg-slate-950,
body.light-mode #search-dropdown,
body.light-mode #map-tooltip {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

