/* WeatherPage.css */
.weather-page {
  padding-top: 40px;
  padding-bottom: 80px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.weather-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 28px;
  padding: 60px;
  margin-bottom: 50px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.weather-hero-card::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.weather-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.weather-hero-city {
  font-size: 56px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -2px;
}

.weather-hero-date {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 500;
  margin: 8px 0 30px;
}

.weather-hero-temp-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.weather-hero-temp {
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.weather-hero-temp-row img {
  width: 140px;
  height: 140px;
}

.weather-hero-desc {
  font-size: 28px;
  font-weight: 700;
  color: #6366f1;
  text-transform: capitalize;
  margin: 10px 0 0;
}

.weather-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.weather-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.weather-stat-box i {
  font-size: 20px;
  color: #6366f1;
}

.stat-text span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-text strong {
  font-size: 20px;
  font-weight: 700;
}

.weather-forecast-section {
  margin-top: 60px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 25px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.forecast-card {
  background: white;
  padding: 30px 20px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.forecast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.forecast-date {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

.forecast-card img {
  width: 64px;
  height: 64px;
  margin: 10px 0;
}

.forecast-temp {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}

.forecast-desc {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: capitalize;
}

.weather-page-loading, .weather-page-error {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.weather-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f1f5f9;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.weather-page-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .weather-hero-main {
    grid-template-columns: 1fr;
  }
  .weather-hero-card {
    padding: 40px;
  }
  .weather-hero-temp {
    font-size: 80px;
  }
  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .weather-hero-city {
    font-size: 32px;
  }
  .weather-hero-temp {
    font-size: 64px;
  }
  .weather-hero-stats {
    grid-template-columns: 1fr;
  }
}
