/* src/index.css */

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

body {
  font-family: "Roboto", sans-serif;
  background: #e8f5e9; /* verde muy claro */
  color: #1b5e20; /* verde oscuro */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.weather-app {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  padding: 4rem;
}

.weather-app h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #2e7d32;
  margin-bottom: 1rem;
}

header {
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #81c784; /* verde medio */
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.search-form-input:focus {
  outline: none;
  border-color: #388e3c; /* verde fuerte */
}

.search-form-button {
  background-color: #4caf50;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.search-form-button:hover {
  background-color: #388e3c;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.weather-app-city {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.weather-app-details {
  font-size: 0.95rem;
  color: #4e944f;
}

.weather-app-temperature-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-app-temperature {
  font-size: 3rem;
  font-weight: 700;
  color: #2e7d32;
}

.weather-app-unit {
  font-size: 1.5rem;
  color: #2e7d32;
}

#icon img {
  width: 60px;
  height: 60px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.weather-forecast-day {
  background-color: #a5d6a7; /* verde claro */
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.9rem;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #2e7d32;
  text-align: center;
}

footer a {
  color: #1b5e20;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

footer {
  border-top: 1px solid #f9f7fe;
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}
