/* CSS Reset-ish */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main card */
.container {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  width: min(90%, 400px);
  padding: 28px 22px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
}

/* Typography */
h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

/* Input + button row */
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

input {
  padding: 10px 12px;
  flex: 1;
  border-radius: 10px;
  border: none;
  background: #f0f4ff;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

/* Button */
button {
  padding: 10px 16px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Error text */
.error {
  color: #e74c3c;
  min-height: 20px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Result card */
.card {
  margin-top: 4px;
  padding: 14px 10px;
  background-color: #f5f8ff;
  border-radius: 12px;
  min-height: 50px;
  font-size: 0.95rem;
}

/* Weather details inside card */
.weather-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.weather-line {
  margin: 2px 0;
}

/* Footer */
.footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #777;
}
.weather-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px auto;  /* ← Changed this */
  display: block;
}
.result-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.weather-icon {
  width: 90px;
  height: 90px;
}

/* Weather backgrounds */

.sunny {
  background: linear-gradient(135deg, #fceabb, #f8b500);
}

.cloudy {
  background: linear-gradient(135deg, #d7d2cc, #304352);
}

.rainy {
  background: linear-gradient(135deg, #4b79a1, #283e51);
}

.snowy {
  background: linear-gradient(135deg, #e6dada, #274046);
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Forecast cards */

.forecast-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.forecast-card:hover {
  transform: translateY(-3px);
}

.forecast-card img {
  width: 40px;
}