/* ============================================================
   notams.css — Styling for the Hilliard Airpark NOTAM iframe
   Upload to: s3://[your-website-bucket]/css/notams.css
   
   Edit this file to update NOTAM styling without redeploying
   the Lambda function.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0; padding: 16px 20px 28px;
  background: transparent; color: #1a1a2e;
  -webkit-text-size-adjust: 100%;
}

/* ── Header ── */
.notam-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.notam-header svg {
  flex-shrink: 0;
}
h1 {
  margin: 0; font-size: 20px; font-weight: 700; color: #e5e7eb;
  letter-spacing: -0.3px;
}
.subtitle {
  color: #9ca3af; font-size: 12px; margin-bottom: 16px;
  padding-left: 34px;
}

/* ── Section headers ── */
h2 {
  font-size: 15px; font-weight: 600; margin: 20px 0 10px; color: #d1d5db;
  letter-spacing: -0.2px;
}

/* ── Badge ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.badge-active  { background: #dcfce7; color: #166534; }
.badge-future  { background: #fef9c3; color: #854d0e; }
.badge-expired { background: #f3f4f6; color: #9ca3af; }

/* ── Mobile cards (default) ── */
.card-list  { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: #ffffff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(26,26,46,.06), 0 0 0 1px rgba(26,26,46,.04);
  border-left: 4px solid #d1d5db;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 2px 8px rgba(26,26,46,.10), 0 0 0 1px rgba(26,26,46,.06); }
.card.status-active  { border-left-color: #22c55e; }
.card.status-future  { border-left-color: #eab308; background: #fefce8; }
.card.status-expired { border-left-color: #d1d5db; background: #f9fafb; }
.card-header { margin-bottom: 8px; }
.card-text {
  font-size: 13px; line-height: 1.5;
  font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  word-break: break-word; margin-bottom: 8px; color: #1a1a2e;
}
.card.status-expired .card-text { color: #9ca3af; }
.card-notes {
  font-size: 12px; color: #6b7280; margin-bottom: 6px;
  padding: 4px 0; border-top: 1px solid #f3f4f6;
}
.card-dates { font-size: 11px; color: #9ca3af; }
.date-label { font-weight: 600; color: #6b7280; }

/* ── Desktop table (hidden on mobile) ── */
.table-wrap { display: none; }
table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: #fff;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(26,26,46,.06), 0 0 0 1px rgba(26,26,46,.04);
}
th {
  background: #1a1a2e; color: #e5e7eb; padding: 11px 14px;
  text-align: left; font-weight: 600; font-size: 11px;
  letter-spacing: .5px; text-transform: uppercase;
}
td {
  padding: 11px 14px; vertical-align: top;
  border-bottom: 1px solid #f3f4f6; color: #1a1a2e;
}
tr:last-child td { border-bottom: none; }
.status-future  td { background: #fefce8; }
.status-expired td { background: #f9fafb; color: #9ca3af; }
.nowrap { white-space: nowrap; }
td:first-child {
  font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  font-size: 12px;
}

/* ── Map ── */
#obstruction-map { margin-bottom: 18px; }
.map-container {
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  max-width: 480px;
  box-shadow: 0 1px 4px rgba(26,26,46,.06);
}

/* ── Footer ── */
footer {
  margin-top: 24px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12); color: #6b7280; font-size: 11px;
}
footer span { font-weight: 600; color: #9ca3af; }

/* ── Responsive ── */
@media (min-width: 640px) {
  body { padding: 20px 24px 36px; }
  h1 { font-size: 22px; }
  .card-list  { display: none; }
  .table-wrap { display: block; }
}
