/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #4f8cff 0%, #3358a3 100%);
  font-family: 'Poppins', Arial, sans-serif;
  color: #222c36;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

/* Container styles */
.container {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(10, 29, 66, 0.615);
  padding: 32px 28px 28px 28px;
  width: 100%;
  max-width: 390px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.container:hover {
  box-shadow: 0 12px 40px rgba(80, 120, 200, 0.22);
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #2a3a5a;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

/* Input and button styles */
.input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid #cfd8dc;
  border-radius: 7px;
  background: #f7fafc;
  font-size: 1rem;
  color: #2a3a5a;
  outline: none;
  transition: border 0.2s;
}

input[type="text"]:focus {
  border: 1.5px solid #4f8cff;
  background: #fff;
}

button {
  padding: 12px 18px;
  background: linear-gradient(90deg, #4f8cff 60%, #3358a3 100%);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(80, 120, 200, 0.08);
}

button:hover, button:focus {
  background: linear-gradient(90deg, #3358a3 60%, #4f8cff 100%);
  box-shadow: 0 4px 16px rgba(80, 120, 200, 0.12);
}

.options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.options button {
  padding: 9px 14px;
  font-size: 1.1rem;
  border-radius: 50%;
  background: #f1f5fa;
  color: #4f8cff;
  border: 1px solid #e3e9f5;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}

.options button:hover {
  background: #e3e9f5;
  color: #3358a3;
}

/* Weather card styles */
.card, #weather-info {
  background: linear-gradient(120deg, #e9f0ff 60%, #f7fafc 100%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(80, 120, 200, 0.08);
  padding: 22px 14px 16px 14px;
  margin-top: 18px;
  transition: box-shadow 0.2s;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.weather-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(80, 120, 200, 0.10));
}

#city-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3358a3;
  margin-bottom: 2px;
}

#temperature {
  font-size: 2.3rem;
  font-weight: 700;
  color: #4f8cff;
  margin-bottom: 2px;
}

#description {
  font-size: 1.08rem;
  color: #5c6c87;
  text-transform: capitalize;
  margin-bottom: 3px;
}

.weather-details {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: #35527a;
  font-size: 0.98rem;
}

.weather-details p {
  flex: 1;
  background: #f1f5fa;
  border-radius: 7px;
  margin: 0 2px;
  padding: 8px 5px;
  box-shadow: 0 2px 8px rgba(80, 120, 200, 0.03);
}

#error-message {
  color: #ff3b3b;
  background: #ffecec;
  border-radius: 7px;
  margin-top: 18px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.hidden {
  display: none !important;
}

/* Responsive design */
@media (max-width: 500px) {
  .container {
    padding: 14px 4vw 18px 4vw;
    max-width: 98vw;
  }
  .card, #weather-info {
    padding: 16px 5px 12px 5px;
  }
  .weather-details {
    flex-direction: column;
    gap: 5px;
  }
  .weather-details p {
    margin: 0;
    padding: 7px 2px;
  }
  .weather-main {
    gap: 10px;
  }
  #temperature {
    font-size: 1.7rem;
  }
}

/* Optional: Add smooth transitions */
.card, #weather-info, input, button {
  transition: all 0.18s;
}
