<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex,nofollow">
    <title>{{ $error ? __('Could not record feedback') : __('Thanks for the feedback!') }}</title>
    <style>
        :root { color-scheme: light dark; }
        body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
               background: #f8fafc; color: #1e293b; margin: 0; min-height: 100vh;
               display: flex; align-items: center; justify-content: center; padding: 2rem; }
        @media (prefers-color-scheme: dark) {
            body { background: #0f172a; color: #f1f5f9; }
            .card { background: #1e293b; border-color: #334155; }
        }
        .card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
                padding: 2.5rem 2rem; max-width: 360px; width: 100%; text-align: center;
                box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
        .icon { width: 56px; height: 56px; border-radius: 28px; margin: 0 auto 1.25rem;
                display: flex; align-items: center; justify-content: center; font-size: 28px; }
        .icon.success { background: #dcfce7; color: #15803d; }
        .icon.error { background: #fee2e2; color: #b91c1c; }
        h1 { font-size: 1.25rem; margin: 0 0 0.5rem; font-weight: 600; }
        p { font-size: 0.9rem; line-height: 1.5; opacity: 0.7; margin: 0; }
    </style>
</head>
<body>
    <div class="card">
        @if($error)
            <div class="icon error">!</div>
            <h1>{{ __('Could not record feedback') }}</h1>
            <p>{{ $error }}</p>
        @elseif($positive)
            <div class="icon success">👍</div>
            <h1>{{ __('Thanks for the feedback!') }}</h1>
            <p>{{ __('Glad that answer helped. You can close this page.') }}</p>
        @else
            <div class="icon error">👎</div>
            <h1>{{ __('Thanks — we’ll do better next time.') }}</h1>
            <p>{{ __('Your feedback helps us tune answers that miss the mark. You can close this page.') }}</p>
        @endif
    </div>
</body>
</html>
