/* Background fallback styles */

/* Background plum fixes */
bg-plum {
  z-index: -1;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  mask-image: radial-gradient(circle, transparent, black);
  -webkit-mask-image: radial-gradient(circle, transparent, black);
}

/* Fallback background for browsers without WebGL */
.bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  opacity: 0.8;
}

.dark .bg-fallback {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

/* WebGL fallback for spinning globe */
.webgl-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 14px;
  color: #6c757d;
  text-align: center;
  padding: 1rem;
}

.dark .webgl-fallback {
  background: rgba(255, 255, 255, 0.05);
  color: #adb5bd;
}

/* Fix for the globe container */
#globe-container.fallback-active {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Force plum background to display */
.force-bg-visible bg-plum {
  display: block !important;
  visibility: visible !important;
}

/* Ensure canvas is fully visible */
bg-plum canvas {
  display: block;
  width: 100%;
  height: 100%;
}
