/* =========================================
   Zwet Food - Dynamic Weather Overlay Only
   ========================================= */

/* The overlay sits on top of everything but ignores clicks */
#weather-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999; /* sits above most elements but below modals */
  overflow: hidden;
}

/* =========================================
   ANIMATIONS & EFFECTS (Injected via JS)
   ========================================= */

/* --- Sun Rays (Clear Day) --- */
.sun-ray {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 235, 150, 0.15) 0%, transparent 60%);
  animation: pulseSun 8s infinite alternate ease-in-out;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes pulseSun {
  0% { transform: scale(1) translateZ(0); opacity: 0.5; }
  100% { transform: scale(1.1) translateZ(0); opacity: 0.8; }
}

/* --- Rain Drops --- */
.rain-drop {
  position: absolute;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(200, 220, 255, 0.6));
  width: 2px;
  height: 25px;
  border-radius: 50%;
  animation: fallRain linear infinite;
  will-change: transform, opacity;
}
@keyframes fallRain {
  0% { transform: translate3d(0, -100vh, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate3d(0, 100vh, 0); opacity: 0; }
}

/* --- Snow Flakes --- */
.snow-flake {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5); /* reduced shadow for performance */
  animation: fallSnow linear infinite;
  opacity: 0.8;
  will-change: transform, opacity;
}
@keyframes fallSnow {
  0% { transform: translate3d(0, -10vh, 0); opacity: 0.8; }
  50% { transform: translate3d(20px, 50vh, 0); opacity: 1; }
  100% { transform: translate3d(-20px, 100vh, 0); opacity: 0.2; }
}

/* --- Night Stars --- */
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle linear infinite alternate;
  will-change: transform, opacity, box-shadow;
}
@keyframes twinkle {
  0% { opacity: 0.1; transform: scale(0.8) translateZ(0); box-shadow: none; }
  100% { opacity: 0.8; transform: scale(1.2) translateZ(0); box-shadow: 0 0 4px rgba(255,255,255,0.5); }
}

/* Live Temp UI Header styling */
#live-temp-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  white-space: nowrap;
}

/* =========================================
   ULTRA-LITE MOBILE TINTS (Zero Lag)
   ========================================= */
.mobile-tint {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  transition: opacity 1s;
}
.sun-tint {
  background: radial-gradient(circle at top right, rgba(255, 200, 50, 0.1), transparent 60%);
}
.rain-tint {
  background: linear-gradient(to bottom, rgba(100, 150, 200, 0.1), rgba(50, 100, 150, 0.15));
}
.snow-tint {
  background: linear-gradient(to bottom, rgba(200, 220, 255, 0.1), rgba(255, 255, 255, 0.15));
}
.stars-tint {
  background: linear-gradient(to bottom, rgba(10, 20, 40, 0.3), transparent);
}
