<UserControl x:Class="ClaudeDo.Installer.Pages.SystemCheckPage.SystemCheckPageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:ClaudeDo.Installer.Pages.SystemCheckPage"
             xmlns:checks="clr-namespace:ClaudeDo.Installer.Checks"
             xmlns:loc="clr-namespace:ClaudeDo.Installer.Localization"
             d:DataContext="{d:DesignInstance local:SystemCheckPageViewModel}"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- Header -->
        <StackPanel Grid.Row="0" Margin="0,0,0,16">
            <TextBlock Text="{loc:Tr installer.systemCheck.title}" FontSize="18" FontWeight="SemiBold" Margin="0,0,0,4"/>
            <TextBlock Text="{loc:Tr installer.systemCheck.subtitle}"
                       Foreground="{StaticResource TextSecondaryBrush}" TextWrapping="Wrap"/>
        </StackPanel>

        <checks:CheckListView Grid.Row="1" DataContext="{Binding Checks}"/>

        <!-- Wizard-only footer: "Claude Help Me" (the Recheck button lives in the shared list) -->
        <StackPanel Grid.Row="2" Margin="0,8,0,0">
            <TextBlock Text="{Binding ClaudeHelpError}" FontSize="12" TextWrapping="Wrap"
                       Foreground="{StaticResource ErrorBrush}" Margin="0,0,0,8"
                       Visibility="{Binding ClaudeHelpError, Converter={StaticResource NullToCollapsedConverter}}"/>
            <Button Content="{loc:Tr installer.systemCheck.claudeHelp.button}"
                    HorizontalAlignment="Right"
                    ToolTip="{Binding ClaudeHelpTooltip}"
                    Command="{Binding StartClaudeHelpCommand}"/>
        </StackPanel>
    </Grid>
</UserControl>
