/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Coolvetica", sans-serif;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #333;
}

/* Container */
#app {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* Form */
#search-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#search-form input {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}

#search-form button {
  background: #ffffffaa;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

#search-form button:hover {
  background: #fff;
}

/* Weather Info */
#weather-container {
  animation: fadeIn 0.8s ease forwards;
}

#city-name {
  font-size: 1.5rem;
  font-weight: 600;
}

#temperature {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

#description {
  font-style: italic;
  text-transform: capitalize;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#weather-icon {
  width: 80px;
  height: 80px;
}

/* Error */
#error-message {
  color: #ed738e;
  margin-top: 1rem;
  font-weight: italic;
  font-size: 1.3rem;
  animation: fadeIn 0.8s ease forwards;
}

/* Utilities */
.hidden {
  display: none;
}

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