/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(to bottom, #1e3c72, #2a5298);
  color: #fff;
  transition: background 0.5s ease;
}

.app {
  max-width: 900px;
  width: 90%;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.brand h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.brand .tagline {
  font-size: 1rem;
  color: #eee;
}

.controls {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.controls input {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 200px;
}

.controls button {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.controls button:hover {
  background-color: rgba(255,255,255,0.4);
}

/* Current weather */
.current-weather {
  background: rgba(0,0,0,0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.current-header {
  text-align: center;
  margin-bottom: 15px;
}

.current-header h2 {
  font-size: 2rem;
}

.current-header p {
  font-size: 1rem;
}

.current-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.current-body img {
  width: 120px;
  height: 120px;
}

.current-info p {
  margin: 5px 0;
  font-size: 1rem;
}

/* Forecast */
.forecast-weather {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.forecast-card {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 15px;
  width: 120px;
  text-align: center;
  transition: transform 0.3s ease;
}

.forecast-card:hover {
  transform: translateY(-5px);
}

.forecast-card img {
  width: 60px;
  height: 60px;
}

.forecast-card p {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8rem;
  color: #ddd;
}

/* Responsive */
@media(max-width: 600px) {
  .current-body {
    flex-direction: column;
  }

  .forecast-card {
    width: 100px;
    padding: 10px;
  }
}
