/* ═══════════════════════════════════════════════════════════════════════════
   BROWSE HERO RADAR SWEEP — Task #1320487
   Animated radar sweep in the settlement browse page hero section
   ═══════════════════════════════════════════════════════════════════════════ */

/* Radar sweep animation keyframes */
@keyframes browse-radar-sweep {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

@keyframes browse-radar-dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes browse-radar-ring-pulse {
  0% { opacity: 0.12; }
  50% { opacity: 0.25; }
  100% { opacity: 0.12; }
}

@keyframes browse-radar-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(212,175,55,0.3)); }
  50% { filter: drop-shadow(0 0 6px rgba(212,175,55,0.7)); }
}

/* Radar container */
.dir-hero-radar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem;
  position: relative;
}

.sr-radar-container {
  position: relative;
  width: 120px;
  height: 120px;
}

/* Radar SVG */
.sr-radar-svg {
  width: 100%;
  height: 100%;
  animation: browse-radar-glow 3s ease-in-out infinite;
}

/* Radar rings — subtle pulse */
.sr-radar-ring {
  animation: browse-radar-ring-pulse 4s ease-in-out infinite;
}
.sr-radar-ring:nth-child(2) { animation-delay: 0.5s; }
.sr-radar-ring:nth-child(3) { animation-delay: 1s; }

/* Cross hairs — static decorative lines */
.sr-radar-cross {
  /* Static, no animation needed */
}

/* Center dot — pulsing */
.sr-radar-center {
  animation: browse-radar-dot-pulse 2s ease-in-out infinite;
}

/* Floating dots — staggered pulse */
.sr-radar-dot {
  animation: browse-radar-dot-pulse 1.5s ease-in-out infinite;
}
.sr-radar-dot:nth-child(5) { animation-delay: 0.2s; }
.sr-radar-dot:nth-child(6) { animation-delay: 0.5s; }
.sr-radar-dot:nth-child(7) { animation-delay: 0.8s; }
.sr-radar-dot:nth-child(8) { animation-delay: 1.1s; }

/* Sweep line — continuous rotation */
.sr-radar-sweep {
  transform-origin: 60px 60px;
  animation: browse-radar-sweep 2.5s linear infinite;
}

/* Mobile: smaller radar */
@media (max-width: 480px) {
  .sr-radar-container {
    width: 90px;
    height: 90px;
  }

  .dir-hero-radar {
    margin-bottom: 1rem;
  }
}

/* Desktop: radar on the right side of the hero */
@media (min-width: 768px) {
  .dir-hero-radar {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    opacity: 0.6;
  }

  .sr-radar-container {
    width: 150px;
    height: 150px;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .sr-radar-sweep,
  .sr-radar-ring,
  .sr-radar-center,
  .sr-radar-dot {
    animation: none;
  }

  .sr-radar-svg {
    animation: none;
  }
}