/* =========================
   WEATHER PAGE
========================= */

.weather-page {
  width: 100%;
  padding-bottom: 4rem;
}

.weather-current-section,
.weather-extra-section,
.weather-hourly-section,
.weather-trends-section,
.weather-forecast-section,
.cycling-insight-section {
  width: min(var(--max-width), 92%);
  margin: 0 auto 4.5rem auto;
}

/* =========================
   CURRENT CONDITIONS
========================= */

.current-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.35rem;
  align-items: start;
}

.current-main-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  box-shadow: 0 10px 24px rgba(26, 150, 50, 0.14);
}

.current-main-top {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.current-temp {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.current-desc {
  color: var(--text-medium);
  font-size: 1rem;
}

.current-high-low {
  display: flex;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 0.8rem;
}

.current-high-low strong {
  color: var(--text-dark);
}

.divider-dot {
  color: var(--border);
}

.current-location {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.current-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================
   DETAIL CARDS
========================= */

.detail-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  border-color: #bff3cf;
}

.detail-label {
  font-size: 0.84rem;
  color: var(--text-medium);
  font-weight: 600;
}

.detail-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.detail-sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

.weather-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.hourly-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.hourly-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.hourly-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.hourly-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.25rem 0.1rem 0.5rem 0.1rem;
  min-width: max-content;
}

.hourly-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow);
  min-width: 90px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hourly-card:hover {
  transform: translateY(-3px);
  border-color: #bff3cf;
}

.hourly-card.hourly-now {
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 20px rgba(26, 150, 50, 0.15);
}

.hourly-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-medium);
}

.hourly-temp {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.hourly-rain {
  font-size: 0.82rem;
  color: #4a9fd4;
  font-weight: 600;
}

.hourly-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* =========================
   WEATHER TRENDS
========================= */

.weather-trends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.trend-panel {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.trend-panel-header {
  margin-bottom: 1rem;
}

.trend-panel-header h3 {
  margin-bottom: 0.25rem;
}

.trend-panel-header p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.chart-placeholder-large {
  min-height: 260px;
  border-radius: 18px;
  border: 1px solid #e2ede5;
  background: linear-gradient(to top, #f4faf6, #fcfefd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
}

/* =========================
   7-DAY FORECAST
========================= */

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.forecast-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.forecast-card:hover {
  transform: translateY(-4px);
  border-color: #bff3cf;
}

.forecast-card.forecast-today {
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 20px rgba(26, 150, 50, 0.15);
}

.forecast-day {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.forecast-temps {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.forecast-high {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.forecast-low {
  font-size: 0.88rem;
  color: var(--text-light);
}

.forecast-desc {
  font-size: 0.8rem;
  color: var(--text-medium);
  min-height: 2em;
  display: flex;
  align-items: center;
}

.forecast-rain-bar {
  width: 100%;
  height: 5px;
  background: #e8f0ea;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.forecast-rain-fill {
  height: 100%;
  background: #4a9fd4;
  border-radius: 999px;
}

.forecast-rain-label {
  font-size: 0.78rem;
  color: #4a9fd4;
  font-weight: 600;
}

/* =========================
   CYCLING INSIGHT
========================= */

.cycling-insight-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 10px 25px rgba(26, 150, 50, 0.15);
}

.cycling-insight-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.cycling-insight-top h3 {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.cycling-insight-top p {
  color: var(--text-medium);
  max-width: 700px;
}

.cycling-insight-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.insight-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.insight-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.2rem;
}

.insight-value {
  font-weight: 800;
  color: var(--text-dark);
}

/* =========================
   ACTION BOX
========================= */

.action-section {
  margin-bottom: 5rem;
}

.action-box {
  background: linear-gradient(135deg, #27973d 0%, #18d528 100%);
  color: var(--white);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 16px 34px #0d551c;
}

.action-box h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.action-box p {
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
  color: rgba(255, 255, 255, 0.92);
}

.action-box .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: none;
}

.action-box .btn-primary:hover {
  background: #eeffee;
}

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

@media (max-width: 1100px) {
  .current-conditions-grid {
    grid-template-columns: 1fr;
  }

  .current-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-trends-grid {
    grid-template-columns: 1fr;
  }

  .forecast-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cycling-insight-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .current-details-grid,
  .weather-extra-grid {
    grid-template-columns: 1fr;
  }

  .forecast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .current-main-top {
    align-items: flex-start;
  }

  .current-temp {
    font-size: 2.5rem;
  }

  .action-box {
    padding: 2.2rem 1.2rem;
  }

  .action-box h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 520px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .hourly-card {
    min-width: 84px;
  }
}