<?php

$email    = $ctx['email']    ?? '';
$username = $ctx['username'] ?? '';
$domain   = $ctx['domain']   ?? '';
$company  = $ctx['company']  ?? '';
$github   = $ctx['github']   ?? '';
$website  = $ctx['website']  ?? '';
$yearText = $ctx['yearText'] ?? '';

$subject = "{$domain} - Query Response #10";

$body = <<<HTML
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;600;700&display=swap" rel="stylesheet" />
    <style type="text/css">
        @import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;600;700&display=swap');
        .body-font { font-family: 'Lexend Deca', -apple-system !important; }
        .heading-font { font-family: 'Lexend Deca', -apple-system !important; font-weight: 600; }
        a { color: #1d4ed8; }
    </style>
</head>
<body class="body-font" style="margin:0;padding:0;background-color:#ffffff;color:#0f172a;font-family:'Lexend Deca', -apple-system;">
    <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background:#ffffff;padding:24px 12px;font-family:'Lexend Deca', -apple-system;">
        <tr>
            <td align="center">
                <table role="presentation" cellpadding="0" cellspacing="0" width="640" style="max-width:640px;width:100%;border-collapse:collapse;text-align:left;font-family:'Lexend Deca', -apple-system;">
                    <tr>
                        <td style="padding-top:28px;padding-bottom:8px;text-align:center;">
                            <h1 class="heading-font" style="font-size:28px;line-height:34px;margin:0;font-weight:600;color:#0f172a;text-align:center;font-family:'Lexend Deca', -apple-system;">
                                 Query Response #10
                            </h1>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:18px 16px 8px 16px;background:#ffffff;font-family:'Lexend Deca', -apple-system;">
                            <p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
                                Hi <strong style="color:#0f172a;">{$username}</strong>,
                            </p>
                            <p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
                                <strong style="color:#0f172a;">{$domain}</strong> had received a query about (the things..).
                                We're pleased to announce you that your <strong style="color:#0f172a;">{$domain}</strong>
                                query has been approved. Do you have any other questions or suggestions? We're always here to help.
                            </p>
                            <p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
                                We reviewed your recommendations and we want to thank you for your input.
                                We're a small, quiet corner of the internet, did you want to join us to grow it further?

                                Send your github username via reply to this email and we will get back to you;
                                After accepting the invitation, you can start contributing to the project.
                            </p>
                            <div style="height:1px;background:#e6e9ef;margin:20px 0;"></div>
                            <p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
                                This query was received by the email address:
                                <a href="mailto:{$email}" style="color:#0f172a;font-family:'Lexend Deca', -apple-system;">{$email}</a>.
                            </p>
                            <p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system, BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;">
                                🪢 <strong style="color:#0f172a;">GitHub:</strong> {$github}<br>
                            </p>
                            <div style="height:1px;background:#e6e9ef;margin:20px 0;"></div>
                            <p style="font-size:14px;line-height:20px;color:#6b7280;margin:0 0 12px 0;font-family:'Lexend Deca', -apple-system;">
                                If you did not make this query, or believe we contacted the wrong person, kidnly ignore this email.
                                However, if you have any new queries, requests, or wish to contribute, feel free to reach out to us at this email address.
                            </p>
                            <p style="font-size:16px;line-height:18px;color:#475569;margin:18px 0 0 0;font-family:'Lexend Deca', -apple-system;">
                                Sincerely,
                            </p>
                            <p style="font-size:16px;line-height:18px;color:#0f172a;font-weight:600;margin:6px 0 0 0;font-family:'Lexend Deca', -apple-system;">
                                {$domain} Support
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:14px 12px 28px 12px;font-family:'Lexend Deca', -apple-system;">
                            <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background:#f8fafc;padding:12px;border-radius:6px;font-family:'Lexend Deca', -apple-system;">
                                <tr>
                                    <td style="text-align:center;font-size:12px;color:#6b7280;line-height:20px;font-family:'Lexend Deca', -apple-system;">
                                        <div style="margin-bottom:4px;font-family:'Lexend Deca', -apple-system;">
                                            <a href="https://{$domain}.in" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">{$domain}</a> |
                                            <a href="https://{$domain}.in/support" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">Support</a> |
                                            <a href="https://{$domain}.in/privacy-policy" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">Privacy Policy</a>
                                        </div>
                                        <div style="font-size:12px;color:#475569;font-family:'Lexend Deca', -apple-system;">
                                            A small community under {$company}.<br>
                                            &copy; {$yearText} {$company}. All rights reserved.
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
HTML;

return [
    'label'   => "{$domain} Approved Temp.",
    'subject' => $subject,
    'body'    => $body,
];