/* ================================================================
MFB-RDM — Miss Fish Bali Digital Projects Roadmap
CSS3 · Desktop Snake/Winding Roadmap & Mobile Vertical Timeline
IT Department · Miss Fish Bali
Version   : 1.5.0
Generated : 23 September 2026, 11:28:00
================================================================ */

/* ── ROADMAP CONTAINER ── */
.roadmap-container {
  width: 100%;
  position: relative;
  min-height: 400px;
}

/* Loading skeleton state */
.roadmap-skeleton {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skeleton-card {
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border: 1px solid var(--border);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── DESKTOP SNAKE / WINDING ROADMAP (>= 1200px) ── */
.roadmap-snake {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 28px;
  width: 100%;
  position: relative;
  padding: 32px 50px;
}

/* Dynamic SVG overlay connecting all cards in continuous serpentine flow */
.snake-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Glow path layer */
.snake-path-glow {
  stroke: var(--brass-glow, rgba(201, 168, 76, 0.22));
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Base solid connecting line */
.snake-path-base {
  stroke: var(--border, #284461);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Animated flowing golden stream */
.snake-path-flow {
  stroke: var(--brass, #C9A84C);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 10 7;
  animation: snakeFlowAnimation 24s linear infinite;
}

@keyframes snakeFlowAnimation {
  from { stroke-dashoffset: 680; }
  to { stroke-dashoffset: 0; }
}

/* Joint pins at card connection terminals */
.snake-joint-pin {
  fill: var(--brass, #C9A84C);
  stroke: var(--surface, #14273D);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px var(--brass-glow));
}

/* Node card */
.roadmap-node-card {
  width: 100%;
  max-width: 100%;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.roadmap-node-card:hover, .roadmap-node-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 20px var(--brass-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Top metadata row inside card */
.node-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node-project-id {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--brass2, #E8C468);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.08) 100%);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.node-category-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Center icon & name row */
.node-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--surface2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.roadmap-node-card:hover .node-icon-bubble {
  border-color: var(--brass);
  background: var(--brass-glow);
  transform: scale(1.05);
}

.node-icon-bubble svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}

.node-title-group {
  min-width: 0;
  flex: 1;
}

.node-project-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-namespace {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-family: monospace;
}

/* Card bottom row: Status & Version */
.node-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
}

.node-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.72rem;
}

.node-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.node-version-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Status specific coloring for cards and badges */
.roadmap-node-card[data-status="Completed"] .node-status-badge {
  background: var(--status-completed-bg);
  color: var(--status-completed);
}
.roadmap-node-card[data-status="Completed"] .status-dot { background: var(--status-completed); }

.roadmap-node-card[data-status="In Progress"] .node-status-badge {
  background: var(--status-inprogress-bg);
  color: var(--status-inprogress);
}
.roadmap-node-card[data-status="In Progress"] .status-dot { background: var(--status-inprogress); }

.roadmap-node-card[data-status="Coding"] .node-status-badge {
  background: var(--status-coding-bg);
  color: var(--status-coding);
}
.roadmap-node-card[data-status="Coding"] .status-dot { background: var(--status-coding); }

.roadmap-node-card[data-status="Testing"] .node-status-badge {
  background: var(--status-testing-bg);
  color: var(--status-testing);
}
.roadmap-node-card[data-status="Testing"] .status-dot { background: var(--status-testing); }

.roadmap-node-card[data-status="Deployment"] .node-status-badge {
  background: var(--status-deployment-bg);
  color: var(--status-deployment);
}
.roadmap-node-card[data-status="Deployment"] .status-dot { background: var(--status-deployment); }

.roadmap-node-card[data-status="Still Concept"] .node-status-badge {
  background: var(--status-concept-bg);
  color: var(--status-concept);
}
.roadmap-node-card[data-status="Still Concept"] .status-dot { background: var(--status-concept); }

.roadmap-node-card[data-status="On Hold"] .node-status-badge {
  background: var(--status-onhold-bg);
  color: var(--status-onhold);
}
.roadmap-node-card[data-status="On Hold"] .status-dot { background: var(--status-onhold); }

/* Ambient breathing pulse for active status indicators */
@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { transform: scale(1.2); opacity: 0.85; box-shadow: 0 0 8px 2px currentColor; }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 currentColor; }
}

.roadmap-node-card[data-status="In Progress"] .status-dot,
.roadmap-node-card[data-status="Coding"] .status-dot,
.roadmap-node-card[data-status="Testing"] .status-dot {
  animation: status-pulse 2.2s infinite ease-in-out;
}

/* Serpentine Row-Turn Loop Connectors (between consecutive rows) */
.snake-turn-connector {
  position: absolute;
  width: 72px;
  height: 56px;
  pointer-events: none;
  z-index: 1;
}

.snake-turn-connector.right {
  right: 12px;
  bottom: -44px;
}

.snake-turn-connector.left {
  left: 12px;
  bottom: -44px;
}

.snake-turn-connector svg {
  width: 100%;
  height: 100%;
  stroke: var(--brass);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 6 3;
  opacity: 0.85;
}

/* ── MOBILE VERTICAL TIMELINE (< 768px) ── */
.roadmap-timeline {
  display: none;
  flex-direction: column;
  position: relative;
  padding: 10px 0 30px 24px;
  margin-left: 12px;
}

/* Continuous vertical timeline trail */
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, var(--brass) 0%, var(--border) 70%, var(--border-subtle) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Milestone pin / node dot on vertical trail */
.timeline-bead {
  position: absolute;
  left: -32px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 3px solid var(--brass);
  box-shadow: 0 0 8px var(--brass-glow);
  z-index: 3;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-item:hover .timeline-bead {
  transform: scale(1.25);
  background-color: var(--brass);
}

.timeline-card {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.timeline-card:hover, .timeline-card:focus-visible {
  border-color: var(--brass);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ── RESPONSIVE ADAPTATIONS (PRD lines 104-109) ── */

/* Tablet (768px - 1199px): 2 columns serpentine grid */
@media (min-width: 768px) and (max-width: 1199px) {
  .roadmap-snake {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 48px 24px !important;
    padding: 28px 46px !important;
  }
  .roadmap-timeline {
    display: none !important;
  }
  .roadmap-node-card {
    max-width: 100%;
  }
}

/* Mobile (< 768px): Vertical timeline mode activates */
@media (max-width: 767px) {
  .roadmap-snake {
    display: none !important;
  }
  .roadmap-timeline {
    display: flex !important;
  }
}

/* Small mobile (< 480px): Compact cards & touch adjustments */
@media (max-width: 480px) {
  .roadmap-timeline {
    padding-left: 18px;
    margin-left: 8px;
  }
  .timeline-bead {
    left: -24px;
    width: 14px;
    height: 14px;
    top: 18px;
    border-width: 2.5px;
  }
  .timeline-card {
    padding: 14px;
  }
  .node-icon-bubble {
    width: 38px;
    height: 38px;
  }
  .node-icon-bubble svg {
    width: 18px;
    height: 18px;
  }
  .node-project-name {
    font-size: 0.86rem;
  }
}

