/* ============================================================
   World Map - D3 Aitoff Projection
   Matches celestial map for visual unity
   ============================================================ */

.world-map-aitoff {
  display: block;
}

/* Ocean / Sphere */
.world-map-aitoff .ocean .sphere {
  fill: #0a1628;
}

/* Land / Countries */
.world-map-aitoff .land .country {
  fill: #1e4d4d;
  stroke: #2dd4bf;
  stroke-width: 0.4;
  stroke-opacity: 0.5;
  transition: fill 0.2s ease;
}

.world-map-aitoff .land .country:hover {
  fill: #2a6363;
}

/* Grid / Graticule */
.world-map-aitoff .grid .graticule {
  fill: none;
  stroke: #22d3ee;
  stroke-opacity: 0.1;
  stroke-width: 0.3;
}

.world-map-aitoff .grid .equator {
  fill: none;
  stroke: #6fe3a3;
  stroke-opacity: 0.25;
  stroke-width: 0.6;
}

.world-map-aitoff .grid .prime-meridian {
  fill: none;
  stroke: #6fe3a3;
  stroke-opacity: 0.18;
  stroke-width: 0.5;
}

.world-map-aitoff .grid .boundary {
  fill: none;
  stroke: #22d3ee;
  stroke-opacity: 0.3;
  stroke-width: 1;
}

/* Station markers */
.station-marker {
  cursor: pointer;
  pointer-events: auto;
}

.station-marker .marker-dot {
  fill: #4a5568;
  stroke: #1a202c;
  stroke-width: 1;
  transition: all 0.2s ease;
}

.station-marker.online .marker-dot {
  fill: #6fe3a3;
  stroke: #34d399;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(111, 227, 163, 0.7))
          drop-shadow(0 0 8px rgba(111, 227, 163, 0.4));
}

.station-marker.offline .marker-dot {
  fill: #f87171;
  stroke: #dc2626;
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.5));
}

.station-marker.selected .marker-dot {
  fill: #fbbf24;
  stroke: #f59e0b;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8))
          drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

/* Pulse animation */
.station-marker .pulse-ring {
  fill: none;
  stroke: #6fe3a3;
  stroke-width: 1.5;
  opacity: 0;
  animation: pulse-expand 2.5s ease-out infinite;
}

.station-marker.selected .pulse-ring {
  stroke: #fbbf24;
  animation: pulse-expand-fast 1.5s ease-out infinite;
}

@keyframes pulse-expand {
  0% { r: 6; opacity: 0.5; }
  100% { r: 30; opacity: 0; }
}

@keyframes pulse-expand-fast {
  0% { r: 8; opacity: 0.7; }
  100% { r: 35; opacity: 0; }
}

/* Station label */
.station-marker .station-label {
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  fill: #e2e8f0;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.station-marker:hover .station-label,
.station-marker.selected .station-label {
  opacity: 1;
}


/* ============================================================
   RESPONSIVE: Mobile
   ============================================================ */

@media screen and (max-width: 768px) {
  .station-marker .station-label {
    font-size: 8px;
  }

  .world-map-aitoff .land .country {
    stroke-width: 0.3;
  }

  .world-map-aitoff .grid .graticule {
    stroke-width: 0.2;
  }
}

@media screen and (max-width: 480px) {
  .station-marker .station-label {
    font-size: 7px;
  }

  /* Touch-friendly: always show labels on mobile */
  .station-marker.online .station-label,
  .station-marker.selected .station-label {
    opacity: 0.8;
  }
}
