<Window x:Class="AxCopilot.Views.LargeTypeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStyle="None"
        AllowsTransparency="True"
        UseLayoutRounding="True"
        SnapsToDevicePixels="True"
        Background="Transparent"
        WindowState="Maximized"
        Topmost="True"
        ShowInTaskbar="False"
        Focusable="True"
        KeyDown="Window_KeyDown"
        MouseDown="Window_MouseDown"
        Loaded="Window_Loaded">

    <!-- 반투명 오버레이 -->
    <Border x:Name="Overlay" Background="#D9000000" Opacity="0">
        <Border.Triggers>
            <!-- 표시될 때 페이드인 -->
            <EventTrigger RoutedEvent="Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="Overlay"
                                         Storyboard.TargetProperty="Opacity"
                                         From="0" To="1" Duration="0:0:0.18"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Border.Triggers>

        <Grid>
            <!-- ── 닫기 버튼 (우상단) ─── -->
            <Button HorizontalAlignment="Right" VerticalAlignment="Top"
                    Margin="0,32,40,0" Width="40" Height="40"
                    Background="Transparent" BorderThickness="0"
                    Cursor="Hand" Click="Close_Click"
                    ToolTip="닫기 (Esc / 클릭)">
                <TextBlock Text="&#xE711;"
                           FontFamily="Segoe MDL2 Assets"
                           FontSize="18" Foreground="#99FFFFFF"
                           HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <Button.Template>
                    <ControlTemplate TargetType="Button">
                        <Border x:Name="Bd" CornerRadius="20"
                                Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="Bd" Property="Background" Value="#33FFFFFF"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Button.Template>
            </Button>

            <!-- ── 메인 텍스트 (중앙) ─── -->
            <Viewbox Stretch="Uniform" MaxWidth="1200" MaxHeight="700"
                     Margin="80,80,80,120"
                     HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock x:Name="LargeText"
                           FontFamily="Segoe UI, Malgun Gothic"
                           FontWeight="SemiBold"
                           Foreground="White"
                           TextWrapping="Wrap"
                           TextAlignment="Center">
                    <TextBlock.Effect>
                        <DropShadowEffect Color="Black" BlurRadius="40"
                                          ShadowDepth="0" Opacity="0.7"/>
                    </TextBlock.Effect>
                </TextBlock>
            </Viewbox>

            <!-- ── 하단 힌트 ─── -->
            <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center"
                        Margin="0,0,0,40" Orientation="Horizontal">
                <Border Background="#22FFFFFF" CornerRadius="6" Padding="10,5" Margin="0,0,8,0">
                    <TextBlock Text="Esc" FontSize="12" FontFamily="Segoe UI Mono, Consolas"
                               Foreground="#99FFFFFF" VerticalAlignment="Center"/>
                </Border>
                <TextBlock Text="또는 클릭하여 닫기" FontSize="13"
                           Foreground="#66FFFFFF" VerticalAlignment="Center"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
