body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #e6f0ff;
  color: #222;
}

header {
  background-color: #003366;
  padding: 0;
  margin: 0;
  text-align: center;
  border-bottom: 1px solid #004080;
}

main {
  padding: 1rem;
}

#forecast {
  margin-top: 20px;
}

.forecast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forecast-grid .day,
.forecast-scroll .hour {
  scroll-snap-align: start;
  min-width: 140px;
  flex-shrink: 0;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
}

.forecast-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.tap-to-expand {
  font-size: 0.85rem;
  color: #007acc;
  margin-top: 4px;
  text-align: center;
}
.day-details {
  margin-top: 8px;
  background: #f9fcff;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.hour-details {
  margin-top: 6px;
  background: #f9fcff;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.expandable-day.open .day-details {
  display: block;
}

section {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9em;
  color: #777;
}

.summary-box {
  background: #f5faff;
  border-left: 6px solid #3498db;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-box.alert-wet {
  border-left-color: #3498db;
  background: #e8f4ff;
}

.summary-box.alert-dry {
  border-left-color: #2ecc71;
  background: #ebfbee;
}

.summary-box.alert-hot {
  border-left-color: #e67e22;
  background: #fff3e6;
}

.summary-box.alert-severe {
  border-left-color: #e74c3c;
  background: #ffecec;
}

#tone-selector {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 6px;
  display: inline-block;
}

#daily-forecast {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

#daily-forecast .day {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  flex: 1 1 160px;
  max-width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

#daily-forecast .day strong {
  font-size: 16px;
  margin-bottom: 4px;
  display: block;
}

#daily-forecast .day em {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  display: block;
  margin: 6px 0 8px;
}

#daily-forecast .day .details {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

#daily-forecast .day:hover {
  transform: scale(1.03);
}

#summary-24h {
  background: #e9f4ff;
  border-left: 5px solid #007acc;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 10px 0 20px;
  font-weight: 500;
  color: #123;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  font-size: 15px;
}

@media (max-width: 600px) {
  #daily-forecast {
    flex-direction: column;
    align-items: center;
  }

  #daily-forecast .day {
    max-width: 90%;
  }

  #hourly-forecast {
    overflow-x: scroll;
    padding-bottom: 10px;
  }

  .hour {
    min-width: 120px;
    margin-right: 10px;
  }

  #summary-24h,
  #ai-summary {
    font-size: 14px;
  }

  .forecast-scroll {
    scroll-padding-left: 16px;
  }
}

#weather-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: background-image 1s ease;
  pointer-events: none;
}

#forecast-insights {
  margin: 20px 0;
  background: #f7fcff;
  border-left: 5px solid #42a5f5;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

#forecast-insights h2 {
  margin-top: 0;
}

#insight-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

#insight-list li {
  margin-bottom: 6px;
  font-size: 15px;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

#read-forecast {
  font-size: 15px;
  padding: 6px 12px;
  background: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

#site-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #003366;
  color: white;
  padding: 20px;
  flex-wrap: wrap;
}

#header-logo {
  height: 80px;
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

#site-banner h1 {
  margin: 0;
  font-size: 2rem;
}

#location {
  color: #cce6ff;
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#location-controls {
  margin-top: 8px;
  margin-bottom: 8px;
}

#location-controls input {
  padding: 6px;
  border-radius: 4px;
  border: none;
  margin-right: 5px;
}

#location-controls button {
  padding: 6px 10px;
  border-radius: 4px;
  background: #0055aa;
  color: white;
  border: none;
  cursor: pointer;
}

#location-controls button:hover {
  background: #0066cc;
}

@media (max-width: 600px) {
  #site-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .banner-content {
    width: 100%;
  }
}

#main-banner {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === NAVIGATION BAR (below banner) === */
#main-nav {
  background: #002a55;
  margin: 0 auto;
  padding: 12px 0;
  text-align: center;
  max-width: 960px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav li {
  display: inline-block;
  margin: 0 18px;
}

#main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

#main-nav a:hover {
  text-decoration: underline;
}
