/* === ShipPanel === */

/* Ship overview */
.shipOverview {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 4px;
}

.shipClass {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--star-white);
}

.shipName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  font-style: italic;
}

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

.shipOverviewText {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.overviewStat {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.shipImage {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* Ship description */
.shipDescription {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  line-height: 1.5;
  padding: 0.4rem 0.5rem;
  background: rgba(61, 90, 108, 0.06);
  border-radius: 4px;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
}

/* Ship lore */
.shipLore {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--hull-grey);
  line-height: 1.5;
  padding: 0.4rem 0.5rem;
  font-style: italic;
  border-left: 2px solid rgba(155, 89, 182, 0.2);
}

/* Stats grid */
.statsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.statCard {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* === Module Slot Grid === */
.slotGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.slotColumn {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.slotColumnHeader {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.2);
}

/* Filled slot */
.slotFilled {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.4rem;
  background: rgba(61, 90, 108, 0.1);
  border: 1px solid rgba(61, 90, 108, 0.2);
  border-radius: 4px;
  transition: all 0.15s ease;
}

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

.slotModInfo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

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

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

.slotStat {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.slotWear {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--warning-yellow);
}

.slotActions {
  display: flex;
  gap: 0.2rem;
  justify-content: flex-end;
}

/* Empty slot */
.slotEmpty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px dashed rgba(61, 90, 108, 0.3);
  border-radius: 4px;
  background: transparent;
  transition: all 0.15s ease;
}

.slotClickable {
  cursor: pointer;
}

.slotClickable:hover {
  border-color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.04);
}

.slotEmptyIcon {
  color: rgba(61, 90, 108, 0.3);
}

.slotClickable:hover .slotEmptyIcon {
  color: var(--plasma-cyan);
}

/* Repair module button */
.repairModBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--shell-orange);
  border-radius: 3px;
  color: var(--shell-orange);
  cursor: pointer;
  padding: 0.12rem;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.repairModBtn:hover {
  opacity: 1;
  background: rgba(255, 107, 53, 0.1);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.2);
}

/* Cargo hold */
.cargoList {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cargoItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: rgba(61, 90, 108, 0.08);
  border-radius: 4px;
}

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

.cargoMeta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

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

.cargoNameWrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.cargoSelect {
  flex-shrink: 0;
  accent-color: var(--plasma-cyan);
  cursor: pointer;
}

.cargoDepositAction {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.cargoQtyInput {
  width: 52px;
  min-width: 52px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--dim-grey);
  border-radius: 3px;
  padding: 0.2rem 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--star-white);
  outline: none;
  text-align: right;
}

.cargoQtyInput:focus {
  border-color: var(--plasma-cyan);
}

.cargoBulkRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.1rem 0;
  border-top: 1px solid rgba(61, 90, 108, 0.15);
}

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

/* Module compatibility indicators */
.compatOk {
  display: flex;
  align-items: center;
  color: var(--bio-green);
  flex-shrink: 0;
}

.compatNo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--claw-red);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Install modal extras */
.modalCapacity {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  border-bottom: 1px solid rgba(61, 90, 108, 0.15);
}

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

.installList {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

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

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

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

.installMeta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

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

.installWarning {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--claw-red);
}

/* Mobile */
@media (max-width: 768px) {
  .statsGrid { grid-template-columns: 1fr; }
  .slotGrid { grid-template-columns: 1fr; }
  .cargoItem { padding: 0.55rem 0.6rem; min-height: 44px; }
  .cargoName { font-size: 0.85rem; }
  .repairModBtn { padding: 0.45rem; min-width: 44px; min-height: 44px; }
}
