/* --- Responsive Styles --- */

/* Max-width: 900px */
@media (max-width: 900px) {
  /* Layout */
  .main-grid {
    flex-direction: column;
  }

  .basin-columns {
    grid-template-columns: 1fr;
  }

  .main-left,
  .main-right {
    width: 100%;
  }

  /* General Card & Container Sizing */
  .container, .main-left, .main-right, .conditions-card,
  .map-card, .sidebar-card, .forecast-card, .hourly-card,
  .discussion-card, .daily-card, .weather-graphics-card {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Conditions Card */
  .weather-left img {
    width: 16vw;
    height: 16vw;
    max-width: 80px;
    max-height: 80px;
    min-width: 40px;
    min-height: 40px;
  }



  /* Daily Card */
  .daily-card {
    flex-direction: column;
    overflow-x: unset;
  }

  .daily-segment {
    flex-direction: row;
    justify-content: space-between;
    min-width: unset;
    padding: 8px 0;
    align-items: center;
  }

  .daily-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px; /* Add space between icon and text */
  }

  .daily-segment .segment-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the left */
    flex-grow: 1;
  }

  .daily-divider {
    width: 100%;
    height: 2px;
    margin: 4px 0;
  }

  /* Weather Graphics */
  .weather-graphic img {
    aspect-ratio: auto;
  }
  
  /* Mobile responsive for radar page */
  .radar-page .main-grid {
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100vh - 180px);
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .radar-page .map-card {
    height: calc(100vh - 200px);
    padding: 5px;
  }
  
  .radar-page #map {
    height: calc(100% - 40px);
    min-height: 350px;
  }
}

/* Max-width: 768px */
@media (max-width: 768px) {
  /* Ticker */
  .weather-ticker {
    height: 40px;
  }
  
  .ticker-content {
    font-size: 14px;
    animation: scroll-ticker 90s linear infinite;
  }

  /* Header & Nav */
  .main-nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-logo {
    flex-shrink: 0;
  }

  /* Hamburger Menu */
  .menu-toggle {
    display: block; /* Show the hamburger button */
  }

  .nav-links {
    display: none; /* Hide the nav links by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #005ea2;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1200;
  }

  .nav-links.active {
    display: flex; /* Show the nav links when menu is active */
  }

  .nav-links a {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  /* Hamburger animation when active */
  .menu-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
  }

  .menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg); /* Move down to center and rotate */
  }

  .menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg); /* Move up to center and rotate */
  }
}

/* Max-width: 480px */
@media (max-width: 480px) {
  .weather-ticker {
    height: 35px;
  }
  
  .ticker-content {
    font-size: 12px;
    animation: scroll-ticker 75s linear infinite;
  }
}