* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.weather-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.weather-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.weather-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.weather-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.weather-main {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.current-weather {
  display: flex;
  align-items: center;
  gap: 30px;
}

.weather-icon {
  font-size: 6rem;
  color: #f39c12;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weather-info .temperature {
  font-size: 4rem;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 10px;
}

.weather-info .location {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-info .description {
  font-size: 1.5rem;
  color: #34495e;
  text-transform: capitalize;
  font-weight: 500;
}

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

.detail-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-item i {
  font-size: 1.2rem;
  color: #3498db;
  width: 20px;
}

.detail-item span:nth-child(2) {
  flex: 1;
  font-weight: 500;
  color: #2c3e50;
}

.detail-item span:last-child {
  font-weight: 600;
  color: #e74c3c;
}

.forecast-section {
  padding: 40px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.forecast-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.forecast-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.forecast-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.forecast-item .day {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.forecast-item .forecast-icon {
  font-size: 2.5rem;
  color: #f39c12;
  margin: 15px 0;
}

.forecast-item .temp-range {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.forecast-item .high {
  font-weight: 600;
  color: #e74c3c;
}

.forecast-item .low {
  color: #95a5a6;
}

.last-updated {
  padding: 20px 40px;
  background: #ecf0f1;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  text-align: center;
  color: white;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.loading-spinner p {
  font-size: 1.2rem;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .weather-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }

  .current-weather {
    flex-direction: column;
    text-align: center;
  }

  .weather-icon {
    font-size: 4rem;
  }

  .weather-info .temperature {
    font-size: 3rem;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }

  .forecast-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .forecast-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .weather-header {
    padding: 20px;
  }

  .weather-header h1 {
    font-size: 2rem;
  }

  .weather-info .temperature {
    font-size: 2.5rem;
  }
}
