* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, "Segoe UI", "Roboto", sans-serif;
  background: #e1eef5;
  color: #1f2c38;
  line-height: 1.4;
}

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  background: #fef3cf;
  padding: 0.9rem 1.5rem;
  border-radius: 32px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  border: 1px solid #e0cfaa;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  width: 44px;
  height: 44px;
  background: #f5b042;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #2c2b26;
}

.header-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2b5a78;
}

.location-info {
  margin-left: auto;
  background: #d9e6f2;
  padding: 0.4rem 1.1rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #1e3a4d;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.perfect-search {
  width: 100%;
  max-width: 620px;
  display: flex;
  background: white;
  border-radius: 56px;
  border: 1px solid #cad2d9;
  overflow: hidden;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: white;
  font-weight: 500;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aaebf;
  font-size: 1rem;
}

.perfect-search-btn {
  background: #f5b042;
  border: none;
  padding: 0 1.8rem;
  cursor: pointer;
  color: #2d2a23;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.perfect-search-btn:hover {
  background: #e09d32;
}

.geo-btn {
  background: #2c6280;
  border: none;
  color: white;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.geo-btn:hover {
  background: #214e67;
}

.location-badge {
  font-size: 0.8rem;
  background: #eef2f5;
  border-radius: 26px;
  padding: 0.3rem 1rem;
  display: inline-block;
  color: #2f6b47;
}

.current-weather {
  background: #ffffffea;
  border-radius: 32px;
  padding: 1.6rem;
  border: 1px solid #cfded9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.weather-main {
  text-align: center;
}

.temp {
  font-size: 4rem;
  font-weight: 700;
  color: #e07c1f;
}

.unit {
  font-size: 1.8rem;
  font-weight: 500;
  color: #b86b1b;
}

.weather-icon i {
  font-size: 3.8rem;
  color: #f5b042;
  margin: 0.4rem 0;
}

#cityName {
  font-size: 2rem;
  font-weight: 600;
  color: #1f4e6e;
  margin-top: 0.2rem;
}

.description {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4c6573;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-item {
  background: #f3f6f9;
  border-radius: 24px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid #dee4e8;
}

.detail-item i {
  color: #e68a2e;
  font-size: 1.6rem;
  margin-right: 0.4rem;
}

.value {
  font-weight: 700;
  font-size: 1.25rem;
  color: #2c4c66;
  display: block;
  margin-top: 4px;
}

.alert-banner {
  background: #fbefe2;
  border-left: 5px solid #d97706;
  border-radius: 28px;
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: #9b4c0c;
}

.forecast-section {
  margin: 1.8rem 0;
}

.forecast-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f556f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hourly-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.hourly-item {
  background: white;
  border-radius: 28px;
  padding: 0.9rem;
  min-width: 90px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.hourly-icon {
  font-size: 1.9rem;
  margin: 0.4rem 0;
  color: #f3ad44;
}

.daily-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.daily-item {
  background: white;
  border-radius: 28px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e0e9ef;
}

.day-name {
  font-weight: 700;
  color: #bb7b2e;
}

.daily-icon {
  font-size: 2.2rem;
  margin: 0.4rem 0;
  color: #eea539;
}

.daily-temps {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #4d6a7c;
  border-top: 1px solid #cbdbdf;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 32px;
}

button {
  cursor: pointer;
}
