/* loader.css - GeoAurum circular GA loader */
#geoLoaderOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#geoLoaderOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

.geo-loader {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* dim outer ring */
.geo-loader .ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 6px solid rgba(212, 175, 55, 0.12);
  box-sizing: border-box;
}

/* animated segment */
.geo-loader .ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 6px solid transparent;
  border-top-color: rgba(212, 175, 55, 1);
  transform-origin: 50% 50%;
  animation: geo-spin 1.25s linear infinite;
  box-sizing: border-box;
}

/* GA badge */
.geo-loader .ga {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  font-size: 32px;
  color: #04121a;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  border: 2px solid rgba(212, 175, 55, 0.14);
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.45),
    inset 0 -2px 6px rgba(0, 0, 0, 0.08);
  color: #d4af37; /* gold */
}

/* tiny subtle pulse */
.geo-loader .ga::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(
    circle at center,
    rgba(212, 175, 55, 0.06),
    transparent 35%
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes geo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive: shrink loader on small screens */
@media (max-width: 420px) {
  .geo-loader {
    width: 86px;
    height: 86px;
  }
  .geo-loader .ga {
    font-size: 22px;
    padding: 8px 12px;
  }
  .geo-loader .ring,
  .geo-loader .ring::after {
    border-width: 5px;
  }
}
