/* ==========================================================
   VIRUS QUEST — MISI PENJAGA SEL
   Game Experience & Interactive Simulations Styles
   ========================================================== */

/* Mission Orbital Map (Zone Navigator) */
.mission-map-container {
  padding: 30px 0;
  position: relative;
}

.map-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.map-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 36px;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--emerald), var(--violet), var(--amber));
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--cyan-glow);
  z-index: 1;
}

.zone-node-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  backdrop-filter: var(--backdrop-blur);
  cursor: pointer;
}

.zone-node-card:hover:not(.locked) {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateX(8px);
}

.zone-node-card.locked {
  opacity: 0.55;
  filter: grayscale(0.7);
  cursor: not-allowed;
}

.zone-node-card.active {
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
  background: rgba(16, 32, 70, 0.85);
}

.zone-node-card.completed {
  border-color: rgba(0, 245, 160, 0.4);
}

.zone-orb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #050d22;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.zone-node-card.active .zone-orb {
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), #0077ff);
}

.zone-node-card.completed .zone-orb {
  border-color: var(--emerald);
  color: #050b18;
  background: var(--emerald);
  box-shadow: 0 0 16px var(--emerald-glow);
}

.zone-info {
  flex-grow: 1;
}

.zone-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.zone-title {
  font-size: 1.15rem;
  color: #ffffff;
}

.zone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Discovery Card Flip Component */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.discovery-card-wrapper {
  perspective: 1000px;
  min-height: 240px;
}

.discovery-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.discovery-card.flipped {
  transform: rotateY(180deg);
}

.discovery-front, .discovery-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
}

.discovery-front {
  background: linear-gradient(145deg, rgba(14, 28, 62, 0.9), rgba(8, 16, 38, 0.9));
  box-shadow: var(--shadow-sm);
}

.discovery-front:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.discovery-back {
  background: linear-gradient(145deg, rgba(10, 22, 50, 0.95), rgba(4, 11, 28, 0.95));
  border-color: var(--emerald);
  box-shadow: var(--shadow-emerald);
  transform: rotateY(180deg);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.card-hint {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
}

/* Interactive SVG Anatomy Canvas */
.anatomy-viewport {
  background: radial-gradient(circle at center, rgba(16, 35, 78, 0.5) 0%, rgba(5, 11, 25, 0.9) 70%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.anatomy-svg {
  max-width: 440px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.2));
}

.anatomy-hotspot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.anatomy-hotspot:hover {
  filter: drop-shadow(0 0 10px #00f0ff);
  stroke-width: 3;
}

.anatomy-callout-panel {
  background: rgba(6, 14, 34, 0.95);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  width: 100%;
  max-width: 600px;
  margin-top: 18px;
  box-shadow: var(--shadow-cyan);
  min-height: 90px;
}

/* Drag & Drop Puzzles */
.drag-drop-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.draggable-items-pool {
  background: rgba(9, 18, 42, 0.7);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropzone-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drop-slot {
  background: rgba(12, 23, 52, 0.6);
  border: 2px dashed rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.drop-slot.drag-over {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.draggable-chip {
  background: linear-gradient(135deg, rgba(20, 40, 85, 0.9), rgba(12, 24, 55, 0.9));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 500;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.draggable-chip:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.draggable-chip:active {
  cursor: grabbing;
}

/* 6-Stage Replication Timeline Simulation */
.replication-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}

.replication-stage-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(0, 240, 255, 0.2);
  z-index: 1;
}

.stage-step-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #060d22;
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition);
}

.stage-step-btn.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #050b18;
  box-shadow: 0 0 16px var(--cyan);
}

.stage-step-btn.passed {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #050b18;
}

/* Lytic vs Lysogenic Pathway Switcher */
.pathway-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.pathway-card {
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.pathway-card.lytic:hover, .pathway-card.lytic.selected {
  border-color: var(--coral);
  box-shadow: 0 0 20px var(--coral-glow);
  background: rgba(40, 12, 25, 0.6);
}

.pathway-card.lysogenic:hover, .pathway-card.lysogenic.selected {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
  background: rgba(10, 38, 28, 0.6);
}

/* Decision Matrix Room */
.decision-scenario-box {
  background: rgba(10, 20, 48, 0.85);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px;
  margin-bottom: 24px;
}

.decision-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.decision-option-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.decision-option-item:hover {
  border-color: var(--cyan);
  background: rgba(16, 32, 70, 0.9);
  transform: translateX(4px);
}

.decision-option-item.selected {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: var(--shadow-cyan);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

/* XP Floating Floater Animation */
.xp-floater {
  position: fixed;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  pointer-events: none;
  animation: xpFly 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 3000;
}

@keyframes xpFly {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  25% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

@media (max-width: 768px) {
  .drag-drop-arena, .pathway-selector-grid { grid-template-columns: 1fr; }
  .zone-node-card { padding: 16px; gap: 16px; }
  .zone-orb { width: 42px; height: 42px; font-size: 0.95rem; }
}
