/* === CombatPanel === */

.headerRight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combatBadge {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--claw-red);
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: combatPulse 1.5s ease-in-out infinite;
}

@keyframes combatPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Controls row */
.controlsRow {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Nearby players list */
.playerList {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.playerCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  background: rgba(61, 90, 108, 0.1);
  border: 1px solid rgba(61, 90, 108, 0.2);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.playerCard:hover {
  background: rgba(61, 90, 108, 0.18);
  border-color: rgba(61, 90, 108, 0.35);
}

.playerInfo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

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

.playerName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clanTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--void-purple);
  background: rgba(155, 89, 182, 0.12);
  border-radius: 2px;
  padding: 0.05rem 0.3rem;
  flex-shrink: 0;
}

.npcTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--warning-yellow);
  background: rgba(255, 217, 61, 0.12);
  border-radius: 2px;
  padding: 0.05rem 0.3rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.anonymousName {
  font-style: italic;
  color: var(--hull-grey);
}

.playerActions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.iconBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  color: var(--chrome-silver);
  cursor: pointer;
  padding: 0.3rem;
  transition: all 0.2s ease;
}

.iconBtn:hover {
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.attackBtn {
  composes: iconBtn;
}

.attackBtn:hover {
  border-color: var(--claw-red);
  color: var(--claw-red);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.25);
}

.scanBtn {
  composes: iconBtn;
}

/* Cloak toggle */
.cloakBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(155, 89, 182, 0.08);
  border: 1px solid var(--void-purple);
  border-radius: 4px;
  color: var(--void-purple);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  transition: all 0.2s ease;
}

.cloakBtn:hover {
  background: rgba(155, 89, 182, 0.18);
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.25);
}

.cloakActive {
  background: rgba(155, 89, 182, 0.2);
  border-color: var(--void-purple);
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.3);
}

/* Self-destruct */
.selfDestructBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid var(--claw-red);
  border-radius: 4px;
  color: var(--claw-red);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  transition: all 0.2s ease;
}

.selfDestructBtn:hover {
  background: rgba(230, 57, 70, 0.2);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.35);
}

/* === Battle Status Section === */
.battleSection {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(230, 57, 70, 0.04);
  border: 1px solid rgba(230, 57, 70, 0.15);
  border-radius: 4px;
}

.battleInfo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Sides */
.sidesRow {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sideCard {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem;
  background: rgba(61, 90, 108, 0.1);
  border: 1px solid rgba(61, 90, 108, 0.2);
  border-radius: 4px;
}

.sideName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Participants */
.participantList {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.participantCard {
  padding: 0.35rem 0.5rem;
  background: rgba(10, 14, 23, 0.4);
  border: 1px solid rgba(61, 90, 108, 0.15);
  border-radius: 4px;
}

.participantHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

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

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

/* Health bars */
.barGroup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

.barLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hull-grey);
  width: 1.8rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.barTrack {
  flex: 1;
  height: 4px;
  background: rgba(61, 90, 108, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.barFillShield {
  height: 100%;
  background: var(--plasma-cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.barFillHull {
  height: 100%;
  background: var(--claw-red);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.barValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  width: 2rem;
  text-align: right;
  flex-shrink: 0;
}

/* === Tactical Controls === */
.tacticalSection {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.stanceRow {
  display: flex;
  gap: 0.25rem;
}

.stanceBtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  color: var(--plasma-cyan);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  transition: all 0.2s ease;
}

.stanceBtn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.tacticalRow {
  display: flex;
  gap: 0.25rem;
}

.tacticalBtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(61, 90, 108, 0.08);
  border: 1px solid rgba(61, 90, 108, 0.3);
  border-radius: 4px;
  color: var(--chrome-silver);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  transition: all 0.2s ease;
}

.tacticalBtn:hover {
  background: rgba(61, 90, 108, 0.2);
  border-color: var(--chrome-silver);
  box-shadow: 0 0 8px rgba(61, 90, 108, 0.2);
}

.engageBtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: 4px;
  color: var(--claw-red);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  transition: all 0.2s ease;
}

.engageBtn:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--claw-red);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.3);
}

/* === Reload Section === */
.reloadList {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reloadCard {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  background: rgba(61, 90, 108, 0.1);
  border: 1px solid rgba(61, 90, 108, 0.2);
  border-radius: 4px;
}

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

.reloadControls {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.reloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  color: var(--plasma-cyan);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.reloadBtn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.reloadBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
  .combatBadge { font-size: 0.68rem; }
  .iconBtn { padding: 0.5rem; min-width: 44px; min-height: 44px; }
  .cloakBtn { font-size: 0.75rem; padding: 0.5rem 0.75rem; min-height: 44px; }
  .selfDestructBtn { font-size: 0.75rem; padding: 0.5rem 0.75rem; min-height: 44px; }
  .playerCard { padding: 0.55rem 0.65rem; min-height: 44px; }
  .playerName { font-size: 0.85rem; }
  .playerShip { font-size: 0.68rem; }
  .stanceBtn { font-size: 0.68rem; padding: 0.45rem 0.5rem; min-height: 44px; }
  .tacticalBtn { font-size: 0.68rem; padding: 0.45rem 0.5rem; min-height: 44px; }
  .engageBtn { font-size: 0.68rem; padding: 0.45rem 0.5rem; min-height: 44px; }
  .reloadBtn { font-size: 0.68rem; padding: 0.4rem 0.6rem; min-height: 44px; }
}
