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

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

.weather-app {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 28px 24px 24px;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  transition: background 1.2s ease;
}

.weather-app.sunny {
  background: linear-gradient(160deg, #f7971e 0%, #ffd200 100%);
  color: #2d1a00;
}

.weather-app.cloudy {
  background: linear-gradient(160deg, #485563 0%, #29323c 100%);
}

.weather-app.rainy {
  background: linear-gradient(160deg, #1a2a3a 0%, #2c3e50 60%, #3b5c78 100%);
}

.weather-app.night {
  background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.weather-app.golden {
  background: linear-gradient(160deg, #f4a93d 0%, #e8652a 40%, #c0392b 100%);
}

header form {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.weather-app.sunny .search-input {
  background: rgba(0, 0, 0, 0.12);
  color: #2d1a00;
}

.weather-app.sunny .search-input::placeholder {
  color: rgba(45, 26, 0, 0.5);
}

.search-button {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.search-button:hover {
  background: rgba(255, 255, 255, 0.38);
}

.current-weather {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.current-city {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.current-date {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.current-description {
  font-size: 15px;
  opacity: 0.85;
  text-transform: capitalize;
  margin-bottom: 14px;
}

.details {
  display: flex;
  gap: 10px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 14px;
}

.detail-label {
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
}

.weather-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.current-icon {
  width: 72px;
  height: 72px;
}

.temperature-block {
  display: flex;
  align-items: flex-start;
}

.current-temperature-value {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

.current-temperature-unit {
  font-size: 22px;
  opacity: 0.7;
  margin-top: 6px;
}

.golden-hour-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.golden-header {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.golden-times {
  display: flex;
  gap: 10px;
}

.golden-slot {
  flex: 1;
  background: rgba(255, 165, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.35);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.golden-slot-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.golden-slot-time {
  font-size: 20px;
  font-weight: 700;
}

.golden-slot-duration {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.photo-tip {
  font-size: 12px;
  opacity: 0.65;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

.forecast {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.forecast-day {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}

.forecast-day-name {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
  font-weight: 500;
}

.forecast-icon {
  width: 36px;
  height: 36px;
}

.forecast-temps {
  font-size: 13px;
  margin-top: 4px;
}

footer {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.45;
  text-align: center;
}

footer a {
  color: inherit;
}