/* =====================
   Globe Visualization Styles (aligned with country spheres)
   Prefix: globe-
   ===================== */

#globe-section {
  --globe-cream: #faf7f2;
  --globe-earth: #3d3229;
  --globe-earth-light: #9a8d80;
  --globe-terracotta: #c45d3e;
  --globe-amber: #d4860b;
  --globe-forest: #2d6a4f;
  --globe-clay: #c4a882;
}

/* Container – Sam's style: warm cream, subtle gradient */
#globe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  background: var(--globe-cream);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(196,93,62,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(45,106,79,0.05) 0%, transparent 55%);
  color: var(--globe-earth);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}

.globe-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
}

.globe-container {
  position: relative;
  width: 600px;
  height: 600px;
  background: transparent;
  border-radius: 12px;
}

/* Title – Playfair / editorial like country spheres */
.globe-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  color: var(--globe-earth);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.globe-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--globe-earth-light);
  margin-bottom: 28px;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Animated fire hotspots – intensity = size, flicker = fire */
@keyframes globe-fire-flicker {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@keyframes globe-fire-glow {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.45; }
}

.globe-fire-glow {
  animation: globe-fire-glow 1.6s ease-in-out infinite;
}

.globe-fire-flame {
  animation: globe-fire-flicker 1.1s ease-in-out infinite;
}

.globe-fire-core {
  animation: globe-fire-flicker 0.8s ease-in-out infinite;
}

.globe-hotspot-group.globe-selected .globe-fire-core {
  filter: brightness(1.15);
}

.globe-hotspot {
  fill: transparent;
  stroke: transparent;
  transition: stroke 0.2s;
}

/* Paused Indicator – Sam's button style */
.globe-paused-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--globe-clay);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--globe-earth-light);
  display: none;
  box-shadow: 0 4px 20px rgba(61,50,41,0.08);
}

.globe-paused-indicator.globe-visible {
  display: block;
}

.globe-resume-btn {
  background: var(--globe-earth);
  color: var(--globe-cream);
  border: none;
  padding: 5px 14px;
  border-radius: 20px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.globe-resume-btn:hover {
  filter: brightness(1.1);
}

/* Chart Popup – card like country spheres */
.globe-popup {
  position: absolute;
  background: rgba(254,252,249,0.98);
  border: 1px solid rgba(61,50,41,0.12);
  border-radius: 16px;
  padding: 18px;
  display: none;
  box-shadow: 0 20px 50px rgba(61,50,41,0.12);
  z-index: 200;
  min-width: 320px;
}

.globe-popup.globe-visible {
  display: block;
}

.globe-popup h4 {
  font-family: 'Playfair Display', serif;
  color: var(--globe-earth);
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.globe-popup-stats {
  font-size: 12px;
  color: var(--globe-earth-light);
  margin-bottom: 12px;
}

.globe-popup-stats span {
  color: var(--globe-terracotta);
  font-weight: 600;
}

#globe-chart {
  min-height: 195px;
  width: 100%;
}

.globe-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--globe-earth-light);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.globe-close-btn:hover {
  color: var(--globe-earth);
}

/* Chart elements – earth tones */
.globe-axis text {
  fill: var(--globe-earth-light);
  font-size: 10px;
}

.globe-axis line,
.globe-axis path {
  stroke: rgba(61,50,41,0.2);
}

.globe-grid line {
  stroke: rgba(61,50,41,0.12);
}

/* Chart Legend */
.globe-chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--globe-earth-light);
}

.globe-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.globe-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
