/* =====================================================
   Stars Hub Page — stars.css
   Classes: .stars-hero, .star-card, .stars-grid,
            .types-grid, .intro-two-col, etc.
   ===================================================== */

/* ---- Hero ---- */
.stars-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(3,5,15,0.55) 0, rgba(3,5,15,0.20) 50%, rgba(3,5,15,0.72) 100%),
    url('/images/stars/tau-ceti-hero.webp') center center / cover no-repeat;
  overflow: hidden;
}
.stars-hero > * { position: relative; z-index: 1; }
.stars-hero .hero-tag {
  font-family: 'Courier New', monospace;
  color: #f4d03f;
  font-size: .80rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.stars-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 1.25rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}
.stars-hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.78;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  color: #f4d03f;
  font-weight: 800;
  display: block;
  font-family: 'Courier New', monospace;
  line-height: 1;
  margin-bottom: .3rem;
  text-shadow: 0 0 20px rgba(244,208,63,0.5);
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

/* ---- Layout ---- */
.stars-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stars-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.stars-section:last-child { border-bottom: none; }
.stars-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.stars-section-label {
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  letter-spacing: 3px;
  color: #f4d03f;
  text-transform: uppercase;
  display: block;
  margin-bottom: .6rem;
}
.stars-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .8rem;
}
.stars-section-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.60);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Star Cards Grid ---- */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.star-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(10,14,36,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.star-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border-color: rgba(244,208,63,0.40);
}
.star-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.star-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,14,36,0.92) 100%);
}
.star-card-body { padding: 1.4rem; }
.star-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .6rem;
}
.star-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}
.card-type-badge {
  background: rgba(244,208,63,0.12);
  border: 1px solid rgba(244,208,63,0.35);
  color: #f4d03f;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .72rem;
  font-family: 'Courier New', monospace;
  letter-spacing: .5px;
}
.card-dist-badge {
  background: rgba(137,196,244,0.10);
  border: 1px solid rgba(137,196,244,0.30);
  color: #89c4f4;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .72rem;
  font-family: 'Courier New', monospace;
  letter-spacing: .5px;
}
.star-card-meta {
  font-size: .80rem;
  color: rgba(255,255,255,0.45);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.star-card-desc {
  font-size: .92rem;
  color: rgba(255,255,255,0.66);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.star-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}
.star-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .70rem;
  font-family: 'Courier New', monospace;
  letter-spacing: .3px;
}
.star-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.card-read-link {
  color: #f4d03f;
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}
.card-spectral {
  font-size: .78rem;
  color: rgba(255,255,255,0.38);
  font-family: 'Courier New', monospace;
}

/* ---- Intro two-col ---- */
.intro-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.intro-two-col p {
  font-size: .97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.82;
  margin: 0;
}

/* ---- Spectral Types Grid ---- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.type-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244,208,63,0.30);
}
.type-letter {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  display: block;
  margin-bottom: .4rem;
  line-height: 1;
}
.type-name {
  font-size: .78rem;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  margin-bottom: .4rem;
}
.type-example {
  font-size: .70rem;
  color: rgba(255,255,255,0.40);
  font-family: 'Courier New', monospace;
  line-height: 1.5;
}

/* Spectral type colours */
.type-o { color: #aab8ff; }
.type-b { color: #cad4ff; }
.type-a { color: #e8eeff; }
.type-f { color: #fff5cc; }
.type-g { color: #f4d03f; }
.type-k { color: #f0a060; }
.type-m { color: #e87050; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .stars-hero h1 { font-size: 2.2rem; }
  .stars-grid { grid-template-columns: 1fr; }
  .intro-two-col { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 480px) {
  .stars-hero { padding: 3rem 1rem 2.5rem; }
  .stars-hero h1 { font-size: 1.7rem; margin-bottom: 1rem; }
  .stars-hero .lead { font-size: .95rem; padding: 0 .25rem; line-height: 1.65; margin-bottom: 1.75rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; max-width: 280px; margin: 0 auto; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: .72rem; letter-spacing: 1.5px; }
  .stars-container { padding: 0 1rem; }
  .stars-section { padding: 2.5rem 0; }
  .stars-section-header { margin-bottom: 2rem; }
  .stars-section-header h2 { font-size: 1.45rem; }
  .stars-section-header p { font-size: .92rem; }
  .stars-grid { grid-template-columns: 1fr; }
  .star-card-image { height: 160px; }
  .card-type-badge, .card-dist-badge { font-size: .65rem; padding: .18rem .5rem; }
  .star-card-body { padding: 1.1rem; }
  .star-card-title { font-size: 1.1rem; }
  .star-card-meta { font-size: .72rem; }
  .star-card-desc { font-size: .88rem; line-height: 1.6; }
  .star-card-footer { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .card-spectral { font-size: .72rem; }
  .intro-two-col { gap: 1.5rem; }
  .intro-two-col p { font-size: .92rem; line-height: 1.72; }
  .types-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .65rem; }
  .type-letter { font-size: 1.5rem; }
  .type-name { font-size: .70rem; }
  .type-example { font-size: .62rem; }
}
