/* ============================================
   Weather Page Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

/* ============================================
   Page Wrapper & Layout
   ============================================ */

.page-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content {
  flex: 1;
  min-width: 0;
}

.content-column {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   Title Section
   ============================================ */

.weather-title-section {
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.weather-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  margin-bottom: 1rem;
}

.weather-title span {
  color: #478ac9;
}

/* ============================================
   Section Headings
   ============================================ */

.section-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 3px solid #478ac9;
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* ============================================
   Period Selector
   ============================================ */

.period-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.period-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.period-option input[type="radio"] {
  cursor: pointer;
  accent-color: #478ac9;
}

.period-option span {
  font-size: 0.95rem;
  font-weight: 500;
}

.period-apply {
  padding: 0.6rem 1.2rem;
  background: #478ac9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 200ms ease;
}

.period-apply:hover {
  background: #2563eb;
}

/* ============================================
   Measurements Section
   ============================================ */

.measurements-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.measurements-section:last-child {
  border-bottom: none;
}

.grafana-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.grafana-graphs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grafana-iframe {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}

/* ============================================
   Timeline Section
   ============================================ */

.timeline-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.weather-timeline__intro {
  text-align: left;
  margin-bottom: 2rem;
}

.weather-timeline__intro h2 {
  border-bottom: 3px solid #478ac9;
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.weather-timeline__intro p {
  color: #555;
  font-size: 0.95rem;
}

.weather-timeline__track {
  margin-top: 2rem;
}

/* ============================================
   Station Setup Information
   ============================================ */

.station-info-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.station-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.station-setup-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  transition: box-shadow 200ms ease;
}

.station-setup-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.station-setup-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0f172a;
}

.station-setup-card--old h3 {
  color: #64748b;
}

.station-setup-card--new h3 {
  color: #2563eb;
}

.station-setup-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.station-setup-card li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #333333;
  position: relative;
  padding-left: 1.5rem;
}

.station-setup-card--old li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.station-setup-card--new li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.station-setup-figure {
  margin: 0;
}

.station-setup-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.station-setup-image-item {
  overflow: hidden;
  border-radius: 12px;
}

.station-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 300ms ease;
}

.station-setup-image-item:hover .station-image {
  transform: scale(1.03);
}

/* ============================================
   Footer
   ============================================ */

.footer-main {
  background: #333333;
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ============================================
   Animation
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .page-wrapper {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .station-setup-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .station-setup-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .period-selector {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .period-option {
    width: 100%;
    justify-content: center;
  }

  .weather-title {
    font-size: 1.6rem;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .station-setup-grid {
    grid-template-columns: 1fr;
  }

  .station-setup-images {
    grid-template-columns: 1fr;
  }

  .grafana-grid {
    gap: 1rem;
  }

  .grafana-graphs {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 0.5rem;
  }

  .content-column {
    max-width: 100%;
  }

  .weather-title {
    font-size: 1.3rem;
  }

  .section-heading {
    font-size: 1.1rem;
  }

  .measurements-section {
    padding: 1rem 0;
  }

  .station-info-section {
    padding: 1rem 0;
  }

  .period-selector {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .station-setup-card {
    padding: 1rem;
  }

  .station-setup-card h3 {
    font-size: 1rem;
  }

  .station-setup-card li {
    font-size: 0.9rem;
  }

  .footer-main {
    padding: 1.5rem 1rem;
  }
}
