/* ========== GLOBE SECTION ========== */

.globe-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.globe-container {
  width: 100%;
  height: 500px;
  position: relative;
  margin: 0 auto;
  max-width: 700px;
}

.globe-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

.globe-container canvas:active {
  cursor: grabbing;
}

.globe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.globe-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.globe-legend-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text);
}

[data-theme="light"] .globe-legend-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.globe-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.globe-legend-dot.blue { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.globe-legend-dot.green { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.globe-legend-dot.purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.globe-legend-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

[data-theme="light"] .globe-legend-dot.blue { background: #2563eb; box-shadow: 0 0 8px #2563eb; }
[data-theme="light"] .globe-legend-dot.green { background: #16a34a; box-shadow: 0 0 8px #16a34a; }
[data-theme="light"] .globe-legend-dot.purple { background: #7c3aed; box-shadow: 0 0 8px #7c3aed; }
[data-theme="light"] .globe-legend-dot.amber { background: #d97706; box-shadow: 0 0 8px #d97706; }

/* Globe tooltip */
.globe-tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f9fafb;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="light"] .globe-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
}

.globe-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .globe-container {
    height: 350px;
  }
  .globe-legend {
    gap: 0.5rem;
  }
  .globe-legend-item {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
  }
}