/* 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;
}

@media (max-width: 600px) {
  .score {
    font-size: 2.2rem;
  }
}

.dual-iframe {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.dual-iframe .iframe-container {
  flex: 1 1 48%;
  min-width: 300px;
}

.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;
}
