/* ═══════════════════════════════════════════════════════════
   background.css — живой атмосферный фон myu.to
   Правило: если видишь облако отчётливо — оно слишком яркое.
═══════════════════════════════════════════════════════════ */

/* ── Цвета атмосферы — не брендовые ──────────────────────── */
:root {
  --atm-violet: rgba(99,  70, 180, 0.09);
  --atm-indigo: rgba(55,  48, 163, 0.07);
  --atm-pink:   rgba(180, 80, 120, 0.065);
  --atm-blue:   rgba(60, 100, 220, 0.07);
  --atm-teal:   rgba(20, 100, 120, 0.055);
}

/* ── Контейнер ────────────────────────────────────────────── */
.atm-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── Базовый blob ─────────────────────────────────────────── */
.atm-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

/* ── 5 облаков ────────────────────────────────────────────── */
.atm-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--atm-violet) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: blobDrift1 26s ease-in-out infinite alternate;
}

.atm-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--atm-blue) 0%, transparent 70%);
  top: 10%; right: -100px;
  animation: blobDrift2 34s ease-in-out infinite alternate;
}

.atm-blob-3 {
  width: 700px; height: 500px;
  background: radial-gradient(circle, var(--atm-indigo) 0%, transparent 70%);
  top: 50%; left: 20%;
  transform: translate(-50%, -50%);
  animation: blobDrift3 22s ease-in-out infinite alternate;
}

.atm-blob-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--atm-pink) 0%, transparent 70%);
  bottom: -100px; right: 20%;
  animation: blobDrift4 30s ease-in-out infinite alternate;
}

.atm-blob-5 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--atm-teal) 0%, transparent 70%);
  bottom: 20%; left: 60%;
  animation: blobDrift5 28s ease-in-out infinite alternate;
}

/* ── Анимации ─────────────────────────────────────────────── */
@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-60px, 80px) scale(0.95); }
}
@keyframes blobDrift3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) translate(40px, -50px) scale(1.08); }
}
@keyframes blobDrift4 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50px, -40px) scale(1.05); }
}
@keyframes blobDrift5 {
  from { transform: translate(0, 0) scale(0.95); }
  to   { transform: translate(60px, 30px) scale(1.05); }
}

/* ── Мобиль: только 2 blob, экономия батареи ─────────────── */
@media (max-width: 767px) {
  .atm-blob-2,
  .atm-blob-4,
  .atm-blob-5 { display: none; }

  .atm-blob-1,
  .atm-blob-3 {
    filter: blur(55px);
    animation-duration: 32s;
  }
}

/* ── prefers-reduced-motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .atm-blob { animation: none !important; }
}

/* ── Светлая тема: фон светлее, блобы почти невидимы ─────── */
[data-theme="light"] .atm-blob {
  opacity: 0.4;
}
