/* ================================
   ULTRA-PREMIUM FROSTED GLASS THEME A
   ================================ */

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #4f8ad9, #234f72);
  background-attachment: fixed;
  color: #fff;
}

/* HEADER */
.header {
  text-align: center;
  padding: 30px 20px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.header h1 {
  font-size: 2.7rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* UNIT TOGGLE */
.unit-toggle {
  margin-top: 10px;
  font-size: 1.2rem;
}

.unit-toggle span {
  margin: 0 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s ease;
}

.unit-toggle span:hover {
  opacity: 1;
}

.unit-toggle .active {
  opacity: 1;
  font-weight: bold;
  text-decoration: underline;
}

/* SEARCH SECTION */
.search-section {
  text-align: center;
  margin: 25px auto;
}

#city-input {
  width: 260px;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#search-btn {
  padding: 12px 18px;
  margin-left: 10px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

#search-btn:hover {
  background: rgba(255,255,255,0.35);
}

/* FEATURE SECTIONS */
.popular-section, .recent-section {
  text-align: center;
  margin-top: 35px;
}

.popular-section h2, .recent-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* BUTTON ROWS */
.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.25s ease;
}

.button-row button:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}

/* FORECAST GRID */
.forecast-section {
  padding: 20px;
  margin-top: 40px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px;
  justify-content: center;
}

/* WEATHER CARD */
.card {
  text-align: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.card .weather-ico {
  font-size: 2.7rem;
  margin-bottom: 10px;
}

.card h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.card .temp {
  font-size: 1.4rem;
  margin: 10px 0;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  opacity: 0.7;
}
