body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4a5c60, #2c3a3e) fixed;
  transition: background-color 0.8s ease;
}

/* --- HEADER & SEARCH --- */
.app-title {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-top: 30px;
  margin-bottom: 25px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 4px 6px 4px 16px;
  max-width: 360px;
  margin: 0 auto 30px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

#search-input {
  flex: 1;
  background: transparent;
  padding: 10px 0;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#search-btn {
  background: #ffffff;
  color: #2c3e50;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#search-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

#search-btn:active {
  transform: scale(0.95);
}

/* --- WEATHER CONTAINER & CURRENT WEATHER --- */
#weather-container {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 450px;
  box-sizing: border-box;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.current-weather-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
  position: relative;
}

.current-weather-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

#city,
#description,
.temp-block {
  padding-right: 170px;
  box-sizing: border-box;
}

#city {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
}

#description {
  font-size: 18px;
  text-transform: capitalize;
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.7);
}

.temp-block {
  margin-bottom: 15px;
}

#temperature {
  font-size: 72px;
  margin: 0;
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.feels-like-top {
  font-size: 14px;
  margin: 6px 0 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* --- HOURLY FORECAST --- */
#hourly-forecast {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 15px 30px;
  margin: 15px 0 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.hour-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
}

.hour-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hour-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hour-temp {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  margin-top: 5px;
}

/* --- OUTFIT / CLOTHING PANEL --- */
.outfit-container {
  margin-top: 25px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.outfit-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #f7b731;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

#outfit-tip {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* --- FLOATING WEATHER ICON --- */
#weather-icon {
  width: 250px;
  height: 250px;
  display: block;
  margin: 0;
  position: absolute;
  right: -50px;
  top: 20px;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* --- WEATHER DETAILS & SUN TIMES --- */

.weather-details {
  display: flex;
  flex-direction: column;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item span:first-child {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.detail-item span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.uv-bubble {
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: popIn 0.3s ease-out;
}

.sun-times {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* --- LONG TERM FORECAST --- */
#forecast {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.forecast-row:last-child {
  border-bottom: none;
}

.forecast-day {
  font-weight: bold;
  text-transform: capitalize;
}

.forecast-temp {
  font-variant-numeric: tabular-nums;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* --- DYNAMIC WEATHER --- */
body.weather-cloudy {
  background: linear-gradient(135deg, #4a5c60, #2c3a3e) fixed;
}

body.weather-sunny {
  background: linear-gradient(135deg, #1a3c5a, #2a4d6c) fixed;
}

body.weather-rainy {
  background: linear-gradient(135deg, #1b263b, #0d1b2a) fixed;
}

body.weather-snow {
  background: linear-gradient(135deg, #2c3e50, #34495e) fixed;
}

@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hide-rest {
  display: none;
}

@media (max-width: 480px) {
  body {
    padding: 15px 15px;
  }

  #weather-container {
    padding: 25px 20px;
  }

  #weather-icon {
    width: 170px;
    height: 170px;
    right: -10px;
    top: 15px;
  }

  #city,
  #description,
  .temp-block {
    padding-right: 110px;
  }
}