/* ======================================
   LIGHT THEME ANIMATED BACKGROUND
   ====================================== */

html[data-theme='dark'] .light-background-container {
  display: none;
}

html[data-theme='light'] .lines {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}

.light-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #87ceeb 0%, #e0f4ff 50%, #f0e6ff 100%);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  transition: all 0.8s ease-in-out;
}

/* Sun */
.sun {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #ffeb3b, #ffd700, #ffa500);
  border-radius: 50%;
  top: 10%;
  right: 10%;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 
              0 0 100px rgba(255, 165, 0, 0.3);
  animation: sun-pulse 4s infinite ease-in-out;
}

@keyframes sun-pulse {
  0%, 100% {
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 
                0 0 100px rgba(255, 165, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 
                0 0 130px rgba(255, 165, 0, 0.5);
  }
}

/* Animated Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  animation: float 20s infinite ease-in-out;
}

.orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #4da6ff, #1e90ff);
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ff69b4, #ff1493);
  top: 30%;
  right: -100px;
  animation-delay: 5s;
  animation-duration: 25s;
}

.orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #9d4edd, #5a189a);
  bottom: -50px;
  left: 20%;
  animation-delay: 10s;
  animation-duration: 30s;
}

.orb:nth-child(4) {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #00d4ff, #0099cc);
  bottom: 10%;
  right: 5%;
  animation-delay: 15s;
  animation-duration: 28s;
}

.orb:nth-child(5) {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #ffd60a, #ffc300);
  top: 50%;
  left: 5%;
  animation-delay: 8s;
  animation-duration: 26s;
}

.orb:nth-child(6) {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #8ecae6, #219ebc);
  top: 20%;
  left: 40%;
  animation-delay: 12s;
  animation-duration: 32s;
}

/* Clouds */
.cloud {
  position: absolute;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  border-radius: 100px;
  opacity: 0.7;
}

.cloud:nth-child(7) {
  width: 100px;
  height: 40px;
  top: 15%;
  left: -100px;
  animation: float-cloud 25s infinite linear;
}

.cloud:nth-child(8) {
  width: 120px;
  height: 50px;
  top: 25%;
  right: -120px;
  animation: float-cloud-reverse 30s infinite linear;
  animation-delay: 5s;
}

.cloud:nth-child(9) {
  width: 110px;
  height: 45px;
  top: 35%;
  left: -110px;
  animation: float-cloud 35s infinite linear;
  animation-delay: 10s;
}

.cloud:nth-child(10) {
  width: 95px;
  height: 38px;
  top: 45%;
  right: -95px;
  animation: float-cloud-reverse 28s infinite linear;
  animation-delay: 15s;
}

.cloud:nth-child(11) {
  width: 105px;
  height: 42px;
  top: 55%;
  left: -105px;
  animation: float-cloud 32s infinite linear;
  animation-delay: 8s;
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.05);
  }
  50% {
    transform: translateY(-60px) translateX(-20px) scale(0.95);
  }
  75% {
    transform: translateY(-30px) translateX(30px) scale(1.02);
  }
}

/* Alternative subtle animation for lighter feel */
@keyframes gentle-drift {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Cloud animations */
@keyframes float-cloud {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 120px));
  }
}

@keyframes float-cloud-reverse {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100vw - 120px));
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .orb {
    filter: blur(30px);
  }

  .orb:nth-child(1) {
    width: 200px;
    height: 200px;
  }

  .orb:nth-child(2) {
    width: 180px;
    height: 180px;
  }

  .orb:nth-child(3) {
    width: 150px;
    height: 150px;
  }

  .orb:nth-child(4) {
    width: 170px;
    height: 170px;
  }

  .orb:nth-child(5) {
    width: 140px;
    height: 140px;
  }

  .orb:nth-child(6) {
    width: 160px;
    height: 160px;
  }
}
