/**
 * App.css — SatGuard Globe 3D styles.
 *
 * UI design: Dark glassmorphism — used by LeoLabs, KeepTrack.space, and
 * trending for 2025-2026 data dashboards.
 * Source: https://ui.glass/ (CSS generator for glassmorphism)
 * Source: https://keeptrack.space (reference satellite tracker UI)
 */

/* --- Reset & base --- */
html, body, #root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Glassmorphism base class --- */
.glass-panel {
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #c8d6e5;
}

/* --- Loading overlay --- */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a0e1a 0%, #000 70%);
  color: #5ecfff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 1000;
}

.loading-overlay .spinner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(94, 207, 255, 0.15);
  border-top-color: #5ecfff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 20px;
}

.loading-overlay .subtitle {
  color: rgba(200, 214, 229, 0.4);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Loading pulse for text --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-text {
  animation: pulse 1.8s ease-in-out infinite;
}

/* --- Error banner --- */
.error-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 60, 60, 0.85);
  backdrop-filter: blur(12px);
  color: white;
  padding: 8px 24px;
  border-radius: 8px;
  z-index: 999;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* --- Status bar (bottom center) --- */
.status-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Branding (top-right) --- */
.branding {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 200;
  pointer-events: none;
}

.branding h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(94, 207, 255, 0.85);
  text-shadow: 0 0 20px rgba(94, 207, 255, 0.3);
}

.branding .tagline {
  margin: 2px 0 0;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(200, 214, 229, 0.35);
  text-align: right;
}

/* --- Legend dots --- */
.legend {
  position: absolute;
  bottom: 44px;
  right: 16px;
  z-index: 200;
  display: flex;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(200, 214, 229, 0.5);
  pointer-events: none;
}

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

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

/* --- Hide Cesium default UI --- */
.cesium-viewer-bottom,
.cesium-viewer-toolbar,
.cesium-viewer-fullscreenContainer {
  display: none !important;
}

/* Credit bar — keep but make subtle */
.cesium-widget-credits {
  opacity: 0.15 !important;
  font-size: 9px !important;
}
