/* ==========================================================================
   TECHSUKRAS INTERACTIVE NARRATIVE STORY ENGINE (narrative-story-engine.css)
   Interactive Chapter HUD, Story Sliding Tracks, & Narrative Callouts
   ========================================================================== */

/* 1. Floating Story Progress Timeline HUD (Left Edge) */
.story-timeline-hud {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 30px;
  padding: 18px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.story-timeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.story-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.story-timeline-tooltip {
  position: absolute;
  left: 28px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.story-timeline-step:hover .story-timeline-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.story-timeline-step.active .story-timeline-dot {
  background: var(--neon-cyan);
  border-color: #ffffff;
  box-shadow: 0 0 14px var(--neon-cyan);
  transform: scale(1.4);
}

.story-timeline-step.active {
  color: #ffffff;
}

/* 2. Narrative Section Story Cards & Callouts */
.narrative-story-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(26, 38, 74, 0.9) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 26px;
  padding: 32px 36px;
  margin-bottom: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.12);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.narrative-story-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
}

.narrative-story-content h4 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.narrative-story-content p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* 3. Sliding Story Carousel for Client Projects */
.story-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.story-slider-arrows {
  display: flex;
  gap: 12px;
}

.slider-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slider-arrow-btn:hover {
  background: var(--grad-cyan-blue);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  transform: scale(1.08);
}

.story-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) rgba(15, 23, 42, 0.5);
  padding-bottom: 20px;
}

.story-track-container::-webkit-scrollbar {
  height: 6px;
}

.story-track-container::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 10px;
}

/* 4. Mascot Narrator Speech Bubble in Chapters */
.mascot-narrator-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.mascot-narrator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--neon-cyan);
}

.mascot-narrator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mascot-narrator-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mascot-narrator-text strong {
  color: #ffffff;
}

/* Hide Timeline on mobile to keep clean viewport */
@media (max-width: 1200px) {
  .story-timeline-hud {
    display: none;
  }
}
