/* =========================================================
   TheSpaceLaunches · SpaceX Launch hub pages
   Pages : /spacex-launch.html           (completed this year, desc)
           /spacex-launch-upcoming.html  (upcoming this year, asc)
   Scope : page-specific blocks only. Shared visuals (launch
           tabs, launch cards, card grid, pager, badges) come
           from styles/components.css and are NOT redefined here.
   Rules : desktop-first, single narrow breakpoint for phones
           (per 2026-10 PM: pages must adapt to PC and mobile).
           Header / footer bars stay full-bleed; all content is
           capped in a centered 1440px container.
   ========================================================= */

/* ---------- Page shell: full-bleed bg + centered 1440px column ---------- */
.spacex-page {
  min-height: 100vh;
}

.spacex-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

/* ---------- Breadcrumb ---------- */
.spacex-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin: 28px 0 0;
  flex-wrap: wrap;
}
.spacex-page .breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s ease;
}
.spacex-page .breadcrumb a:hover { color: var(--accent-blue); }
.spacex-page .breadcrumb .sep { color: var(--text-3); opacity: .55; }
.spacex-page .breadcrumb [aria-current="page"] {
  color: var(--text-0);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.spacex-hero {
  position: relative;
  padding: 40px 0 30px;
}

.spacex-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}
.spacex-hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent-blue);
}

.spacex-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text-0);
  margin: 0 0 12px;
  background: linear-gradient(135deg, #4cc9ff 0%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spacex-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  max-width: 720px;
  margin: 0;
}

/* ---------- Rocket stats bar (display-only, no filters) ---------- */
.spacex-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 36px;
}

.spacex-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 30px;
  background: var(--glass-bg);
  border: 1px solid rgba(76, 201, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.spacex-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 201, 255, 0.40);
  box-shadow: 0 0 22px rgba(76, 201, 255, 0.12);
}

/* Soft corner glow, mirrors the detail-page hero treatment */
.spacex-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 88% 0%, rgba(76, 201, 255, 0.14), transparent 55%);
  pointer-events: none;
}

.spacex-stat__num {
  position: relative;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-blue);
  text-shadow: 0 0 18px rgba(76, 201, 255, 0.45);
}

.spacex-stat__name {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-0);
}

.spacex-stat__label {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Next SpaceX Launch focus card (upcoming page only) ---------- */
.spacex-next {
  margin: 0 0 36px;
}

.spacex-next__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--glass-bg-strong, rgba(15, 28, 61, 0.8));
  border: 1px solid rgba(76, 201, 255, 0.28);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.spacex-next__card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 201, 255, 0.55);
  box-shadow: 0 10px 32px rgba(76, 201, 255, 0.14);
}

.spacex-next__media {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 138, 61, 0.25), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(76, 201, 255, 0.35), transparent 60%),
    rgba(4, 7, 15, 0.6);
  overflow: hidden;
}

.spacex-next__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spacex-next__media .card__badge {
  top: 16px;
  right: 16px;
}

.spacex-next__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 34px;
}

.spacex-next__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* Static "live" dot; pulse is subtle and decorative only */
.spacex-next__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.8);
}

.spacex-next__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-0);
  margin: 0;
}

.spacex-next__meta {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.spacex-next__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spacex-next__meta-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.spacex-next__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-0);
}

.spacex-next__cta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.spacex-next__card:hover .spacex-next__cta {
  color: var(--text-0);
}

/* ---------- Glossary internal links block ---------- */
.spacex-links {
  margin: 0 0 64px;
  padding: 28px 32px;
  background: var(--glass-bg);
  border: 1px solid rgba(76, 201, 255, 0.14);
  border-radius: var(--radius-md);
}

.spacex-links__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-0);
  margin: 0 0 18px;
}

.spacex-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spacex-links__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  background: rgba(4, 7, 15, 0.4);
  border: 1px solid rgba(76, 201, 255, 0.22);
  border-radius: 8px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.spacex-links__item:hover {
  color: var(--accent-blue);
  border-color: rgba(76, 201, 255, 0.55);
  background: rgba(76, 201, 255, 0.08);
}

/* ---------- Pager spacing (visual reuses components.css .pager) ---------- */
.spacex-page .pager {
  margin: 14px 0 44px;
}

/* =========================================================
   Mobile adaptation (single breakpoint, mirrors news pages)
   ========================================================= */
@media (max-width: 1024px) {
  .spacex-container {
    padding: 0 20px 56px;
  }
  .spacex-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .spacex-stat {
    padding: 20px 22px;
  }
  .spacex-stat__num {
    font-size: 34px;
  }
  .spacex-next__card {
    grid-template-columns: 1fr;
  }
  .spacex-next__media {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .spacex-container {
    padding: 0 16px 48px;
  }
  .spacex-hero {
    padding: 28px 0 20px;
  }
  .spacex-hero__title {
    font-size: 28px;
  }
  .spacex-stats {
    grid-template-columns: 1fr;
  }
  .spacex-next__body {
    padding: 22px 20px;
  }
  .spacex-links {
    padding: 22px 20px;
  }
}
