/* ==========================================================================
   VTA6 GTA 6 MISSIONS - EDITORIAL & INTERACTIVE GUIDE STYLES
   Designed for desktop & mobile with dual views:
   - Directory View (Image 1 Mockup)
   - Interactive Split Explorer (Image 2 Mockup)
   ========================================================================== */

/* Main Wrapper */
.missions-page-main {
  padding-bottom: var(--space-12, 80px);
  background-color: #090c12;
  color: var(--color-text, #f0f6fc);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.missions-hero {
  position: relative;
  padding: 56px 0 44px;
  background-image: 
    linear-gradient(180deg, rgba(9, 12, 18, 0.72) 0%, rgba(9, 12, 18, 0.94) 85%, #090c12 100%),
    url('../assets/images/missions/hero_skyline_vice_city.jpg');
  background-size: cover;
  background-position: center 30%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  overflow: hidden;
}

.missions-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255, 90, 0, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.missions-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--padding-x, 24px);
}

.missions-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #8b949e;
  margin-bottom: 18px;
}

.missions-breadcrumbs a {
  color: #8b949e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.missions-breadcrumbs a:hover {
  color: #ff6b00;
}

.missions-breadcrumbs .sep {
  opacity: 0.5;
}

.missions-breadcrumbs .current {
  color: #f0f6fc;
}

.missions-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.missions-title-area {
  flex: 1;
  min-width: 280px;
}

.missions-title {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.missions-title .highlight-orange {
  color: #ff6b00;
  background: linear-gradient(135deg, #ff8533 0%, #ff5a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.missions-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: #c9d1d9;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 16px;
}

/* Progress Stat Bar */
.missions-progress-bar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  color: #c9d1d9;
}

.missions-progress-bar-track {
  width: 110px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.missions-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff8533, #2ea043);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.missions-progress-label {
  font-weight: 600;
  color: #ff8533;
}

/* Search Box in Hero */
.missions-search-wrapper {
  position: relative;
  min-width: 280px;
  max-width: 380px;
  width: 100%;
}

.missions-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  background: rgba(18, 22, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.missions-search-input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.25);
  background: rgba(22, 27, 40, 0.95);
}

.missions-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b949e;
  pointer-events: none;
}

.missions-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 4px;
  display: none;
  border-radius: 50%;
}

.missions-search-clear:hover {
  color: #ffffff;
}

/* Controls Bar (Filter Pills & View Mode) */
.missions-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.missions-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.missions-filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(22, 27, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9d1d9;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.filter-pill:hover {
  background: rgba(35, 42, 58, 0.85);
  border-color: rgba(255, 107, 0, 0.4);
  color: #ffffff;
}

.filter-pill.active {
  background: #ff5a00;
  border-color: #ff5a00;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
}

/* View Mode Switcher */
.missions-view-switcher {
  display: flex;
  background: rgba(18, 22, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.view-btn:hover {
  color: #ffffff;
}

.view-btn.active {
  background: rgba(255, 107, 0, 0.18);
  color: #ff8533;
  border: 1px solid rgba(255, 107, 0, 0.35);
}

/* ==========================================================================
   VIEW 1: DIRECTORY VIEW (Image 1 Mockup)
   ========================================================================== */
.missions-directory-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--padding-x, 24px);
}

.chapter-section {
  margin-bottom: 40px;
}

.chapter-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.chapter-heading .slant-accent {
  color: #ff6b00;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -2px;
  margin-right: 2px;
}

.chapter-missions-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Mission Card in Directory */
.mission-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 26px;
  gap: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mission-card:hover {
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 107, 0, 0.1);
  transform: translateY(-2px);
}

.mission-card.is-completed {
  border-left: 4px solid #2ea043;
}

.mission-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mission-card-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mission-index-number {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: #ff6b00;
  line-height: 1;
  min-width: 44px;
}

.mission-title-group {
  flex: 1;
}

.mission-card-title {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mission-card-title:hover {
  color: #ff8533;
}

.mission-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #8b949e;
  font-weight: 500;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  color: #ff8533;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mission-card-desc {
  font-size: 14.5px;
  color: #c9d1d9;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 16px;
}

/* Card Bottom Strip (Objectives & Tip) */
.mission-card-bottom-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #8b949e;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.45;
}

.strip-item strong {
  color: #e6edf3;
  font-weight: 600;
}

.strip-item.objectives-item svg {
  color: #ff8533;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.strip-item.tip-item svg {
  color: #ffd166;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.strip-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* Card Actions */
.card-actions-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-open-guide, .btn-open-dossier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 90, 0, 0.12);
  border: 1px solid rgba(255, 90, 0, 0.35);
  color: #ff8533;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-guide, .btn-open-dossier:hover {
  background: #ff5a00;
  color: #ffffff;
  border-color: #ff5a00;
}

.btn-toggle-completed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-completed:hover {
  border-color: rgba(46, 160, 67, 0.5);
  color: #2ea043;
}

.btn-toggle-completed.completed {
  background: rgba(46, 160, 67, 0.15);
  border-color: #2ea043;
  color: #2ea043;
}

/* Right Media (Screenshot) */
.mission-card-media {
  width: 250px;
  min-width: 250px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  align-self: center;
}

.mission-card-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.mission-card:hover .mission-card-media img {
  transform: scale(1.05);
}

.mission-card-media .media-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #c9d1d9;
}

/* ==========================================================================
   VIEW 2: INTERACTIVE SPLIT EXPLORER (Image 2 Mockup)
   ========================================================================== */
.missions-explorer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--padding-x, 24px);
  display: none; /* toggled via JS */
}

.missions-explorer-container.active {
  display: block;
}

.explorer-split-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

/* Left Navigator List */
.explorer-sidebar {
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.explorer-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff8533;
}

.sidebar-counter {
  font-size: 12.5px;
  color: #8b949e;
}

.explorer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.explorer-nav-list::-webkit-scrollbar {
  width: 5px;
}

.explorer-nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.explorer-nav-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Item Card (Image 2 Left Column) */
.explorer-nav-card {
  display: flex;
  gap: 12px;
  background: rgba(24, 29, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.explorer-nav-card:hover {
  background: rgba(32, 38, 54, 0.9);
  border-color: rgba(255, 107, 0, 0.4);
}

.explorer-nav-card.active {
  background: rgba(35, 42, 60, 0.95);
  border: 1.5px solid #ff6b00;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.22);
}

.nav-card-thumb {
  width: 84px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0d1117;
}

.nav-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-card-body {
  flex: 1;
  min-width: 0;
}

.nav-card-number {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6b00;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-card-completed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea043;
  display: none;
}

.explorer-nav-card.is-completed .nav-card-completed-dot {
  display: inline-block;
}

.nav-card-title {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.nav-card-meta {
  font-size: 11.5px;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.nav-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-card-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9d1d9;
}

/* Right Detail Pane (Image 2 Right Pane) */
.explorer-detail-pane {
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Cinematic Hero Banner */
.detail-hero-banner {
  position: relative;
  height: 280px;
  width: 100%;
  overflow: hidden;
  background: #0d1117;
}

.detail-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.detail-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.3) 0%, rgba(9, 12, 18, 0.7) 60%, rgba(18, 22, 32, 1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 30px;
}

.detail-hero-breadcrumb {
  font-size: 12.5px;
  color: #8b949e;
  margin-bottom: 10px;
}

.detail-hero-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8533;
  margin-bottom: 4px;
}

.detail-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-hero-title {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.detail-completed-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c9d1d9;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.detail-completed-badge-btn:hover {
  background: rgba(46, 160, 67, 0.2);
  border-color: #2ea043;
  color: #ffffff;
}

.detail-completed-badge-btn.completed {
  background: rgba(46, 160, 67, 0.22);
  border-color: #2ea043;
  color: #3fb950;
}

.detail-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #c9d1d9;
}

.detail-hero-meta .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-hero-meta .meta-pill svg {
  color: #ff8533;
}

/* Detail Navigation Tabs */
.detail-tabs-bar {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 30px;
  background: rgba(14, 18, 26, 0.7);
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-tabs-bar::-webkit-scrollbar {
  display: none;
}

.detail-tab-btn {
  padding: 16px 20px;
  background: none;
  border: none;
  color: #8b949e;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.detail-tab-btn:hover {
  color: #ffffff;
}

.detail-tab-btn.active {
  color: #ff8533;
}

.detail-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff6b00;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Detail Content Panels */
.detail-tab-content {
  padding: 28px 30px;
}

.detail-panel {
  display: none;
}

.detail-panel.active {
  display: block;
}

/* Overview Panel Components */
.detail-overview-text {
  font-size: 15.5px;
  color: #c9d1d9;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Tactical Tip Box (Image 2 Style - Glowing Cyan/Teal border) */
.tactical-tip-box {
  background: rgba(0, 229, 255, 0.035);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), inset 0 0 12px rgba(0, 229, 255, 0.03);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tactical-tip-icon {
  color: #00e5ff;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tactical-tip-content h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tactical-tip-content p {
  font-size: 14px;
  color: #e6edf3;
  line-height: 1.55;
  margin: 0;
}

/* Objectives Section in Overview & Tab 2 */
.detail-section-heading {
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-objectives-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  color: #f0f6fc;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #2ea043;
  background: rgba(46, 160, 67, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3fb950;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.checklist-item.checked {
  color: #8b949e;
  text-decoration: line-through;
}

.checklist-item.checked .checklist-checkbox {
  background: #2ea043;
  color: #ffffff;
}

/* Walkthrough Step Blocks */
.walkthrough-step-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-pill {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff8533;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.step-desc {
  font-size: 14.5px;
  color: #c9d1d9;
  line-height: 1.6;
}

.code-highlight {
  display: inline-block;
  background: #21262d;
  color: #ffd166;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  font-size: 13.5px;
}

/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.reward-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reward-icon {
  font-size: 22px;
  color: #ff8533;
  flex-shrink: 0;
}

.reward-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.reward-detail {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.4;
}

/* Detail Bottom Navigation Footer */
.detail-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 26, 0.85);
  gap: 12px;
}

.btn-detail-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 107, 0, 0.45);
  color: #ff8533;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-detail-nav:hover:not(:disabled) {
  background: #ff5a00;
  color: #ffffff;
  border-color: #ff5a00;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
}

.btn-detail-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #8b949e;
}

/* ==========================================================================
   PAGINATION (Bottom of Directory View - Image 1 Style)
   ========================================================================== */
.missions-pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 107, 0, 0.5);
  background: transparent;
  color: #ff8533;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 107, 0, 0.15);
  color: #ffffff;
  border-color: #ff6b00;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #8b949e;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c9d1d9;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-num:hover {
  border-color: rgba(255, 107, 0, 0.4);
  color: #ffffff;
}

.page-num.active {
  background: #ff5a00;
  border-color: #ff5a00;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.4);
}

/* ==========================================================================
   LIGHTBOX MODAL FOR HIGH-RES SCREENSHOTS
   ========================================================================== */
.screenshot-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.screenshot-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #f0f6fc;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PC & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .explorer-split-layout {
    grid-template-columns: 300px 1fr;
    gap: 16px;
  }
  
  .mission-card-media {
    width: 200px;
    min-width: 200px;
  }
  .mission-card-media img {
    height: 120px;
  }
}

@media (max-width: 860px) {
  /* Switch Directory Cards to stacked on smaller viewports */
  .mission-card {
    flex-direction: column-reverse;
    padding: 20px;
  }
  
  .mission-card-media {
    width: 100%;
    min-width: 100%;
  }
  
  .mission-card-media img {
    height: 200px;
  }
  
  /* Split view fallback to responsive stacking */
  .explorer-split-layout {
    grid-template-columns: 1fr;
  }
  
  .explorer-sidebar {
    position: static;
    max-height: 380px;
  }
  
  .detail-hero-banner {
    height: 220px;
  }
  
  .detail-tab-content {
    padding: 20px;
  }
  
  .detail-tabs-bar {
    padding: 0 16px;
  }
}

@media (max-width: 580px) {
  .missions-hero {
    padding: 36px 0 28px;
  }
  
  .missions-title {
    font-size: 28px;
  }
  
  .missions-search-wrapper {
    max-width: 100%;
  }
  
  .mission-card {
    padding: 16px;
  }
  
  .mission-card-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .strip-divider {
    display: none;
  }
  
  .detail-hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .detail-footer-nav {
    flex-direction: column;
    padding: 16px;
  }
  
  .btn-detail-nav {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   MISSION SCREENSHOT GALLERY & LIGHTBOX MODAL
   ========================================================================== */
.mission-gallery-section {
  margin: 48px 0;
  padding: 30px 24px;
  background: rgba(18, 22, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.gallery-title {
  font-size: 22px;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-count-pill {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 90, 0, 0.15);
  color: #ff8533;
  border: 1px solid rgba(255, 90, 0, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

.mission-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.gallery-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070a;
}

.gallery-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb-wrapper img {
  transform: scale(1.05);
}

.gallery-time-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #58a6ff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(88, 166, 255, 0.3);
  letter-spacing: 0.5px;
  z-index: 2;
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
}

.gallery-info {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-shot-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 4px;
  line-height: 1.3;
}

.gallery-shot-desc {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Step Image In Walkthrough */
.step-image-container {
  margin: 14px 0 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1117;
}

.step-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 12, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-modal.active {
  display: flex;
}

.modal-content-box {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-meta-bar {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 22, 32, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.modal-text-group {
  flex: 1;
  min-width: 240px;
}

.modal-title-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.modal-desc-text {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  background: #ff5a00;
  border-color: #ff5a00;
}

.modal-close-icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-icon-btn:hover {
  background: #ff5a00;
  border-color: #ff5a00;
}

