/* weather.css */
.weather-container {
  border-radius: 16px;
  padding: 1.5rem;
  color: #f0f4ff;
  transition: 0.3s ease;
}

.weather-container h2 {
  font-family: 'Lemon Milk', sans-serif;
  font-size: 1.5rem;
  color: #1dd1a1;
  text-align: center;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  box-shadow: none;
  position: relative;
  top: -10px;
}

.weather-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.weather-input-section {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.weather-box input {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(50, 50, 70, 0.55);
  color: #f0f4ff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px rgba(125, 95, 255, 0.3);
  transition: all 0.25s ease;
  width: 100%;
}

.weather-box input::placeholder {
  color: #ccc;
}

.weather-box input:focus {
  box-shadow: inset 0 0 0 2px #7d5fff;
}

.weather-box button {
  align-self: flex-end;
  padding: 12px 22px;
  font-family: 'LemonMilk', sans-serif;
  background: linear-gradient(135deg, #506EEC, #7d5fff);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(80, 110, 236, 0.4);
  font-family: 'Lemon Milk', sans-serif;
  color: white !important;
}

.weather-box button:hover {
  background: linear-gradient(135deg, #506EEC, #7d5fff);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(125, 95, 255, 0.3);
  color: white;
}

#weatherResult {
  text-align: center;
  margin-top: 1rem;
}

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.weather-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.weather-icon {
  width: 70px;
  height: 70px;
}

.temp {
  font-size: 2rem;
  font-weight: bold;
  color: #1dd1a1;
}

.desc {
  color: #ffffffcc;
  font-style: italic;
  font-size: 1rem;
}

/* === Forecast Section (Updated to match image style) === */
/* Forecast Flex Scroll Layout */
.forecast-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
  overflow: visible;
}


.forecast-grid::-webkit-scrollbar {
  display: none;
}

.forecast-day {
  width: calc((100% - 4rem) / 5);
  /* 5 cards with 4 gaps of 1rem each */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.forecast-day:hover {
  transform: scale(1.05);
}

.forecast-day h4 {
  margin-bottom: 0.3rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.forecast-day img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.3rem;
}

.forecast-day .temps {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.1rem;
  color: #f0f0f0;
}

.forecast-day .temps span {
  font-size: 0.85rem;
  color: #ffffffb2;
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

.loading {
  text-align: center;
  font-weight: 600;
  color: #aaaaff;
}