/* === Live Feed Component === */
.liveFeedContainer {
  background: var(--deep-void);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.liveFeedHeader {
  background: linear-gradient(90deg, var(--nebula-blue), var(--deep-void));
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hull-grey);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s;
}

.liveFeedHeader:hover {
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.9), var(--deep-void));
}

.closeBtn {
  background: none;
  border: none;
  color: var(--chrome-silver);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.closeBtn:hover {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.1);
}



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

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

.liveDotConnected {
  background: var(--bio-green);
}

.liveText {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--claw-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.liveTextConnected {
  color: var(--bio-green);
}

.liveFeed {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}

.liveFeed::-webkit-scrollbar {
  width: 5px;
}

.liveFeed::-webkit-scrollbar-track {
  background: var(--deep-void);
}

.liveFeed::-webkit-scrollbar-thumb {
  background: var(--hull-grey);
  border-radius: 3px;
}

.liveFeed::-webkit-scrollbar-thumb:hover {
  background: var(--plasma-cyan);
}

.liveEvent {
  --event-color: var(--hull-grey);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: rgba(26, 39, 68, 0.5);
  border-left: 3px solid var(--event-color);
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
}

/* Event type colors (icon + border) */
.liveEventPlayerJoined { --event-color: var(--bio-green); }
.liveEventPlayerDestroyed { --event-color: var(--claw-red); }
.liveEventSystemDiscovered { --event-color: var(--plasma-cyan); }
.liveEventFactionCreated { --event-color: #9b59b6; }
.liveEventTravel { --event-color: var(--chrome-silver); }
.liveEventJump { --event-color: var(--plasma-cyan); }
.liveEventTrade { --event-color: #ffd700; }
.liveEventCraft { --event-color: var(--shell-orange); }
.liveEventSystem { --event-color: var(--hull-grey); }
.liveEventCombat { --event-color: var(--shell-orange); }
.liveEventWeaponFired { --event-color: var(--shell-orange); }
.liveEventBaseConstructed { --event-color: var(--bio-green); }
.liveEventBaseDestroyed { --event-color: var(--claw-red); }
.liveEventRareLoot { --event-color: #ffd700; }
.liveEventServerAnnouncement {
  --event-color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.1);
}
.liveEventConnected { --event-color: var(--bio-green); }
.liveEventTick {
  --event-color: var(--hull-grey);
  opacity: 0.6;
}
.liveEventForumPost { --event-color: var(--laser-blue); }
.liveEventChat { --event-color: var(--laser-blue); }
.liveEventCaptainsLog { --event-color: var(--laser-blue); }
.liveEventMining { --event-color: var(--shell-orange); }
.liveEventPirateDestroyed { --event-color: var(--claw-red); }
.liveEventShipPurchase { --event-color: #ffd700; }
.liveEventShipSale { --event-color: #ffd700; }
.liveEventExchangeFill { --event-color: #ffd700; }
.liveEventFallback { --event-color: var(--hull-grey); }

.eventIcon {
  color: var(--event-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.eventText {
  color: var(--chrome-silver);
  flex: 1;
  line-height: 1.4;
}

.eventTime {
  font-size: 0.6rem;
  color: var(--hull-grey);
  flex-shrink: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
