/* === MarketplaceView === */

.baseName {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.12);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}

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

/* Count label */
.countLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ship listing cards */
.listingsList {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listingCard {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 0.65rem;
  background: rgba(61, 90, 108, 0.08);
  border: 1px solid rgba(61, 90, 108, 0.18);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.listingCard:hover {
  background: rgba(61, 90, 108, 0.14);
  border-color: rgba(61, 90, 108, 0.3);
}

.listingCardOwn {
  composes: listingCard;
  border-color: rgba(155, 89, 182, 0.3);
  background: rgba(155, 89, 182, 0.04);
}

.listingCardOwn:hover {
  border-color: rgba(155, 89, 182, 0.4);
  background: rgba(155, 89, 182, 0.08);
}

.listingTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

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

.listingName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listingClass {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--void-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listingPrice {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning-yellow);
  white-space: nowrap;
  flex-shrink: 0;
}

.listingPriceUnaffordable {
  composes: listingPrice;
  color: var(--claw-red);
  opacity: 0.7;
}

/* Listing stats row */
.listingStatsRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.listingStat {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.listingStatIcon {
  display: flex;
  align-items: center;
  color: var(--hull-grey);
}

.listingStatLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
}

.listingStatValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--plasma-cyan);
  font-weight: 600;
}

/* Seller info */
.listingSeller {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--hull-grey);
}

.listingBadges {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.listingActions {
  display: flex;
  gap: 0.3rem;
  justify-content: flex-end;
}

/* List ship form */
.listForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  background: rgba(155, 89, 182, 0.04);
  border: 1px solid rgba(155, 89, 182, 0.12);
  border-radius: 4px;
}

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

.inputLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Credits bar */
.creditsBar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 217, 61, 0.04);
  border: 1px solid rgba(255, 217, 61, 0.12);
  border-radius: 4px;
}

.creditsIcon {
  display: flex;
  align-items: center;
  color: var(--warning-yellow);
}

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

.creditsValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--warning-yellow);
  font-weight: 600;
  margin-left: auto;
}

/* Sell card */
.sellCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: rgba(61, 90, 108, 0.08);
  border: 1px solid rgba(61, 90, 108, 0.18);
  border-radius: 4px;
}

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

.modalLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--hull-grey);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .listingStatLabel { font-size: 0.68rem; }
  .listingSeller { font-size: 0.68rem; }
  .inputLabel { font-size: 0.68rem; }
}
