/* === Battle Records Page === */

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

.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(--claw-red));
  -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;
}

/* Filters */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.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);
}

.activeCount {
  font-size: 0.7rem;
  background: var(--claw-red);
  color: var(--star-white);
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-weight: 600;
}

/* States */
.loading,
.error,
.empty {
  text-align: center;
  padding: 4rem 2rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  color: var(--chrome-silver);
  font-size: 0.9rem;
}

.error {
  color: var(--claw-red);
}

.emptyHint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.emptyHint a {
  color: var(--plasma-cyan);
  text-decoration: none;
}

/* Battle List */
.battleList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.battleCard {
  background: linear-gradient(135deg, var(--nebula-blue), var(--deep-void));
  border: 1px solid var(--hull-grey);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.battleCard:hover {
  border-color: var(--plasma-cyan);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.battleCardActive {
  border-color: var(--claw-red);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), var(--deep-void));
}

.battleCardActive:hover {
  border-color: var(--claw-red);
  box-shadow: 0 5px 20px rgba(230, 57, 70, 0.2);
}

/* Card Header */
.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cardHeaderLeft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.statusLive {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--claw-red);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.liveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--claw-red);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
}

.statusCompleted {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--hull-grey);
  text-transform: uppercase;
}

.systemName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: var(--star-white);
}

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

/* Sides */
.sides {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sideIndicator {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sideParticipants {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--star-white);
}

.factionTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  margin-right: 0.25rem;
}

.vsLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--hull-grey);
  text-transform: uppercase;
  margin: 0 0.25rem;
}

/* Stats */
.cardStats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(61, 90, 108, 0.3);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.statLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--hull-grey);
  text-transform: uppercase;
}

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

.outcome {
  color: var(--warning-yellow);
}

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

  .cardHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cardStats {
    gap: 1rem;
  }

  .sides {
    flex-direction: column;
    align-items: flex-start;
  }
}
