/* =====================================================================
   Saved Interests — Circular Bubble UI
   - True circles, edge-to-centre radial glow
   - No CSS animation (JS drives all movement)
   - Text never breaks mid-word
   ===================================================================== */

.bubble-canvas.is-bubbles {
  position: relative;
  width: 100%;
  min-height: 100px; /* JS sets actual height after settle */
  touch-action: pan-y; /* allow vertical scroll on empty space; JS blocks it only when dragging a bubble */
  margin: 10px 0 18px;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
}

/* Each bubble: position via JS transform only */
.bubble-canvas.is-bubbles .filter-tab {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(0, 0, 0);
  width: var(--bubble-size, 72px);
  height: var(--bubble-size, 72px);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: none;
  white-space: normal;
  flex-shrink: unset;
  background: radial-gradient(circle at center,
    rgba(72, 72, 72, 1)   0%,
    rgba(48, 48, 48, 1)  28%,
    rgba(26, 26, 26, 1)  56%,
    rgba(10, 10, 10, 1)  80%,
    rgba(5,  5,  5,  1) 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.07),
    inset 0 -6px 14px rgba(0, 0, 0, 0.5);
  color: #f0f0f0;
  text-align: center;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
  transition: filter 0.2s ease;
  font-family: 'Anton SC', sans-serif !important;
}


/* Edge-to-centre red rim glow */
.bubble-canvas.is-bubbles .filter-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0)      52%,
    rgba(110,  0,  0, 0.18)    68%,
    rgba(200, 10, 10, 0.50)    82%,
    rgba(255, 38, 38, 0.85)    93%,
    rgba(255, 60, 60, 1.00)   100%);
  pointer-events: none;
}

/* Subtle inner highlight */
.bubble-canvas.is-bubbles .filter-tab::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0)    70%);
  pointer-events: none;
}

.bubble-canvas.is-bubbles .filter-tab:hover { filter: brightness(1.12); }

.bubble-canvas.is-bubbles .filter-tab.active {
  background: radial-gradient(circle at center,
    rgba(140, 40, 40, 1)   0%,
    rgba( 90, 14, 14, 1)  30%,
    rgba( 44,  6,  6, 1)  58%,
    rgba( 18,  2,  2, 1)  80%,
    rgba(  8,  0,  0, 1) 100%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(255, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.10),
    inset 0 -6px 14px rgba(0, 0, 0, 0.4);
}

.bubble-canvas.is-bubbles .filter-tab.active::before {
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0)      48%,
    rgba(180, 14, 14, 0.28)    66%,
    rgba(255, 22, 22, 0.65)    82%,
    rgba(255, 68, 68, 0.95)    95%,
    rgba(255, 90, 90, 1.00)   100%);
}

.bubble-canvas.is-bubbles .bubble-label {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: inherit;
}

/* Each line of text — NEVER wraps mid-word */
.bubble-canvas.is-bubbles .bubble-line {
  display: block;
  white-space: nowrap;
  line-height: 1.15;
}

.bubble-canvas.is-bubbles .filter-tab[data-bsize="xs"] { font-size: 11.5px; }
.bubble-canvas.is-bubbles .filter-tab[data-bsize="sm"] { font-size: 12px; }
.bubble-canvas.is-bubbles .filter-tab[data-bsize="md"] { font-size: 12px; }
.bubble-canvas.is-bubbles .filter-tab[data-bsize="lg"] { font-size: 11.5px; }
