<UserControl x:Class="NexusShell.Views.NexusAppPlaceholderView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Border Width="104" Height="104" CornerRadius="30"
                    Background="{StaticResource NexusLogoGradientBrush}"
                    Margin="0,0,28,0"
                    VerticalAlignment="Top">
                <TextBlock Text="{Binding IconPath}"
                           FontSize="38"
                           FontWeight="SemiBold"
                           HorizontalAlignment="Center"
                           VerticalAlignment="Center"/>
            </Border>

            <StackPanel Grid.Column="1" VerticalAlignment="Top">
                <Border HorizontalAlignment="Left" CornerRadius="999"
                        Padding="10,4"
                        Background="#1800D9FF"
                        BorderBrush="#3300D9FF"
                        BorderThickness="1"
                        Margin="0,0,0,14">
                    <TextBlock Text="{Binding Status}" FontSize="11" FontWeight="SemiBold"
                               Foreground="{StaticResource NexusAccentCyanBrush}"/>
                </Border>

                <TextBlock Text="{Binding Name}"
                           FontSize="30"
                           FontWeight="SemiBold"
                           Foreground="{StaticResource NexusTextPrimaryBrush}"
                           TextWrapping="Wrap"/>
                <TextBlock Text="{Binding Category}"
                           FontSize="13"
                           FontWeight="SemiBold"
                           Foreground="{StaticResource NexusTextSecondaryBrush}"
                           Margin="0,6,0,18"/>
                <TextBlock Text="{Binding Description}"
                           FontSize="14"
                           Foreground="{StaticResource NexusTextSecondaryBrush}"
                           TextWrapping="Wrap"
                           LineHeight="21"
                           MaxWidth="500"/>

                <Border Style="{StaticResource NexusGlassPanelStyle}" Padding="16" Margin="0,24,0,0">
                    <StackPanel>
                        <TextBlock Text="NEXUS PLACEHOLDER" FontSize="10" FontWeight="Bold"
                                   Foreground="{StaticResource NexusTextSecondaryBrush}"/>
                        <TextBlock Text="{Binding StatusMessage}"
                                   Foreground="{StaticResource NexusTextPrimaryBrush}"
                                   FontSize="13"
                                   TextWrapping="Wrap"
                                   Margin="0,8,0,0"/>
                    </StackPanel>
                </Border>
            </StackPanel>
        </Grid>

        <Grid Grid.Row="1" Margin="0,26,0,0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                <Button Content="Genindlæs" Command="{Binding ReloadCommand}"
                        Style="{StaticResource NexusGlassButtonStyle}" MinWidth="108" Margin="0,0,10,0"/>
                <Button Content="Diagnostics" Command="{Binding OpenDiagnosticsCommand}"
                        Style="{StaticResource NexusGlassButtonStyle}" MinWidth="116" Margin="0,0,10,0"/>
                <Button Content="App Hub" Command="{Binding OpenAppHubCommand}"
                        Style="{StaticResource NexusGlassButtonStyle}" MinWidth="104"/>
            </StackPanel>
            <Button Content="Luk" Command="{Binding CloseCommand}"
                    Style="{StaticResource NexusGlassButtonStyle}"
                    HorizontalAlignment="Right" MinWidth="96"/>
        </Grid>
    </Grid>
</UserControl>
