/* ============================================================
   LIQUID GLASS — Bokeh & Glass Effects
   Shot by Sheldon
   ============================================================ */

/* ---------- BOKEH FIELD (Background floating particles) ---------- */
.bokeh-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bokeh-shard {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(214, 205, 211, 0.35) 40%,
    rgba(184, 174, 180, 0.2) 70%,
    transparent 100%);
  filter: blur(10px);
  animation: floatShard var(--duration, 20s) ease-in-out infinite alternate;
  opacity: var(--opacity, 0.45);
  transform: translate(0, 0);
}

@keyframes floatShard {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(var(--move-x, 30px), var(--move-y, 30px)) scale(1.12);
  }
}

/* ---------- TRAIL SHARDS (Mouse follower) ---------- */
.trail-shard {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(184, 174, 180, 0.5) 50%,
    transparent 100%);
  pointer-events: none;
  transition: all 0.05s linear;
  filter: blur(4px);
  z-index: 9997;
}

/* ---------- BUBBLE DECORATIONS (Floating glass bubbles) ---------- */
.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bubble--sm {
  width: 60px;
  height: 60px;
}

.bubble--md {
  width: 100px;
  height: 100px;
}

.bubble--lg {
  width: 160px;
  height: 160px;
}

.bubble--xl {
  width: 240px;
  height: 240px;
}

.bubble--glass {
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%);
  backdrop-filter: blur(2px);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
}

.bubble--tint {
  background: radial-gradient(circle at 30% 30%,
    rgba(214, 205, 211, 0.35) 0%,
    rgba(184, 174, 180, 0.2) 50%,
    transparent 70%);
  border: 0.5px solid rgba(184, 174, 180, 0.25);
}

.bubble--accent {
  background: radial-gradient(circle at 30% 30%,
    rgba(107, 96, 102, 0.3) 0%,
    rgba(107, 96, 102, 0.12) 50%,
    transparent 70%);
}

.bubble--warm {
  background: radial-gradient(circle at 30% 30%,
    rgba(184, 174, 180, 0.4) 0%,
    rgba(214, 205, 211, 0.2) 50%,
    transparent 70%);
}

.bubble--float {
  animation: bubbleFloat 12s ease-in-out infinite alternate;
}

.bubble--float-slow {
  animation: bubbleFloat 18s ease-in-out infinite alternate;
}

.bubble--float-rev {
  animation: bubbleFloatRev 14s ease-in-out infinite alternate;
}

@keyframes bubbleFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -20px) scale(1.05);
  }
}

@keyframes bubbleFloatRev {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ---------- ICON BUBBLES ---------- */
.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(184, 174, 180, 0.35) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  /* Sit cleanly inline next to text and never shrink inside flex containers */
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
  /* Reset inherited tracking so emoji render centred in the circle */
  letter-spacing: 0;
  font-style: normal;
  overflow: hidden;
}

.icon-bubble--sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.icon-bubble--md {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.icon-bubble--lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.icon-bubble--olive {
  background: radial-gradient(circle at 30% 30%,
    rgba(107, 96, 102, 0.92) 0%,
    rgba(58, 50, 54, 0.75) 50%,
    rgba(26, 22, 24, 0.55) 100%);
  color: white;
}

.icon-bubble--wheat {
  background: radial-gradient(circle at 30% 30%,
    rgba(184, 174, 180, 0.96) 0%,
    rgba(214, 205, 211, 0.85) 50%,
    rgba(107, 96, 102, 0.45) 100%);
  color: var(--color-ink);
}

.icon-bubble--dark {
  background: radial-gradient(circle at 30% 30%,
    rgba(26, 22, 24, 0.96) 0%,
    rgba(58, 50, 54, 0.85) 50%,
    rgba(107, 96, 102, 0.45) 100%);
  color: white;
}

/* ---------- BUBBLE ROW (Horizontal bubble group) ---------- */
.bubble-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bubble-row--center {
  justify-content: center;
}

/* ---------- BADGE BUBBLES ---------- */
.badge-bubble {
  background: rgba(26, 22, 24, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.badge-bubble--sm {
  width: 100px;
  height: 100px;
}

.badge-bubble--md {
  width: 132px;
  height: 132px;
}

.badge-bubble--lg {
  width: 160px;
  height: 160px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .bubble--lg, .bubble--xl {
    display: none;
  }
  .icon-bubble--lg {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bokeh-shard,
  .bubble--float,
  .bubble--float-slow,
  .bubble--float-rev {
    animation: none;
  }
  
  .ticker-track {
    animation: none;
  }
  
  .trail-shard {
    display: none;
  }
}