<?xml version="1.0" encoding="utf-8"?>
<ContentDialog
    x:Class="TeamsISO.App.WinUI.Views.OnboardingDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Welcome to TeamsISO"
    PrimaryButtonText="Get started"
    SecondaryButtonText="Skip"
    DefaultButton="Primary"
    Background="{ThemeResource BgElevated}"
    BorderBrush="{ThemeResource BorderStrong}">

    <!--
        First-launch only. Three sections, one pane deep — no carousel,
        no celebration. Operator-tone copy ("Pick your NDI groups" not
        "Welcome to TeamsISO!"). Skippable from the first frame.

        Suppressed after dismissal via UIPreferences (Phase 7).
    -->

    <StackPanel Spacing="20" MinWidth="500" MaxWidth="540">
        <TextBlock Style="{StaticResource TextSubtle}" TextWrapping="Wrap">
            TeamsISO sits between Microsoft Teams' NDI broadcast and your live-production switcher.
            One-time setup gets you to the participants table.
        </TextBlock>

        <StackPanel Spacing="10">
            <StackPanel Orientation="Horizontal" Spacing="10">
                <Border Width="28" Height="28"
                        CornerRadius="14"
                        Background="{ThemeResource AccentCyanMuted}">
                    <TextBlock Text="1"
                               Style="{StaticResource TextBody}"
                               FontWeight="SemiBold"
                               Foreground="{ThemeResource AccentCyanText}"
                               HorizontalAlignment="Center"
                               VerticalAlignment="Center"/>
                </Border>
                <TextBlock Text="Install the NDI Runtime"
                           Style="{StaticResource TextHeading}"
                           VerticalAlignment="Center"/>
            </StackPanel>
            <TextBlock Style="{StaticResource TextSubtle}"
                       Margin="38,0,0,0"
                       TextWrapping="Wrap">
                From https://ndi.video/tools/. TeamsISO won't start without it — the engine relies on
                NDI 5 for discovery and routing. If the runtime is missing, you'll see a launch error;
                install it then relaunch.
            </TextBlock>
        </StackPanel>

        <StackPanel Spacing="10">
            <StackPanel Orientation="Horizontal" Spacing="10">
                <Border Width="28" Height="28"
                        CornerRadius="14"
                        Background="{ThemeResource AccentCyanMuted}">
                    <TextBlock Text="2"
                               Style="{StaticResource TextBody}"
                               FontWeight="SemiBold"
                               Foreground="{ThemeResource AccentCyanText}"
                               HorizontalAlignment="Center"
                               VerticalAlignment="Center"/>
                </Border>
                <TextBlock Text="Enable Teams NDI broadcast"
                           Style="{StaticResource TextHeading}"
                           VerticalAlignment="Center"/>
            </StackPanel>
            <TextBlock Style="{StaticResource TextSubtle}"
                       Margin="38,0,0,0"
                       TextWrapping="Wrap">
                Teams admin must enable NDI broadcast for your tenant. In Teams, Settings → Devices →
                "Allow NDI usage." Per-participant streams will appear as TeamsISO discovers them.
            </TextBlock>
        </StackPanel>

        <StackPanel Spacing="10">
            <StackPanel Orientation="Horizontal" Spacing="10">
                <Border Width="28" Height="28"
                        CornerRadius="14"
                        Background="{ThemeResource AccentCyanMuted}">
                    <TextBlock Text="3"
                               Style="{StaticResource TextBody}"
                               FontWeight="SemiBold"
                               Foreground="{ThemeResource AccentCyanText}"
                               HorizontalAlignment="Center"
                               VerticalAlignment="Center"/>
                </Border>
                <TextBlock Text="Pick your transcoder topology"
                           Style="{StaticResource TextHeading}"
                           VerticalAlignment="Center"/>
            </StackPanel>
            <TextBlock Style="{StaticResource TextSubtle}"
                       Margin="38,0,0,0"
                       TextWrapping="Wrap">
                Defaults to 1920×1080 at 30 fps with letterbox aspect. Adjust under Settings → Routing.
                Recording outputs land in %USERPROFILE%\Videos\TeamsISO\&lt;date&gt;\.
            </TextBlock>
        </StackPanel>

        <CheckBox x:Name="DontShowAgain"
                  Content="Don't show this again"
                  IsChecked="True"/>
    </StackPanel>
</ContentDialog>
