/*
 * Roadmap tab: Gantt chart rows and bars, story phase segments, dependency lines, and
 * milestone / release markers.
 */
.roadmap { background: var(--bg-2); border-radius: 6px; padding: 16px; box-shadow: var(--shadow); overflow-x: auto; overflow-y: hidden; }
.gantt { min-width: 1000px; position: relative; }
.gantt-header { display: flex; border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; position: sticky; top: 0; z-index: 30; background: var(--bg-2); }
.gantt-body { position: relative; overflow-y: auto; overflow-x: hidden; max-height: calc(100vh - 360px); }
.gantt-label { width: 280px; flex-shrink: 0; font-weight: 600; font-size: 12px; }
.gantt-timeline { flex: 1; display: flex; position: relative; }
.gantt-period { flex: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--text-2); padding: 4px 2px; border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.gantt-period.current { background: var(--ey-yellow-light); color: var(--ey-black); }
.gantt-row { display: flex; align-items: stretch; min-height: 32px; border-bottom: 1px solid var(--border); }
.gantt-row:hover { background: var(--bg-3); }
.gantt-row.epic { background: var(--bg-3); font-weight: 600; }
.gantt-row.feature { padding-left: 20px; }
.gantt-row.story { padding-left: 40px; font-size: 11px; }
.gantt-item { width: 280px; flex-shrink: 0; font-size: 12px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.gantt-item .expand-btn { width: 18px; height: 18px; border: none; background: var(--ey-yellow); color: var(--ey-black); border-radius: 3px; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gantt-item .expand-btn:hover { background: var(--ey-yellow-dark); }
.gantt-item .item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-item .item-progress { font-size: 10px; color: var(--text-2); flex-shrink: 0; }
.gantt-bars { flex: 1; position: relative; min-height: 28px; }
.gantt-bar { position: absolute; height: 20px; border-radius: 3px; display: flex; align-items: center; padding: 0 6px; font-size: 9px; font-weight: 600; color: white; top: 4px; min-width: 20px; cursor: pointer; transition: transform 0.15s; }
.gantt-bar:hover { transform: scaleY(1.2); z-index: 5; }
.gantt-bar.done { background: var(--ey-green); }
.gantt-bar.active { background: var(--ey-yellow); color: var(--ey-black); }
.gantt-bar.planned { background: var(--ey-blue); }
.gantt-bar.overdue { background: var(--ey-red); }
.gantt-bar.blocked { background: repeating-linear-gradient(45deg, var(--ey-red), var(--ey-red) 5px, #d44 5px, #d44 10px); }
/* Story phase segments */
.gantt-bar-segment { position: absolute; height: 20px; top: 4px; }
.gantt-bar-segment.dev { background: var(--dev-color); border-radius: 3px 0 0 3px; }
.gantt-bar-segment.qa { background: var(--qa-color); border-radius: 0 3px 3px 0; }
/* Dependencies */
.dependency-line { position: absolute; pointer-events: none; z-index: 3; }
.dependency-line path { fill: none; stroke: var(--ey-purple); stroke-width: 2; stroke-dasharray: 4, 3; }
.dependency-line.blocked path { stroke: var(--ey-red); stroke-width: 3; }
/* Milestones */
.gantt-milestone { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ey-purple); z-index: 8; }
.gantt-milestone::before { content: '*'; position: absolute; top: -8px; left: -5px; color: var(--ey-purple); font-size: 12px; }
.gantt-milestone-label { position: absolute; top: -22px; left: 4px; font-size: 9px; font-weight: 600; color: var(--ey-purple); white-space: nowrap; background: var(--bg-2); padding: 1px 4px; border-radius: 2px; }
.gantt-milestone.release { background: var(--ey-green); width: 3px; }
.gantt-milestone.release::before { color: var(--ey-green); content: '*'; left: -6px; }
.gantt-milestone-label.release { color: #fff; background: var(--ey-green); font-weight: 700; border: 1px solid #fff; }
.gantt-release-band { display: flex; align-items: center; margin-bottom: 10px; min-height: 56px; }
.gantt-release-track { flex: 1; position: relative; overflow: visible; min-height: 46px; }
.gantt-release-marker { position: absolute; top: 2px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; z-index: 32; }
.gantt-release-star { color: var(--ey-green); font-size: 12px; line-height: 12px; }
.gantt-release-label { font-size: 10px; line-height: 1.2; font-weight: 700; color: #fff; background: var(--ey-green); border: 1px solid #fff; border-radius: 10px; padding: 2px 7px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.gantt-legend { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; flex-wrap: wrap; }
.gantt-legend span { display: flex; align-items: center; gap: 4px; }
.gantt-legend i { width: 12px; height: 12px; border-radius: 2px; }
