<x-app-layout>
    <x-slot name="header">
            {{ __('Unsubscribe Error') }}
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-theme-background overflow-hidden shadow-xl sm:rounded-lg">
                <div class="p-12 sm:px-20 bg-theme-background">

                    <div class="mt-8 text-center">
                        <div class="text-6xl text-red-500 mb-4">
                            ✗
                        </div>

                        <h1 class="text-2xl font-bold text-theme-primary mb-4">
                            {{ __('Unsubscribe Failed') }}
                        </h1>

                        <div class="text-theme-secondary mb-6">
                            <p class="mb-4">
                                {{ __('We were unable to process your unsubscribe request.') }}
                            </p>

                            <div class="bg-red-50 border border-red-200 rounded-md p-4 text-sm text-red-800 mb-6">
                                <p class="font-semibold">{{ __('Error:') }}</p>
                                <p>{{ $message }}</p>
                            </div>
                        </div>

                        <div class="space-y-3">
                            <p class="text-theme-secondary">
                                {{ __('Need help with unsubscribing?') }}
                            </p>
                            <div class="space-x-4">
                                <a href="{{ route('login') }}"
                                   class="inline-flex items-center px-4 py-2 bg-theme-primary border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-theme-primary-dark focus:outline-none focus:border-theme-primary-dark focus:ring focus:ring-theme-primary disabled:opacity-25 transition">
                                    {{ __('Login to Manage Preferences') }}
                                </a>
                                <a href="{{ route('welcome') }}"
                                   class="inline-flex items-center px-4 py-2 bg-gray-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-600 focus:outline-none focus:border-gray-600 focus:ring focus:ring-gray-500 disabled:opacity-25 transition">
                                    {{ __('Return to Homepage') }}
                                </a>
                            </div>

                            <div class="mt-4 pt-4 border-t border-gray-200">
                                <p class="text-sm text-gray-600">
                                    {{ __('If you continue to have problems, please contact our support team.') }}
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</x-app-layout>