/* src/styles/animated-accent-background.module.css */

.aab__root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.aab__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--background),
    var(--background),
    var(--muted)
  );
}

/* слой для всех bubble */
.aab__spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* общий стиль bubble (под тему автоматически) */
.aab__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);

  border-radius: 9999px;
  filter: blur(var(--blur));
  opacity: var(--opacity);

  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--foreground) 12%, transparent),
    transparent 62%
  );

  will-change: transform, opacity;
  animation: aab__float var(--dur) ease-in-out infinite;
}

/* чуть иной “тон” для разнообразия, но без цвета */
.aab__spotAlt {
  background: radial-gradient(
    circle at 70% 70%,
    color-mix(in srgb, var(--foreground) 9%, transparent),
    transparent 64%
  );
}

@keyframes aab__float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: var(--opacity);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: calc(var(--opacity) + 0.12);
  }
}

/* контент поверх */
.aab__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
    display: flex;
  flex-direction: column;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .aab__spot {
    animation: none;
  }
}

/* mobile: чуть спокойнее */
@media (max-width: 640px) {
  .aab__spot {
    filter: blur(calc(var(--blur) * 0.9));
    opacity: calc(var(--opacity) * 0.9);
  }
}
