/* === MissionsPanel === */

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

/* Mission list */
.missionList {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.missionItem {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 217, 61, 0.04);
  border: 1px solid rgba(255, 217, 61, 0.1);
  border-radius: 4px;
}

.missionItemReady {
  background: rgba(0, 200, 83, 0.06);
  border-color: rgba(0, 200, 83, 0.2);
}

/* Progress bar */
.progressTrack {
  height: 3px;
  background: rgba(61, 90, 108, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: var(--plasma-cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progressFillReady {
  background: var(--energy-green);
}

/* Mission meta (giver, location) */
.missionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

.metaSep::before {
  content: '\00B7';
  margin-right: 0.3rem;
}

/* Mission dialog (offer/accept/complete text) */
.missionDialog {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(168, 197, 214, 0.7);
  font-style: italic;
  line-height: 1.5;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid rgba(255, 217, 61, 0.2);
  border-radius: 0 3px 3px 0;
  margin: 0.15rem 0;
  white-space: pre-line;
}

/* Objective done state */
.objectiveItemDone {
  opacity: 0.6;
}

/* Expiration */
.expiresIn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  margin-top: 0.15rem;
}

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

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

.missionDifficulty {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--warning-yellow);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.missionReward {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--bio-green);
}

/* Objective list */
.objectiveList {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
}

.objectiveItem {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--chrome-silver);
}

.objectiveDesc {
  color: var(--star-white);
}

.objectiveMeta {
  color: var(--plasma-cyan);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* Objective progress */
.objectiveProgress {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.objectiveComplete {
  display: flex;
  align-items: center;
  color: var(--bio-green);
  flex-shrink: 0;
}

/* Accept / Abandon buttons */
.acceptBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--bio-green);
  border-radius: 4px;
  color: var(--bio-green);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.acceptBtn:hover {
  background: rgba(45, 212, 191, 0.18);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.25);
}

.abandonBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid var(--claw-red);
  border-radius: 4px;
  color: var(--claw-red);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.abandonBtn:hover {
  background: rgba(230, 57, 70, 0.18);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.25);
}

.completeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid var(--energy-green);
  border-radius: 4px;
  color: var(--energy-green);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  margin-top: 0.35rem;
  transition: background 0.15s, box-shadow 0.15s;
}

.completeBtn:hover {
  background: rgba(0, 200, 83, 0.2);
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.25);
}

/* Mission status badge */
.missionStatusBadge {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.missionStatusBadge[data-status='active'] {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.missionStatusBadge[data-status='completable'] {
  color: var(--energy-green);
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.missionStatusBadge[data-status='completed'] {
  color: var(--bio-green);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.15);
}

/* Reward row */
.rewardRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.rewardIcon {
  display: flex;
  align-items: center;
  color: var(--bio-green);
}

.rewardCredits {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--bio-green);
  font-weight: 600;
}

.rewardItems {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
}

/* Completed mission item (clickable) */
.completedMissionItem {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 217, 61, 0.04);
  border: 1px solid rgba(255, 217, 61, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.completedMissionItem:hover {
  background: rgba(255, 217, 61, 0.08);
  border-color: rgba(255, 217, 61, 0.2);
}

/* Mission detail view */
.missionDetail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 217, 61, 0.04);
  border: 1px solid rgba(255, 217, 61, 0.1);
  border-radius: 4px;
}

.missionDetailSection {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 217, 61, 0.08);
}

.missionDetailLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning-yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.completionTime {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

/* Link button (for back navigation etc.) */
.linkBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(61, 90, 108, 0.1);
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--chrome-silver);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Mobile */
/* === Completion Modal === */
.completionOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.completionModal {
  background: linear-gradient(135deg, rgba(5, 12, 8, 0.98) 0%, rgba(10, 25, 18, 0.98) 100%);
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  max-width: 440px;
  width: 90vw;
  box-shadow: 0 0 30px rgba(255, 217, 61, 0.08);
}

.completionHeader {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

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

.completionTitle {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warning-yellow);
}

.completionMissionTitle {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.75rem;
}

.completionDialog {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(168, 197, 214, 0.8);
  line-height: 1.6;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid rgba(255, 217, 61, 0.25);
  border-radius: 0 3px 3px 0;
  margin-bottom: 0.75rem;
  white-space: pre-line;
}

.completionRewards {
  margin-bottom: 1rem;
}

.completionRewardsLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hull-grey);
  margin-bottom: 0.35rem;
}

.completionRewardRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--energy-green);
  margin-bottom: 0.2rem;
}

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

.completionChain {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--warning-yellow);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.completionOk {
  display: block;
  width: 100%;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem;
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: 3px;
  background: rgba(255, 217, 61, 0.08);
  color: var(--warning-yellow);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s;
}

.completionOk:hover {
  background: rgba(255, 217, 61, 0.15);
}

@media (max-width: 768px) {
  .acceptBtn { min-height: 44px; padding: 0.4rem 0.6rem; }
  .abandonBtn { min-height: 44px; padding: 0.4rem 0.6rem; }
  .linkBtn { min-height: 44px; padding: 0.4rem 0.65rem; }
  .missionDifficulty { font-size: 0.68rem; }
  .missionReward { font-size: 0.68rem; }
  .missionDetailLabel { font-size: 0.68rem; }
  .missionStatusBadge { font-size: 0.68rem; }
  .rewardCredits { font-size: 0.68rem; }
  .rewardItems { font-size: 0.68rem; }
  .completionTime { font-size: 0.68rem; }
  .objectiveProgress { font-size: 0.68rem; }
}
