/* === Stations List Page === */

.main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
}

/* === Page Header === */
.pageHeader {
  margin-bottom: 2rem;
}

.pageHeaderTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--plasma-cyan), var(--shell-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pageHeaderSubtitle {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  color: var(--chrome-silver);
  font-size: 0.9rem;
}

.pageHeaderDescription {
  font-size: 0.85rem;
  color: var(--chrome-silver);
  margin-top: 0.5rem;
  opacity: 0.8;
  max-width: 700px;
}

/* === Filter Bar === */
.filterBar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filterBtn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: var(--nebula-blue);
  border: 1px solid var(--hull-grey);
  color: var(--chrome-silver);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filterBtn:hover,
.filterBtnActive {
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
}

.filterBtnActive {
  background: rgba(0, 212, 255, 0.1);
}

.empireDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* === Capital Section === */
.capitalSection {
  margin-bottom: 3rem;
}

.capitalSectionTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--star-white);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capitalSectionSubtitle {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  color: var(--chrome-silver);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.capitalGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.capitalCard {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.8), rgba(13, 19, 33, 0.95));
  border: 1px solid var(--empire-color, var(--hull-grey));
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.capitalCard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(
    ellipse at top center,
    color-mix(in srgb, var(--empire-color, var(--plasma-cyan)) 8%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.capitalCard:hover {
  border-color: var(--empire-color, var(--plasma-cyan));
  box-shadow:
    0 8px 32px color-mix(in srgb, var(--empire-color, var(--plasma-cyan)) 20%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--empire-color, var(--plasma-cyan)) 15%, transparent);
  transform: translateY(-4px);
}

.capitalAccent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--empire-color, var(--hull-grey)),
    color-mix(in srgb, var(--empire-color, var(--hull-grey)) 40%, transparent)
  );
  flex-shrink: 0;
}

.capitalBody {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.capitalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.capitalName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--star-white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.capitalCondition {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.capitalDescription {
  font-size: 0.85rem;
  color: var(--chrome-silver);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.capitalFooter {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--empire-color, var(--plasma-cyan)) 15%, transparent);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.capitalViewLink {
  margin-left: auto;
  color: var(--empire-color, var(--plasma-cyan));
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* === Other Stations Section === */
.otherSectionTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--star-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Station Grid === */
.stationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

/* === Station Card === */
.stationCard {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.6), rgba(13, 19, 33, 0.8));
  border: 1px solid var(--hull-grey);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.stationCard:hover {
  border-color: var(--plasma-cyan);
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.15);
  transform: translateY(-3px);
}

.cardAccent {
  height: 3px;
  background: var(--empire-color, var(--hull-grey));
  flex-shrink: 0;
}

.cardBody {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stationName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--star-white);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.empireBadge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.stationDescription {
  font-size: 0.85rem;
  color: var(--chrome-silver);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* === Card Footer === */
.cardFooter {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.conditionBadge {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cardMeta {
  color: var(--chrome-silver);
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 4rem;
  color: var(--chrome-silver);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
}

/* === Empty State === */
.emptyState {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--chrome-silver);
}

.emptyStateTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--star-white);
}

/* === Responsive === */
@media (max-width: 768px) {
  .main {
    padding: 8rem 1rem 2rem;
  }

  .capitalGrid {
    grid-template-columns: 1fr;
  }

  .stationGrid {
    grid-template-columns: 1fr;
  }

  .pageHeaderTitle {
    font-size: 1.6rem;
  }

  .cardFooter {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
