/* ============================================================
   CHICKEN POX BUBBLES — Floating clickable guide icons
   Scattered throughout the page as you scroll.
   Placed OUTSIDE React root to avoid reconciliation conflicts.
   ============================================================ */

/* Container holds all bubbles in absolute positions */
#chickenpox-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}

/* Individual bubble */
.cpox-bubble {
  position: absolute;
  pointer-events: auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Float + glow run together; hover pauses both */
  animation: cpox-float 4s ease-in-out infinite, cpox-glow 3s ease-in-out infinite;
}

.cpox-bubble:hover {
  animation: none;
  transform: scale(1.12);
  filter: drop-shadow(0 0 18px rgba(201, 162, 39, 0.85));
}

.cpox-bubble img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 14px 4px rgba(201, 162, 39, 0.55),
              0 3px 10px rgba(0, 0, 0, 0.22);
  border: 2.5px solid rgba(201, 162, 39, 0.8);
  transition: box-shadow 0.3s ease;
}

.cpox-bubble:hover img {
  box-shadow: 0 0 24px 8px rgba(201, 162, 39, 0.9),
              0 4px 14px rgba(0, 0, 0, 0.3);
}

.cpox-bubble .cpox-label {
  margin-top: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #111a2d;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
  text-align: center;
  line-height: 1.3;
}

/* Gentle float: 5px up/down drift */
@keyframes cpox-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

/* Gold glow pulse */
@keyframes cpox-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.3)); }
  50%       { filter: drop-shadow(0 0 16px rgba(201, 162, 39, 0.75)); }
}

/* Stagger float + glow for each bubble */
.cpox-bubble:nth-child(1) { animation-delay: 0s,   0s;   animation-duration: 4.2s, 3.0s; }
.cpox-bubble:nth-child(2) { animation-delay: 0.8s, 0.5s; animation-duration: 4.6s, 3.4s; }
.cpox-bubble:nth-child(3) { animation-delay: 1.5s, 1.0s; animation-duration: 3.9s, 2.8s; }
.cpox-bubble:nth-child(4) { animation-delay: 2.2s, 1.6s; animation-duration: 4.4s, 3.2s; }
.cpox-bubble:nth-child(5) { animation-delay: 0.4s, 2.1s; animation-duration: 4.0s, 3.6s; }

/* Mobile: 88px circles — large enough to tap, small enough not to cover content */
@media (max-width: 768px) {
  .cpox-bubble {
    width: 88px;
    height: 88px;
  }
  .cpox-bubble img {
    width: 72px;
    height: 72px;
  }
  .cpox-bubble .cpox-label {
    font-size: 10px;
    padding: 2px 7px;
  }
}

/* Reduced motion: keep glow, remove float */
@media (prefers-reduced-motion: reduce) {
  .cpox-bubble {
    animation: cpox-glow 3s ease-in-out infinite;
  }
  .cpox-bubble:hover {
    animation: none;
  }
}
