* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-box input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.search-box input:focus {
  border-color: #667eea;
  outline: none;
}

.search-box button {
  padding: 12px 30px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.search-box button:hover {
  background: #764ba2;
}

.loading {
  text-align: center;
  color: #667eea;
  font-size: 18px;
  padding: 20px;
}

.weather-box h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.days-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.day-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.day-title {
  font-size: 16px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 8px;
}

.date {
  color: #888;
  font-size: 12px;
  margin-bottom: 15px;
}

.weather-main {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  color: white;
  text-align: center;
}

.temp {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}

.condition {
  font-size: 14px;
}

.weather-details {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.weather-details > div {
  background: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.weather-details .label {
  display: block;
  color: #999;
  font-size: 11px;
  margin-bottom: 4px;
}

.weather-details span:not(.label) {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.error {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #fcc;
}

@media (max-width: 900px) {
  .container {
    padding: 20px;
  }

  .days-container {
    flex-direction: column;
  }

  .day-card {
    max-width: 100%;
  }

  h1 {
    font-size: 22px;
  }

  .temp {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  .days-container {
    flex-direction: column;
  }

  .day-card {
    max-width: 100%;
    min-width: 100%;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .search-box {
    margin-bottom: 20px;
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }

  .weather-main {
    padding: 12px;
  }

  .temp {
    font-size: 24px;
  }

  .condition {
    font-size: 12px;
  }

  .weather-details {
    flex-direction: row;
  }

  .weather-details > div {
    flex: 1;
  }
}
