/* ==========================================================================
   Glassmorphic Cards
   ========================================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Divider inside card */
.border-top-divider {
  border-top: 1px solid var(--glass-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.border-bottom-divider {
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

/* ==========================================================================
   Tab 1: Weather Grid Layout
   ========================================================================== */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
}

.weather-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Desktop only (mirrors the max-width:1024 breakpoint that collapses this grid to a
   single column in 13-responsive.css — below that width there is no second column to
   pin, so this rule must not apply there).
   ATIS + METAR/TAF together are almost always taller than the viewport, so the whole
   page had to scroll to reach them — and Windy, sitting in the other column, scrolled
   away with it despite being shorter than the viewport on its own. Bounding the grid to
   the visible height and making ATIS/METAR scroll INSIDE their own column, instead of
   the page scrolling, keeps Windy in view the way `.tab-panel.flex-panel` already keeps
   the Info tab's map in view — reusing that exact height constant for consistency. */
@media (min-width: 1025px) {
  .weather-grid {
    height: calc(100vh - 140px);
    align-items: stretch;
  }

  .weather-col.main-telemetry {
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 159, 10, 0.35) transparent;
  }
  .weather-col.main-telemetry::-webkit-scrollbar { width: 6px; }
  .weather-col.main-telemetry::-webkit-scrollbar-track { background: transparent; }
  .weather-col.main-telemetry::-webkit-scrollbar-thumb {
    background: rgba(255, 159, 10, 0.35);
    border-radius: 3px;
  }

  /* Windy's column: fixed to the grid height, never pushed by its sibling's scroll. */
  .weather-col.report-details {
    height: 100%;
    overflow: hidden;
  }
  .weather-col.report-details .radar-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .weather-col.report-details .wx-map-wrapper {
    flex: 1 1 auto;
    height: auto;
    min-height: 240px;
  }
}

