Write-Host "🚀 Iniciando CloneWeb Platform..." -ForegroundColor Green
Write-Host ""

Write-Host "📡 Iniciando Crawler Service (porta 3001)..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd simple-crawler; npm start" -WindowStyle Normal

Start-Sleep -Seconds 3

Write-Host "🌐 Iniciando Web Interface (porta 3000)..." -ForegroundColor Yellow  
Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd web-interface; npm start" -WindowStyle Normal

Start-Sleep -Seconds 2

Write-Host ""
Write-Host "✅ Serviços iniciados!" -ForegroundColor Green
Write-Host "🌐 Interface Web: http://localhost:3000" -ForegroundColor Cyan
Write-Host "📡 Crawler API: http://localhost:3001" -ForegroundColor Cyan
Write-Host ""
Write-Host "Pressione qualquer tecla para abrir a interface no navegador..." -ForegroundColor White
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

Start-Process "http://localhost:3000"