/* ========================================
   LOCATION FORECAST PAGE STYLES
   Using CoastWise color scheme from index.html
   ======================================== */

/* Global overflow prevention */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.location-forecast-page {
  min-height: 100vh;
  background-image: url('../images/sea.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFFFFF;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.location-forecast-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 77, 151, 0.8) 0%, rgba(161, 45, 41, 0.8) 100%);
  z-index: -1;
}

/* ========================================
   LOCATION HEADER STYLES
   (Moved to shared location-header.css)
   ======================================== */

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  background-color: #004d97;
  border-top: none;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
  border: 2px solid #f8d447;
  border-radius: 15px;
  font-size: 1.8em;
  font-weight: bold;
  color: #f8d447;
  margin: 0px
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title i {
  font-size: 1.2em;
}

/* ========================================
   LOADING AND ERROR STATES
   ======================================== */

/* Loading state, error state, and loading spinner now defined in base.css */

/* Retry button now defined in base.css */

/* ========================================
   MARINE FORECAST SECTION
   ======================================== */

.marine-forecast-section {
  margin: 20px 0;
}

.marine-forecast-container {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.marine-forecast-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.marine-forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 80px;
}

.marine-forecast-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.marine-time {
  font-size: 0.8em;
  color: #f8d447;
  font-weight: bold;
  margin-bottom: 5px;
}

.marine-wave-height {
  font-size: 0.9em;
  color: #FFFFFF;
  font-weight: bold;
  margin-bottom: 3px;
}

.marine-wave-direction {
  font-size: 0.7em;
  color: #FFFFFF;
  opacity: 0.8;
  margin-bottom: 3px;
}

.marine-sea-temp {
  font-size: 0.8em;
  color: #20c997;
  font-weight: bold;
  margin-bottom: 3px;
}

.marine-current {
  font-size: 0.7em;
  color: #FFFFFF;
  opacity: 0.7;
}

/* ========================================
   HOURLY FORECAST SECTION
   ======================================== */

.hourly-forecast-section {
  margin: 20px 0;
}

.hourly-forecast-container {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.hourly-forecast-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.hourly-forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 80px;
}

.hourly-forecast-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hourly-time {
  font-size: 0.8em;
  color: #f8d447;
  font-weight: bold;
  margin-bottom: 5px;
}

.hourly-icon {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.hourly-temp {
  font-size: 0.9em;
  color: #FFFFFF;
  font-weight: bold;
  margin-bottom: 3px;
}

.hourly-precip {
  font-size: 0.7em;
  color: #20c997;
  opacity: 0.8;
}

/* ========================================
   DAILY FORECAST SECTION
   ======================================== */

.daily-forecast-section {
  margin: 20px 0;
}

.daily-forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.daily-forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 120px;
}

.daily-forecast-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.daily-date {
  font-size: 0.9em;
  color: #f8d447;
  font-weight: bold;
  margin-bottom: 8px;
}

.daily-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.daily-temps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.daily-high {
  font-size: 1em;
  color: #FFFFFF;
  font-weight: bold;
}

.daily-low {
  font-size: 0.9em;
  color: #FFFFFF;
  opacity: 0.7;
}

.daily-precip {
  font-size: 0.8em;
  color: #20c997;
  margin-bottom: 5px;
}

.daily-wind {
  font-size: 0.8em;
  color: #FFFFFF;
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  /* Header styles moved to shared location-header.css */
  
  .section-title {
    font-size: 1.5em;
  }
  
  .marine-forecast-scroll {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .marine-forecast-item {
    padding: 8px 6px;
  }
  
  .marine-time {
    font-size: 0.7em;
  }
  
  .marine-wave-height {
    font-size: 0.8em;
  }
  
  .marine-wave-direction {
    font-size: 0.6em;
  }
  
  .marine-sea-temp {
    font-size: 0.7em;
  }
  
  .marine-current {
    font-size: 0.6em;
  }
  
  .hourly-forecast-scroll {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .hourly-forecast-item {
    padding: 8px 6px;
  }
  
  .hourly-time {
    font-size: 0.7em;
  }
  
  .hourly-icon {
    font-size: 1.2em;
  }
  
  .hourly-temp {
    font-size: 0.8em;
  }
  
  .hourly-precip {
    font-size: 0.6em;
  }
  
  .daily-forecast-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .daily-forecast-item {
    padding: 12px 8px;
  }
  
  .daily-date {
    font-size: 0.8em;
  }
  
  .daily-icon {
    font-size: 1.5em;
  }
  
  .daily-high {
    font-size: 0.9em;
  }
  
  .daily-low {
    font-size: 0.8em;
  }
  
  .daily-precip {
    font-size: 0.7em;
  }
  
  .daily-wind {
    font-size: 0.7em;
  }
}

@media (max-width: 480px) {
  /* Header styles moved to shared location-header.css */
  
  .section-title {
    font-size: 1.3em;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .marine-forecast-scroll {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 6px;
  }
  
  .marine-forecast-item {
    padding: 6px 4px;
  }
  
  .hourly-forecast-scroll {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 6px;
  }
  
  .hourly-forecast-item {
    padding: 6px 4px;
  }
  
  .daily-forecast-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
  }
  
  .daily-forecast-item {
    padding: 10px 6px;
  }
}
