/* Smart Weather Widget Styles */
.weather-widget-full {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  margin: 30px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.6s ease;
  position: relative;
  overflow: hidden;
}

/* COMMON: The animation layer */
.weather-widget-full::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.weather-sunny {
  background: linear-gradient(135deg, #fdd835, #fbc02d);
}

.weather-cloudy {
  background: linear-gradient(135deg, #90a4ae, #78909c);
}

.weather-rainy {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
}

.weather-snowy {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #000;
}

.weather-stormy {
  background: linear-gradient(135deg, #616161, #424242);
}

.weather-foggy {
  background: linear-gradient(135deg, #cfd8dc, #b0bec5);
}

.weather-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.main-temp {
  font-size: 3.2rem;
  font-weight: bold;
}

.main-icon {
  font-size: 3rem;
  margin: 10px 0;
}
.weather-sunny .main-icon {
  animation: sunRotate 12s linear infinite;
}
.weather-rainy .main-icon {
  animation: rainDrop 0.8s ease-in-out infinite alternate;
}
.weather-snowy .main-icon {
  animation: snowFloat 3s ease-in-out infinite;
}

.main-city {
  font-size: 1.5rem;
  font-weight: 600;
}

.main-desc {
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 700;
}

.forecast-bar {display: flex;
  flex-flow: wrap;
  gap: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.forecast-card {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.8rem;
  margin: auto;
  min-width: 15%;
}

.forecast-card div:first-child {
  font-weight: 500;
}

#tempChart {
  width: 100% !important;
  max-height: 180px;
  background: rgb(0 0 0 / 66%);
}

#chart-wrapper {
  margin: 20px 0 10px;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .forecast-card {
    min-width: 32%;
  }
}

/* Keyframes */
@keyframes rain {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes snow {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes fogShimmer {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

@keyframes sunPulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lightningFlash {
  0%, 97%, 100% { opacity: 0; }
  98% { opacity: 0.8; }
  99% { opacity: 0.2; }
}

.weather-cloudy .forecast-card {
  background: rgb(47 93 185);
}

.weather-rainy .forecast-card {
  background: rgb(130 143 150 / 77%);
}

.weather-sunny .forecast-card {
  background: rgb(0 0 0 / 22%);
}

.weather-snowy .forecast-card {
  background: rgb(255 255 255 / 76%);
  color: #000;
}

.weather-stormy .forecast-card {
  background: rgb(47 93 185 / 52%);
}

.weather-foggy .forecast-card {
  background: rgb(0 0 0 / 49%);
}

.weather-cloudy .main-desc, .weather-cloudy .main-city {
  color: #000000;
}
.weather-rainy .main-desc {
  color: #000;
}
.weather-sunny .main-desc {
  color: #fff;
}
.weather-snowy .main-desc {
  color: #fff;
}
.weather-stormy .main-desc {
  color: #fff;
}
.weather-foggy .main-desc {
  color: #fff;
}

