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

body {
  background: #e8edf5;
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  color: #5b8fd4;
  text-decoration: none;
}

.weather-app {
  background: #ffffff;
  width: 520px;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(80, 110, 160, 0.13);
}

header {
  margin-bottom: 24px;
}

#search-form {
  display: flex;
  align-items: center;
  background: #f2f4f8;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  gap: 8px;
}

#search-form::before {
  content: "🔍";
  font-size: 15px;
  opacity: 0.45;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #3a4a6b;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  padding: 10px 4px;
}

.search-input::placeholder {
  color: #a0aabe;
}

.search-button {
  background: #5b8fd4;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.search-button:hover {
  background: #4478bf;
}

main {
  padding: 4px 0 20px;
}

.current-city {
  font-size: 20px;
  font-weight: 500;
  color: #6b7a99;
  margin-bottom: 2px;
}

.current-details {
  font-size: 13px;
  color: #9aaac2;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
}

.current-details strong {
  color: #9aaac2;
  font-weight: 400;
}

.current-weather {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.current-temperature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #dde8f5;
  border-radius: 14px;
  font-size: 36px;
  flex-shrink: 0;
  color: transparent;
  text-shadow: none;
}

.current-temperature {
  display: flex;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

.current-temperature-value {
  font-size: 60px;
  font-weight: 700;
  color: #2d3a55;
  line-height: 1;
}

.current-temperature-unit {
  font-size: 22px;
  font-weight: 500;
  color: #2d3a55;
  margin-top: 6px;
  position: static;
}

#current-description {
  display: block;
  font-size: 13px;
  color: #9aaac2;
  margin-top: 6px;
}

.stats-row {
  display: flex;
  gap: 1px;
  background: #eef1f7;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
}

.stat-card {
  flex: 1;
  background: #f6f8fc;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-card:not(:last-child) {
  border-right: 1px solid #eef1f7;
}

.stat-icon {
  font-size: 18px;
  color: #7aabdb;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9aaac2;
  text-transform: uppercase;
}

.stat-value {
  font-size: 14px;
  font-weight: 500;
  color: #3a4a6b;
}

footer {
  border-top: 1px solid #f0f2f7;
  text-align: center;
  padding-top: 14px;
  margin-top: 20px;
  font-size: 12px;
  color: #b0bdd4;
}

/* ── Forecast ── */
.forecast-section {
  margin-top: 24px;
  display: none;
}

.forecast-section.visible {
  display: block;
}

.forecast-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9aaac2;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.forecast-row {
  display: flex;
  gap: 1px;
  background: #eef1f7;
  border-radius: 14px;
  overflow: hidden;
}

.forecast-day {
  flex: 1;
  background: #f6f8fc;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.forecast-day:hover {
  background: #eef4fc;
}

.forecast-day:not(:last-child) {
  border-right: 1px solid #eef1f7;
}

.forecast-day-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9aaac2;
  text-transform: uppercase;
}

.forecast-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.forecast-temps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.forecast-high {
  font-size: 14px;
  font-weight: 600;
  color: #2d3a55;
}

.forecast-low {
  font-size: 12px;
  font-weight: 400;
  color: #9aaac2;
}
