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

    <StackPanel Spacing="14" MinWidth="380">
        <StackPanel Orientation="Horizontal" Spacing="14">
            <Border Width="56" Height="56"
                    CornerRadius="{ThemeResource RadiusM}"
                    Background="{ThemeResource AccentCyanMuted}">
                <TextBlock Text="W"
                           FontFamily="{ThemeResource FontSans}"
                           FontSize="28"
                           FontWeight="Bold"
                           Foreground="{ThemeResource AccentCyanText}"
                           HorizontalAlignment="Center"
                           VerticalAlignment="Center"/>
            </Border>
            <StackPanel VerticalAlignment="Center" Spacing="2">
                <TextBlock Text="TeamsISO" Style="{StaticResource TextTitle}"/>
                <TextBlock Text="Per-participant NDI ISO controller for Microsoft Teams"
                           Style="{StaticResource TextSubtle}"
                           TextWrapping="Wrap"
                           MaxWidth="280"/>
            </StackPanel>
        </StackPanel>

        <Border Height="1" Background="{ThemeResource BorderSubtle}"/>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Version" Style="{StaticResource TextSubtle}"/>
            <TextBlock Grid.Row="0" Grid.Column="1" Text="1.0.0-alpha" Style="{StaticResource TextMono}"/>
            <TextBlock Grid.Row="1" Grid.Column="0" Text="Host" Style="{StaticResource TextSubtle}" Margin="0,6,0,0"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="WinUI 3 (WindowsAppSDK 1.6)" Style="{StaticResource TextMono}" Margin="0,6,0,0"/>
            <TextBlock Grid.Row="2" Grid.Column="0" Text="Engine" Style="{StaticResource TextSubtle}" Margin="0,6,0,0"/>
            <TextBlock Grid.Row="2" Grid.Column="1" Text=".NET 8 + NDI 5" Style="{StaticResource TextMono}" Margin="0,6,0,0"/>
            <TextBlock Grid.Row="3" Grid.Column="0" Text="Brand" Style="{StaticResource TextSubtle}" Margin="0,6,0,0"/>
            <TextBlock Grid.Row="3" Grid.Column="1" Text="Wild Dragon · wilddragon.net" Style="{StaticResource TextMono}" Margin="0,6,0,0"/>
        </Grid>

        <Border Height="1" Background="{ThemeResource BorderSubtle}"/>

        <StackPanel Orientation="Horizontal" Spacing="8">
            <Button Style="{StaticResource ButtonSecondary}"
                    Content="Open logs folder"
                    ToolTipService.ToolTip="%LOCALAPPDATA%\TeamsISO\Logs"/>
            <Button Style="{StaticResource ButtonSecondary}"
                    Content="Open recordings"
                    ToolTipService.ToolTip="%USERPROFILE%\Videos\TeamsISO"/>
            <Button Style="{StaticResource ButtonSecondary}"
                    Content="Check for updates"
                    ToolTipService.ToolTip="Query forge.wilddragon.net for a newer release"/>
        </StackPanel>

        <TextBlock Style="{StaticResource TextCaption}"
                   TextWrapping="Wrap"
                   Text="Proprietary © Wild Dragon LLC 2026."/>
    </StackPanel>
</ContentDialog>
