/* Toolliyo Developer Roadmaps — visual learning paths */

.roadmap-hub-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.breadcrumb-dark .breadcrumb-item a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb-dark .breadcrumb-item.active { color: rgba(255, 255, 255, 0.6); }

.roadmap-stat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--bg-glass, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.roadmap-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card, rgba(15, 15, 35, 0.92));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.roadmap-card:hover {
    transform: translateY(-3px);
    border-color: var(--roadmap-accent, #6366f1);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    color: inherit;
}

.roadmap-card-priority {
    border-top: 3px solid var(--roadmap-accent, #6366f1);
}

.roadmap-card-graphic {
    position: relative;
    height: 72px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--roadmap-accent) 15%, transparent), transparent);
    overflow: hidden;
}

.roadmap-card-graphic-sm { height: 48px; }

.roadmap-mini-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.roadmap-card-icon {
    position: absolute;
    right: 12px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--roadmap-accent, #6366f1);
    color: #fff;
    font-size: 1rem;
}

.roadmap-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.roadmap-card-desc {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.roadmap-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--roadmap-accent, #6366f1);
}

.roadmap-card-compact {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.roadmap-compact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--roadmap-accent) 20%, transparent);
    color: var(--roadmap-accent);
}

.roadmap-compact-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.roadmap-priority-badge { font-size: 0.65rem; }

/* Show page */
.roadmap-show-hero {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.roadmap-show-hero .lead { opacity: 0.92; }

.roadmap-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.roadmap-hero-graphic {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.roadmap-hero-svg {
    width: 100%;
    height: auto;
    display: block;
}

.roadmap-path-main {
    stroke-dasharray: 600;
    animation: roadmap-draw 2s ease-out forwards;
}

@keyframes roadmap-draw {
    from { stroke-dashoffset: 600; }
    to { stroke-dashoffset: 0; }
}

.roadmap-hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
}

.roadmap-rich-content {
    line-height: 1.75;
    color: var(--text-secondary);
}

.roadmap-rich-content p:last-child { margin-bottom: 0; }

/* Timeline */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.roadmap-phase {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 1rem;
}

.roadmap-phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.roadmap-phase-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: var(--phase-color, #6366f1);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--phase-color) 40%, transparent);
    z-index: 1;
}

.roadmap-phase-line {
    flex: 1;
    width: 3px;
    min-height: 24px;
    background: linear-gradient(to bottom, var(--phase-color, #6366f1), var(--border-color, rgba(255,255,255,0.1)));
    margin: 4px 0;
}

.roadmap-phase-body {
    margin-bottom: 1.5rem;
    background: var(--bg-card, rgba(15, 15, 35, 0.92)) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    border-left: 4px solid var(--phase-color, #6366f1) !important;
    border-radius: 16px !important;
}

.roadmap-skill-tag,
.roadmap-tool-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    background: var(--bg-glass, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.roadmap-milestones {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-milestones li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.roadmap-sidebar {
    background: var(--bg-card, rgba(15, 15, 35, 0.92));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 16px;
}

.roadmap-related-link {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.88rem;
    background: var(--bg-glass, rgba(255, 255, 255, 0.04));
    transition: background 0.15s;
}

.roadmap-related-link:hover {
    background: color-mix(in srgb, var(--roadmap-accent, #6366f1) 12%, transparent);
    color: inherit;
}

@media (max-width: 767px) {
    .roadmap-phase {
        grid-template-columns: 36px 1fr;
    }
    .roadmap-phase-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

[data-theme="light"] .roadmap-card,
[data-theme="light"] .roadmap-phase-body,
[data-theme="light"] .roadmap-sidebar {
    background: #fff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .roadmap-hub-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
}
