/* Clean Roadmap Flowchart & Slide-over Drawer (roadmap.sh style) */

.roadmap-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Progress Box */
.dev-progress-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  max-width: 320px;
}

.dev-progress-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dev-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-overlay);
  border-radius: 3px;
  overflow: hidden;
}

.dev-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

/* Phases Layout */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.phase-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.phase-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-muted);
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.phase-heading {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Nodes Grid */
.nodes-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Node Box */
.roadmap-node {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.roadmap-node:hover {
  border-color: var(--accent-blue);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.roadmap-node.completed {
  border-color: var(--accent-green);
  background: rgba(63, 185, 80, 0.05);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.node-title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.node-status-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.roadmap-node.completed .node-status-icon {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
  font-weight: 900;
}

.node-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.node-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
}

.tag-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.tag-badge.Required {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.tag-badge.Recommended {
  background: rgba(63, 185, 80, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.tag-badge.Advanced {
  background: rgba(188, 140, 255, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(188, 140, 255, 0.3);
}

/* Slide-over Drawer / Modal Panel */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 4, 9, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  width: 100%;
  max-width: 650px;
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-overlay);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.drawer-close:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.drawer-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.drawer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.drawer-section-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-list {
  list-style: none;
  padding: 0;
}

.drawer-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.drawer-list li::before {
  content: "•";
  color: var(--accent-blue);
}

/* Checklist Group */
.checklist-group {
  margin-top: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--accent-green);
  margin-top: 2px;
  cursor: pointer;
}

.checklist-item label {
  cursor: pointer;
  color: var(--text-primary);
  user-select: none;
}

.checklist-item input:checked + label {
  text-decoration: line-through;
  color: var(--text-tertiary);
}
