/* === MiningPanel === */

/* Mine button area */
.mineSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 107, 53, 0.04);
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: 6px;
}

.mineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 107, 53, 0.12);
  border: 2px solid var(--shell-orange);
  border-radius: 6px;
  color: var(--shell-orange);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mineBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.1),
    transparent
  );
  transition: left 0.4s ease;
}

.mineBtn:hover:not(:disabled)::before {
  left: 100%;
}

.mineBtn:hover:not(:disabled) {
  background: rgba(255, 107, 53, 0.22);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.mineBtn:active:not(:disabled) {
  background: rgba(255, 107, 53, 0.3);
}

.mineBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

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

/* Cargo section */
.cargoSection {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cargoBar {
  margin-bottom: 0.25rem;
}

.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.1);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.15s ease;
}

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

.cargoLeft {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

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

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

.cargoQty {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--plasma-cyan);
  flex-shrink: 0;
}

.cargoRight {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.useBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--hull-grey);
  cursor: pointer;
  padding: 0.2rem;
  transition: all 0.15s ease;
}

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

.jettisonBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--hull-grey);
  cursor: pointer;
  padding: 0.2rem;
  transition: all 0.15s ease;
}

.jettisonBtn:hover {
  border-color: var(--claw-red);
  color: var(--claw-red);
  background: rgba(230, 57, 70, 0.1);
}

/* Quantity picker modal */
.quantityOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.quantityDialog {
  background: var(--deep-void);
  border: 1px solid var(--hull-grey);
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.quantityTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--star-white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.quantityInputRow {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.quantityInput {
  flex: 1;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--star-white);
  outline: none;
  transition: border-color 0.2s ease;
}

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

.maxBtn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--plasma-cyan);
  border-radius: 4px;
  color: var(--plasma-cyan);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: all 0.2s ease;
}

.maxBtn:hover {
  background: rgba(0, 212, 255, 0.18);
}

.quantityActions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Mobile */
@media (max-width: 768px) {
  .mineBtn { min-height: 44px; padding: 0.75rem 1.5rem; }
  .mineHint { font-size: 0.68rem; }
  .useBtn { min-height: 44px; min-width: 44px; padding: 0.4rem; }
  .jettisonBtn { min-height: 44px; min-width: 44px; padding: 0.4rem; }
  .maxBtn { min-height: 44px; padding: 0.4rem 0.5rem; }
  .quantityInput { font-size: 16px; min-height: 44px; }
}
