/* Background */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  background: url("weather.jpg") no-repeat center center fixed;
  background-size: cover;
}

#bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 40, 0.55);
  z-index: -1;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #002;
}
::-webkit-scrollbar-thumb {
  background: #0af;
  border-radius: 5px;
}

/* Header */
.header {
  text-align: center;
  padding: 10px;
}

.top-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.nav {
  margin-top: 10px;
}

.home-link {
  color: yellow;
  font-weight: bold;
  margin-right: 20px;
  text-decoration: none;
}

.title {
  font-size: 26px;
  font-weight: bold;
  color: #0af;
  text-shadow: 0 0 8px #0ff;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
}

/* Neon Boxes */
.neon-box {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 60, 0.6);
  border: 2px solid #0af;
  box-shadow: 0 0 12px #0ff;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 10px;
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.neon-box > *:not(.particle-canvas) {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  border-radius: 6px;
}

.neon {
  background: #0044ff;
  color: yellow;
  box-shadow: 0 0 10px #00f;
}

.neon-blue {
  background: #0088ff;
  color: #fff;
}

.neon-red {
  background: #ff0033;
  color: #fff;
}

/* Suggestions */
.suggestions {
  display: none;
  background: #001;
  border: 1px solid #0af;
  box-shadow: 0 0 8px #0ff;
  margin-top: 2px;
  position: absolute;
  z-index: 20;
  width: calc(100% - 20px);
}

.suggestion-item {
  padding: 6px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #003;
}

/* Current Weather */
.cw-row {
  display: flex;
  align-items: center;
}

.cw-icon {
  width: 90px;
  margin-right: 15px;
}

.cw-location {
  font-size: 22px;
  font-weight: bold;
  color: yellow;
}

.cw-temp {
  font-size: 40px;
  font-weight: bold;
}

.cw-desc {
  font-size: 18px;
  color: #0ff;
}

.cw-details div {
  margin: 4px 0;
}

/* Hourly */
.hourly-list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
}

.hourly-item {
  min-width: 120px;
  background: rgba(0, 0, 80, 0.6);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #0af;
}

.hourly-time {
  font-weight: bold;
  color: yellow;
}

/* Daily Forecast */
.daily-list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
}

.daily-item {
  min-width: 150px;
  background: rgba(0, 0, 80, 0.6);
  border: 1px solid #0af;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 10px #0ff;
}

.daily-date {
  font-weight: bold;
  color: yellow;
  margin-bottom: 5px;
}

.daily-icon {
  width: 60px;
}

.daily-temp {
  font-size: 18px;
  margin-top: 5px;
  color: #0ff;
}

.daily-desc {
  font-size: 14px;
  margin-top: 5px;
}

/* Daily Graph */
.daily-graph {
  width: 100%;
  height: 200px;
  display: block;
  margin-top: 10px;
}

/* Air Quality */
.aqi-main {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0ff;
}

.aqi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Sun & Moon */
.sunmoon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* UV Card */
.uv-card {
  margin-top: 15px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 40, 0.8);
  box-shadow: 0 0 10px #0ff;
}

.uv-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.uv-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.uv-index {
  font-size: 28px;
  font-weight: bold;
}

.uv-category {
  font-size: 16px;
}

.uv-advice {
  margin-top: 5px;
  font-size: 13px;
}

/* UV Colors */
.uv-low { border: 2px solid #00ff88; box-shadow: 0 0 10px #00ff88; }
.uv-mod { border: 2px solid #ffff66; box-shadow: 0 0 10px #ffff66; }
.uv-high { border: 2px solid #ff9900; box-shadow: 0 0 10px #ff9900; }
.uv-vhigh { border: 2px solid #ff3300; box-shadow: 0 0 10px #ff3300; }
.uv-ext { border: 2px solid #cc00ff; box-shadow: 0 0 10px #cc00ff; }

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup.hidden {
  display: none;
}

.popup-box {
  background: #002;
  padding: 20px;
  border: 2px solid #0af;
  box-shadow: 0 0 12px #0ff;
  border-radius: 10px;
  text-align: center;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #0af;
  text-shadow: 0 0 6px #0ff;
}

.watermark {
  font-size: 14px;
}
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* <-- ADD THIS */
}
.popup-box {
  position: relative;
  z-index: 10000; /* <-- ADD THIS */
  background: #002;
  padding: 20px;
  border: 2px solid #0af;
  box-shadow: 0 0 12px #0ff;
  border-radius: 10px;
  text-align: center;
}
/* FULL-WIDTH BANNER ABOVE COPYRIGHT */
.fullwidth-banner {
  width: 100%;
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.fullwidth-banner img {
  width: 100%;
  max-width: 1200px; /* keeps it elegant on large screens */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(30,144,255,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}

.fullwidth-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(255,212,71,0.9);
}

/* MOBILE FIX */
@media (max-width: 600px) {
  .fullwidth-banner {
    margin: 30px 0 15px;
    padding: 0;
  }

  .fullwidth-banner img {
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(30,144,255,0.5);
  }
}
/* ================================
   BLUE‑IDEA SEARCH ENGINE (DELUXE)
   ================================ */

/* Prevent Chrome zoom */
#bi-search,
#bi-cats div,
#bi-results div {
  font-size: 16px !important;
}

/* Search bar */
#bi-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.4);
  background: rgba(3,12,40,0.95);
  color: #e5f0ff;
  outline: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  margin: 20px auto;
  display: block;
  max-width: 700px;
}

#bi-search:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
  background: #020b2a;
  transform: translateY(-1px);
}

/* Categories bar */
#bi-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto 20px;
  max-width: 700px;
}

.bi-cat {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(30,144,255,0.4);
  color: #e5f0ff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background .2s, box-shadow .2s, transform .15s, border-color .2s;
  user-select: none;
}

.bi-cat:hover {
  background: rgba(30,144,255,0.15);
  box-shadow: 0 0 18px rgba(30,144,255,0.7);
  transform: translateY(-2px);
}

.bi-cat.active {
  background: linear-gradient(135deg, #1e90ff, #00c9ff);
  color: #02101f;
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(255,212,71,0.8);
}

/* Results */
#bi-results {
  max-width: 900px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 10px;
}

#bi-results .bi-item {
  background: radial-gradient(circle at top, #041b3b 0, #020b2a 40%, #020617 100%);
  border: 1px solid rgba(30,144,255,0.35);
  padding: 14px 16px;
  border-radius: 14px;
  color: #e5f0ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#bi-results .bi-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(30,144,255,0.8);
}

/* MOBILE FIXES */
@media (max-width: 600px) {
  #bi-search {
    width: 90%;
    margin: 15px auto;
  }

  #bi-cats {
    gap: 8px;
  }

  .bi-cat {
    padding: 8px 14px;
    font-size: 16px !important;
  }

  #bi-results {
    grid-template-columns: 1fr;
  }
}
/* ================================
   BLUE‑IDEA SEARCH ENGINE (DELUXE)
   ================================ */

/* Prevent Chrome zoom */
#bi-search,
#bi-cats div,
#bi-results div,
#bi-results a {
  font-size: 16px !important;
}

/* Search bar */
#bi-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.4);
  background: rgba(3,12,40,0.95);
  color: #e5f0ff;
  outline: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  margin: 20px auto;
  display: block;
  max-width: 700px;
}

#bi-search:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
  background: #020b2a;
  transform: translateY(-1px);
}

/* Categories bar */
#bi-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto 20px;
  max-width: 700px;
}

.bi-cat {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(30,144,255,0.4);
  color: #e5f0ff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background .2s, box-shadow .2s, transform .15s, border-color .2s;
  user-select: none;
}

.bi-cat:hover {
  background: rgba(30,144,255,0.15);
  box-shadow: 0 0 18px rgba(30,144,255,0.7);
  transform: translateY(-2px);
}

.bi-cat.active {
  background: linear-gradient(135deg, #1e90ff, #00c9ff);
  color: #02101f;
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(255,212,71,0.8);
}

/* Results grid */
#bi-results {
  max-width: 900px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 10px;
}

/* Result item */
#bi-results .bi-item {
  background: radial-gradient(circle at top, #041b3b 0, #020b2a 40%, #020617 100%);
  border: 1px solid rgba(30,144,255,0.35);
  padding: 14px 16px;
  border-radius: 14px;
  color: #e5f0ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#bi-results .bi-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(30,144,255,0.8);
}

#bi-results .bi-item a {
  color: #e5f0ff;
  text-decoration: none;
}

/* MOBILE FIXES */
@media (max-width: 600px) {
  #bi-search {
    width: 90%;
    margin: 15px auto;
  }

  #bi-cats {
    gap: 8px;
  }

  .bi-cat {
    padding: 8px 14px;
    font-size: 16px !important;
  }

  #bi-results {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   SEVERE WEATHER ALERTS
----------------------------------------- */
.alerts {
  border-left: 4px solid #ff4444;
  background: rgba(255, 50, 50, 0.08);
}

.alert-item {
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 0, 0, 0.15);
  border-radius: 6px;
  color: #ffdddd;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* -----------------------------------------
   CLOTHING RECOMMENDATIONS
----------------------------------------- */
.clothing {
  background: rgba(0, 180, 255, 0.08);
}

.clothing-text {
  font-size: 1.1rem;
  color: #aeeaff;
  padding: 10px 0;
  line-height: 1.5;
}

/* -----------------------------------------
   CLOUD BASE HEIGHT
----------------------------------------- */
.cloudbase {
  background: rgba(0, 255, 180, 0.08);
}

.cloudbase-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #9fffe0;
  padding-top: 8px;
}

/* -----------------------------------------
   WIND MAP
----------------------------------------- */
.windmap iframe {
  border: 2px solid #00aaff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

/* -----------------------------------------
   HISTORICAL WEATHER
----------------------------------------- */
.history {
  background: rgba(255, 255, 0, 0.08);
}

.history-date {
  width: 180px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ffaa00;
  background: rgba(255, 200, 0, 0.1);
  color: #ffe9a3;
}

.history-result {
  margin-top: 10px;
  font-size: 1rem;
  color: #fff7c2;
  line-height: 1.5;
}

.history-graph {
  width: 100%;
  height: 180px;
  margin-top: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 150, 0.05);
  border: 1px solid rgba(255, 255, 150, 0.2);
}



