/* ==========================================================================
   GLOBAL ODYSSEY: SCENARIO QUESTS STYLESHEET
   Story-Driven Multi-Disciplinary Adventures (Geography + Science + Math + History)
   ========================================================================== */

#view-odyssey-hub {
  padding: 24px 20px 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hub Header */
.odyssey-header {
  text-align: center;
  margin-bottom: 28px;
}

.odyssey-hub-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.odyssey-hub-sub {
  font-size: 15px;
  font-weight: 400;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Quests Grid */
.odyssey-quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.odyssey-quest-card {
  background: #111a2e;
  border: 1px solid #243147;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.odyssey-quest-card:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.quest-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quest-card-icon {
  font-size: 32px;
}

.quest-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-available {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.quest-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.5px;
}

.quest-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.quest-card-sub {
  font-size: 13px;
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.45;
}

.quest-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

.quest-card-reward {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

.quest-start-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quest-start-btn:hover {
  background: #1d4ed8;
  transform: scale(1.03);
}

/* ==========================================================================
   SCENARIO MODAL / ADVENTURE RUNNER
   ========================================================================== */
.odyssey-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 24, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.odyssey-modal-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.odyssey-modal-header {
  padding: 16px 22px;
  background: #172033;
  border-bottom: 1px solid #243147;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.odyssey-step-badge {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.odyssey-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
}

.odyssey-close-btn:hover {
  color: #ffffff;
}

.odyssey-modal-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Story Narrative Box */
.odyssey-narrative-card {
  background: #131d38;
  border: 1px solid #1e293b;
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.odyssey-hero-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.odyssey-narrative-text {
  font-size: 14px;
  font-weight: 400;
  color: #e2e8f0;
  line-height: 1.55;
}

/* Location Header Tag */
.odyssey-location-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Dilemma & Question Card */
.odyssey-question-card {
  background: #111a2e;
  border: 1px solid #243147;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.odyssey-dilemma-title {
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.odyssey-question-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

/* Options Grid */
.odyssey-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.odyssey-opt-btn {
  background: #172033;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.odyssey-opt-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  background: #1e2a42;
}

.odyssey-opt-btn.correct {
  background: #14532d !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}

.odyssey-opt-btn.wrong {
  background: #7f1d1d !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

/* Inventory Backpack Bar */
.odyssey-inventory-bar {
  background: #080c1a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.odyssey-inventory-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  flex-shrink: 0;
}

.odyssey-item-pill {
  background: #1e293b;
  border: 1px solid #3b82f6;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Modal Footer */
.odyssey-modal-footer {
  padding: 14px 22px;
  background: #172033;
  border-top: 1px solid #243147;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.odyssey-next-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
}

.odyssey-next-btn:hover {
  background: #1d4ed8;
}
