/* === EventLog Component === */
.container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
  flex-shrink: 0;
}

.headerTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.events {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
}

.events::-webkit-scrollbar {
  width: 4px;
}

.events::-webkit-scrollbar-track {
  background: transparent;
}

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

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

.emptyMessage {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  text-align: center;
  padding: 0.5rem;
}

.event {
  --event-color: var(--chrome-silver);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.2rem 0.35rem;
  border-radius: 3px;
  animation: eventSlideIn 0.2s ease;
  min-height: 22px;
  flex-shrink: 0;
}

.event:hover {
  background: rgba(61, 90, 108, 0.15);
}

.eventIcon {
  color: var(--event-color);
  flex-shrink: 0;
  margin-top: 1px;
}

.eventMessageWrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eventMessage {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--chrome-silver);
  word-break: break-word;
}

.eventMessageClamped {
  max-height: 3.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.eventMessageExpanded {
  /* no clamp */
}

.expandBtn {
  background: none;
  border: none;
  color: var(--plasma-cyan);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.15rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.expandBtn:hover {
  opacity: 1;
}

.eventTime {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--hull-grey);
  flex-shrink: 0;
  min-width: 24px;
  text-align: right;
  margin-top: 1px;
}

/* Event type color variants */
.eventError {
  --event-color: var(--claw-red);
}

.eventCombat {
  --event-color: var(--shell-orange);
}

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

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

.eventTravel {
  --event-color: var(--plasma-cyan);
}

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

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

.eventSystem {
  --event-color: var(--void-purple);
}

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

/* Mobile */
@media (max-width: 768px) {
  .headerTitle { font-size: 0.7rem; }
  .eventCount { font-size: 0.68rem; }
  .eventMessage { font-size: 0.78rem; }
  .eventTime { font-size: 0.65rem; }
  .emptyMessage { font-size: 0.78rem; }
  .event { min-height: 32px; padding: 0.3rem 0.4rem; }
}
