/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #58a6ff;
}

/* Header */
header {
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
}

.site-header {
  text-align: center;
  padding: 30px 15px 10px;
}

.site-header img {
  max-width: 300px;
  width: 80%;
  height: auto;
  margin: 0 auto 10px;
  display: block;
}

.tagline {
  color: #8b949e;
  font-size: 1.1rem;
  margin-top: 0;
}

/* Navbar */
.navbar {
  background-color: #21262d;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #30363d;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  flex-direction: row;
}

.navbar .menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar .menu li a {
  color: #c9d1d9;
  font-weight: bold;
  padding: 0.5rem;
  transition: color 0.3s;
}

.navbar .menu li a:hover {
  color: #58a6ff;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #58a6ff;
  cursor: pointer;
}

/* Main content */
main {
  padding: 2rem 1rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom, #161b22, #0d1117);
  border: 1px solid #30363d;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

.hero p {
  font-size: 1.2rem;
  color: #8b949e;
  margin-bottom: 1.5rem;
}

/* Button */
.btn {
  display: inline-block;
  background-color: #238636;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #2ea043;
}

/* Updates section */
.update {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.update h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #f0f6fc;
}

/* Footer */
footer {
  background-color: #161b22;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #30363d;
  margin-top: 3rem;
}

footer p {
  color: #8b949e;
}

/* Weather Grid */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  background: #161b22;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #30363d;
}

.current-weather h2 {
  margin-bottom: 1rem;
  color: #f0f6fc;
}

/* Weather Description & Projections */
.icon-large {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.weather-description,
.weather-projection {
  max-width: 800px;
  margin: 1rem auto;
  text-align: center;
  background: #161b22;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #30363d;
}

.weather-description p,
.weather-projection p {
  color: #8b949e;
  margin-bottom: 0.5rem;
}

/* ------------------------------------ */
/* 🔧 Weather Graph Section (Plotly.js) */
/* ------------------------------------ */

.graph-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(680px, 1fr));
  gap: 32px;
  margin-top: 2rem;
}

.graph-card {
  background: #161b22;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #30363d;
}

.graph-card h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #58a6ff;
}

.plotly-graph-div {
  width: 100% !important;
  height: 400px !important;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .tagline {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar .container {
    flex-direction: column;
    align-items: center;
  }

  .navbar .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
  }

  .navbar .menu li {
    width: 100%;
    text-align: center;
  }

  .navbar .menu li a {
    display: block;
    width: 100%;
  }

  .graph-section {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ */
/* 📱 Mobile Sticky Banner Styles */
/* ------------------------------ */

.mobile-banner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #21262d;
  color: #c9d1d9;
  padding: 12px;
  font-size: 0.95em;
  text-align: center;
  z-index: 9999;
  border-top: 1px solid #30363d;
}

.mobile-banner a {
  color: #58a6ff;
  text-decoration: underline;
  margin-left: 5px;
}

.mobile-banner button {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 1.2em;
  margin-left: 12px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .mobile-banner {
    display: block;
  }
}
