/* pulsingcircle.css — Interactive hotspot circles using design tokens */

.image-container-pulsingcircle {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 137;
  overflow: hidden;
}

.base-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.pulse {
  width: 20px;
  height: 20px;
  background: var(--color-danger, #dc3545);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.pulse::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(178, 210, 53, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-animation 1.0s infinite;
  z-index: 0;
}

@keyframes pulse-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2, #333);
  color: var(--brand, #b2d235);
  padding: 6px 10px;
  border-radius: var(--radius, 4px);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  border: var(--border-subtle, 1px solid rgba(255,255,255,0.06));
  box-shadow: var(--shadow-sm);
}

.hotspot:hover .tooltip {
  opacity: 1;
}

.tooltip-down {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2, #333);
  color: var(--brand, #b2d235);
  padding: 6px 10px;
  border-radius: var(--radius, 4px);
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  border: var(--border-subtle, 1px solid rgba(255,255,255,0.06));
  box-shadow: var(--shadow-sm);
}

.hotspot:hover .tooltip-down {
  opacity: 1;
}
