/* ============================================================
   Astra Origins — Featured Banner (new design)
   Shell + section grids. Cards reuse the native section styles
   (space-hub.css / events.css / astrophotography.css), so this
   file only lays out the page, headers, grids and loading states.
   ============================================================ */

.ft-hub { max-width: 1180px; }

/* ── Intro banner ─────────────────────────────────────────── */
.ft-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, oklch(0.22 0.09 265), oklch(0.14 0.05 250));
  padding: 26px 26px;
  margin-bottom: 26px;
}
.ft-banner-stars {
  position: absolute; inset: 0; opacity: 0.7; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 22%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 58%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 34%, white 50%, transparent 51%);
}
.ft-banner-body { position: relative; z-index: 1; max-width: 640px; }
.ft-banner-eye {
  font-size: 10px; letter-spacing: 0.18em; font-weight: 600;
  color: oklch(0.82 0.09 250); margin-bottom: 8px;
}
.ft-banner-title {
  font-size: 24px; line-height: 1.15; font-weight: 800;
  color: white; margin: 0 0 8px;
}
.ft-banner-sub {
  font-size: 13px; line-height: 1.55; margin: 0;
  color: oklch(0.86 0.02 250);
}

/* ── Section ──────────────────────────────────────────────── */
.ft-section { margin-bottom: 30px; }
.ft-section:last-child { margin-bottom: 8px; }

.ft-sec-head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ft-sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-3);
}
.ft-sec-swatch {
  width: 20px; height: 20px; border-radius: 5px;
  display: inline-grid; place-items: center; color: white; font-size: 11px;
}
.ft-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 0;
}
.ft-sec-count {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px;
}

/* ── Grids (one layout per card kind) ─────────────────────── */
.ft-grid {
  display: grid;
  gap: 16px;
}
.ft-grid[data-card="article"] { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ft-grid[data-card="event"]   { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ft-grid[data-card="astro"]   { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Featured cards are keyboard/pointer targets even when they aren't <a>. */
.ft-card { cursor: pointer; }
.ft-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Native masonry tiles float; inside the featured grid they fill the cell. */
.ft-grid[data-card="astro"] .ap-tile { break-inside: unset; margin: 0; width: 100%; }

/* ── Empty / error states ─────────────────────────────────── */
.ft-empty, .ft-fail {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3);
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: 8px; padding: 18px 18px;
}
.ft-empty i, .ft-fail i { font-size: 15px; color: var(--ink-2); }
.ft-retry {
  margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: white;
  background: var(--ink); padding: 6px 12px; border-radius: 6px;
}
.ft-retry:hover { background: var(--accent); }

/* ── Skeletons ────────────────────────────────────────────── */
.ft-sk {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--surface);
}
.ft-sk-cover { height: 118px; width: 100%; }
.ft-sk-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ft-sk-line { height: 9px; border-radius: 4px; }
.ft-sk-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ft-sk-pip { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.ft-sk-glow {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: ftShimmer 1.4s ease infinite;
}
@keyframes ftShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .ft-grid[data-card="article"],
  .ft-grid[data-card="event"],
  .ft-grid[data-card="astro"] { grid-template-columns: 1fr; }
  .ft-banner { padding: 20px 18px; }
  .ft-banner-title { font-size: 20px; }
}
