/* ── Weather (METAR/TAF) Section ──────────────────────────────────── */

/* Weather Section Container */
.weather-section {
  margin-bottom: 16px;
}

.weather-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.weather-section-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-section-body {
  padding: 0;
}

.expandable-header.expanded ~ .weather-section-body {
  padding: 8px;
}

/* Weather Card */
.weather-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid #64748b;
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

/* METAR / TAF label */
.weather-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Raw METAR/TAF text (monospace, preformatted) */
.weather-raw {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

/* Flight Rules Badge */
.weather-flight-rules {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-fr-VFR {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.weather-fr-MVFR {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.weather-fr-IFR {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.weather-fr-LIFR {
  background: linear-gradient(135deg, #d946ef, #a855f7);
  color: #fff;
}

/* Meta footer (source + timestamp) */
.weather-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 10px;
  color: #475569;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

/* No weather data message */
.weather-no-data {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-no-data i {
  color: #94a3b8;
  font-size: 14px;
}

/* Weather Loading Indicator */
.weather-loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.weather-loading-indicator i {
  color: #7dd3fc;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
  .weather-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-raw {
    font-size: 10px;
    max-height: 150px;
  }

  .weather-meta-footer {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
}
