/* Reset and base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.5;
}

header {
  background: linear-gradient(to right, #0f2027, #203a43);
  color: white;
  padding: 2rem;
  text-align: center;
}

.score {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
}

.webcam iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

section {
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 900px;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

h1, h2, h3, h4 {
  text-align: center;
  margin-top: 0;
  color: #90caf9;
}

.day-button.selected-day {
  background-color: #0d47a1;
  font-weight: bold;
}

#forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.forecast-hour {
  background: #2a2a2a;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #e0e0e0;
}

/* Forecast container */
.hourly-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

/* Each hour's data block */
.hour-block {
  flex: 0 0 auto;
  min-width: 80px;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  font-size: 0.9em;
  color: #e0e0e0;
}

#day-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1em auto;
  max-width: 100%;
}

/* Day selector */
.day-selector {
  justify-content: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 0;
  margin-bottom: 10px;
}

.day-button {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 100px;
  text-align: center;
}

.day-button:hover {
  background-color: #1976d2;
}

@media (max-width: 600px) {
  .hour-block {
    min-width: 70px;
    font-size: 0.8em;
  }
  .day-button {
    font-size: 0.8em;
    padding: 5px 10px;
  }

  header {
    padding: 1rem;
  }

  h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  h4 {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;
    padding: 0.2rem;
  }

  section.card {
    padding: 0.8rem;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
}

footer .site-credit {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.9rem;
  color: #aaa;
}

footer .site-credit a,
footer .data-attribution a {
  color: #c9a45c;
  text-decoration: none;
}

footer .site-credit a:hover,
footer .data-attribution a:hover {
  text-decoration: underline;
}

footer .data-attribution {
  margin: 0 auto 0.5rem;
  max-width: 42rem;
  line-height: 1.4;
  font-size: 0.75rem;
  color: #777;
}

.chart-note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #888;
  text-align: left;
}

@media (max-width: 600px) {
  .score {
    font-size: 2.2rem;
  }
}

section.media-board {
  max-width: 1120px;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cam-tile {
  background: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
}

.cam-tile-title {
  font-size: 1rem;
  text-align: left;
  margin: 0;
  padding: 0.85rem 0.9rem 0.4rem;
  color: #90caf9;
}

.cam-tile-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #90caf9;
}

.cam-tile-player {
  position: relative;
}

.cam-tile-player iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  background: #000;
}

.cam-tile-placeholder {
  width: 100%;
  height: 240px;
  background: #0d0d0d;
}

.cam-tile-club-body {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.map-heading {
  margin-top: 1.75rem;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 8px;
}

.nearby-cams {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

.nearby-cam-link {
  color: #90caf9;
}

a.cam-button,
a.youtube-fallback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

a.cam-button-youtube,
a.youtube-fallback-button {
  background: #e62117;
}

a.cam-button-youtube:hover,
a.youtube-fallback-button:hover,
a.cam-button-youtube:visited,
a.youtube-fallback-button:visited {
  background: #c21b12;
  color: #ffffff !important;
}

a.cam-button-club {
  background: #0277bd;
}

a.cam-button-club:hover,
a.cam-button-club:visited {
  background: #01579b;
  color: #ffffff !important;
}

.youtube-fallback {
  position: relative;
  min-height: 240px;
  border-radius: 0;
  overflow: hidden;
  background: #111;
}

.youtube-fallback img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(0.4);
}

.youtube-fallback-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: #fff;
}

.youtube-fallback-copy p {
  margin: 0;
}

.youtube-fallback-note {
  font-size: 0.85rem;
  color: #ddd;
  margin: 0;
}

.whatsapp-button {
  display: inline-block;
  padding: 14px 24px;
  background-color: #128c7e; /* WhatsApp brand green */
  color: white;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid #0b5e4a;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
  background-color: #0b5e4a;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

section.whatsapp-cta {
  background-color: #e0f7ef;
  border-left: 6px solid #25d366;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-share-buttons a {
  display: inline-block;
  margin: 0 8px;
  text-decoration: none;
  font-weight: bold;
  color: #90caf9;
  transition: opacity 0.3s ease;
}
.social-share-buttons a:hover {
  opacity: 0.8;
}
