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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.8s ease-in-out;
}

body.sunny {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

body.cloudy {
  background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

body.rainy {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

body.night {
  background: linear-gradient(135deg, #0f0f23 0%, #2d1b69 100%);
}

.container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 3rem 2.5rem;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 550px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
  color: #2d3436;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.search-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

#cityInput {
  flex: 1;
  padding: 1.2rem 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#cityInput:focus {
  border-color: #4facfe;
  box-shadow: 0 12px 35px rgba(79, 172, 254, 0.3);
  transform: translateY(-2px);
}

#searchBtn {
  padding: 1.2rem 2.5rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#searchBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

#searchBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

.loading {
  font-size: 1.2rem;
  color: #636e72;
  margin: 2rem 0;
}

.weather-info {
  animation: fadeIn 0.5s ease-in;
}

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

.city-name {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.weather-icon img {
  width: 120px;
  height: 120px;
  margin: 1rem 0;
}

.temperature {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.description {
  font-size: 1.5rem;
  color: #636e72;
  text-transform: capitalize;
  margin-bottom: 1rem;
}

.error {
  background: #e74c3c;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

/* Responsivo */
@media (max-width: 600px) {
  .search-section {
    flex-direction: column;
  }

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