@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");

/* ==================== 🌾 BASE STYLE ==================== */
body {
  margin: 0;
  padding: 0;
  background-color: #f7f3e8;
  background-image: url("./paper-2.png");
  background-repeat: repeat;
  background-size: 400px;
  font-family: "IM Fell English", serif;
  color: #111;
  line-height: 1.6;
}

/* ==================== 🏷️ HEADER ==================== */
header {
  text-align: center;
  padding: 35px 16px 0 16px;
}

/* ==================== 🔍 SEARCH FORM ==================== */
form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

input[type="text"] {
  border: none;
  border-bottom: 1px solid #333;
  background: transparent;
  font-family: "IM Fell English", serif;
  font-size: 1.2rem;
  padding: 0.3em 0.5em;
  outline: none;
  width: 220px;
  text-align: center;
}

input[type="text"]::placeholder {
  color: #777;
  font-style: italic;
}

button {
  font-size: 1rem;
  font-family: "IM Fell English", serif;
  padding: 0.4em 1em;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background-color: #444;
}

/* ==================== 🌤️ MAIN DISPLAY ==================== */
.weather-report {
  max-width: 700px;
  margin: 3em auto;
  padding: 0 16px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px 0;
  padding: 0;
}

.header-row h1 {
  font-size: 56px;
  margin: 0;
}

.current-temperature {
  font-size: 72px;
  display: flex;
  align-items: center;
  margin: 0;
}

.material-symbols-outlined {
  font-size: 64px;
  color: #222;
}

.forecast-today {
  font-size: 17.6px;
  text-align: left;
  padding-bottom: 15px;
}

.forecast-today h2 {
  font-size: 22.4px;
}
.forecast-today h2::first-letter {
  float: left;
  font-size: 40px;
  line-height: 1;
  padding-right: 0.3em;
  font-weight: bold;
}

.forecast-today p {
  margin: 0.4em 0;
}

/* ==================== 📜 WEEKLY FORECAST SCROLL TITLE ==================== */
.scroll-title {
  font-size: 32px;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin: 0;
  border-top: 0.5px solid #333;
  padding-top: 25px;
  text-align: center;
  width: 100%;
}

/* ==================== 📆 WEEKLY GRID FORECAST ==================== */
#forecast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid #111;
  border-left: 1px solid #111;
  padding: 0;
  margin: 0;
  list-style: none;
}

.forecast-box {
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  padding: 1em;
  background: transparent;
  text-align: justify;
}

.forecast-box .day-name {
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.4em;
  letter-spacing: 0.05em;
}

.forecast-box .material-symbols-outlined {
  display: block;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.4em;
  color: #000;
}

.forecast-box .forecast-paragraph {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
}

.forecast-box .temp {
  font-size: 0.9rem;
  text-align: center;
  display: block;
  margin-top: 0.5em;
}

/* ==================== 🖋 FOOTER ==================== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 4em;
  padding: 2em 1em;
}

footer a {
  color: #222;
  text-decoration: none;
}

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

/* ==================== 📱 RESPONSIVE ==================== */
@media (max-width: 600px) {
  h1 {
    font-size: 32px;
  }

  .current-temperature {
    font-size: 24px;
  }

  #forecast-list {
    grid-template-columns: 1fr;
  }
}
