/* #4: Pannellum & hotspot overrides — extracted from styles.css */

/* Pannellum overrides */
.pnlm-container { background: var(--bg) !important; }
.pnlm-about-msg, .pnlm-load-box, .pnlm-lbox, .pnlm-lmsg, .pnlm-lbar { display: none !important; }
.pnlm-controls,
.pnlm-zoom-controls,
.pnlm-controls .pnlm-zoom-in,
.pnlm-controls .pnlm-zoom-out {
  display: none !important;
}

/* Pannellum hotspot styling */
.pnlm-hotspot-base {
  border: none !important;
}
/* Reset background only for non-custom hotspots (info/scene types) */
.pnlm-hotspot-base:not(.custom-hotspot):not(.nav-arrow-hotspot) {
  background: none !important;
}
.pnlm-hotspot-base .pnlm-tooltip {
  background: var(--bg-glass-strong) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text) !important;
  padding: 10px 14px !important;
  font-family: var(--font) !important;
  font-size: .85rem !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: var(--shadow) !important;
  max-width: 240px !important;
}
.pnlm-tooltip span { font-size: .78rem !important; color: var(--text-muted) !important; }

/* Custom hotspot markers */
.custom-hotspot {
  width: 36px; height: 36px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(74, 222, 128, 0.7) 40%, rgba(74, 222, 128, 0.25) 70%, transparent 100%);
  border-radius: 50%;
  cursor: pointer;
  animation: hotspotPulse 2s ease-in-out infinite;
  /* position is inherited from .pnlm-hotspot-base (absolute) — do NOT override */
  transition: transform var(--transition);
  z-index: 10;
}
.custom-hotspot:hover { transform: scale(1.4); }

.custom-hotspot::after {
  content: ''; position: absolute;
  inset: -8px; border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.5);
  animation: hotspotRing 2s ease-in-out infinite;
}

.custom-hotspot.mastery {
  background: radial-gradient(circle, var(--amber) 0%, rgba(251, 191, 36, 0.7) 40%, rgba(251, 191, 36, 0.25) 70%, transparent 100%);
}
.custom-hotspot.mastery::after { border-color: rgba(251, 191, 36, 0.5); }

.custom-hotspot.expertise {
  width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(200,200,200,0.6) 0%, rgba(200,200,200,0.15) 60%, transparent 100%);
  animation: none;
}
.custom-hotspot.expertise::after { display: none; }
.custom-hotspot.expertise.revealed {
  width: 28px; height: 28px;
  background: radial-gradient(circle, #c084fc 0%, rgba(192, 132, 252, 0.4) 60%, transparent 100%);
  animation: hotspotPulse 2s ease-in-out infinite;
}
.custom-hotspot.expertise.revealed::after { display: block; border-color: rgba(192, 132, 252, 0.3); }

.custom-hotspot-label {
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .72rem; font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  margin-bottom: 10px;
  transition: opacity var(--transition);
  backdrop-filter: blur(12px);
}
.custom-hotspot:hover .custom-hotspot-label { opacity: 1; }
/* In discovery mode, always show labels so new players find hotspots easily */
.custom-hotspot.discovery .custom-hotspot-label { opacity: .85; }

.custom-hotspot.collected {
  background: radial-gradient(circle, rgba(100,200,130,0.3) 0%, transparent 100%);
  animation: none;
  opacity: .5;
}
.custom-hotspot.collected::after { display: none; }

@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(74, 222, 128, 0.5), 0 0 24px rgba(74, 222, 128, 0.15); }
  50% { box-shadow: 0 0 28px rgba(74, 222, 128, 0.7), 0 0 48px rgba(74, 222, 128, 0.2); }
}

@keyframes hotspotRing {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.6); opacity: 0; }
}
