<?php
/**
 * Setup Complete email template
 *
 * This template can be overridden by copying it to yourtheme/storeagent-ai-for-woocommerce/emails/setup-complete.php.
 *
 * @package SAAI/Templates/Emails
 * @var string $email_heading The email heading
 * @var string $store_name The store name
 * @var int $posts_uploaded Number of posts uploaded
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Output the email header.
 *
 * @hooked WC_Emails::email_header() Output the email header
 */
do_action( 'woocommerce_email_header', $email_heading, null );
?>

<p>
    <?php
    /* translators: %s: Store name */
    printf( esc_html__( 'Hello %s,', 'storeagent-ai-for-woocommerce' ), esc_html( $store_name ) );
    ?>
</p>

<p><?php esc_html_e( 'Great news! Your StoreAgent Chat is now fully set up and ready to help your customers.', 'storeagent-ai-for-woocommerce' ); ?></p>

<h2 style='color: #96588a; display: block; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: left;'>
    <?php esc_html_e( 'Setup Summary', 'storeagent-ai-for-woocommerce' ); ?>
</h2>

<ul style='color: #636363; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left; margin: 0 0 16px; padding: 0; list-style-position: inside;'>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( '✅ AI Memory created successfully', 'storeagent-ai-for-woocommerce' ); ?></li>
    <li style="margin: 0 0 8px; padding: 0;">
        <?php
        /* translators: %d: Number of posts uploaded */
        printf( esc_html__( '✅ %d posts uploaded to AI memory', 'storeagent-ai-for-woocommerce' ), absint( $posts_uploaded ) );
        ?>
    </li>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( '✅ Chat assistant is now active', 'storeagent-ai-for-woocommerce' ); ?></li>
</ul>

<h3 style='color: #96588a; display: block; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 130%; margin: 16px 0 8px; text-align: left;'>
    <?php esc_html_e( 'Your AI-powered chat assistant can now:', 'storeagent-ai-for-woocommerce' ); ?>
</h3>

<ul style='color: #636363; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left; margin: 0 0 16px; padding: 0; list-style-position: inside;'>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( 'Answer customer questions about your products', 'storeagent-ai-for-woocommerce' ); ?></li>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( 'Provide product recommendations', 'storeagent-ai-for-woocommerce' ); ?></li>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( 'Help customers find what they\'re looking for', 'storeagent-ai-for-woocommerce' ); ?></li>
    <li style="margin: 0 0 8px; padding: 0;"><?php esc_html_e( 'Assist with product comparisons', 'storeagent-ai-for-woocommerce' ); ?></li>
</ul>

<p style="text-align: center; margin: 24px 0;">
    <a class="link" href="<?php echo esc_url( admin_url( 'admin.php?page=storeagent-dashboard' ) ); ?>" 
        style="color: #ffffff; font-weight: normal; text-decoration: none; background-color: #96588a; border: solid 1px #96588a; border-radius: 5px; box-sizing: border-box; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; text-transform: capitalize;">
        <?php esc_html_e( 'VIEW STOREAGENT DASHBOARD', 'storeagent-ai-for-woocommerce' ); ?>
    </a>
</p>

<p><?php esc_html_e( 'The AI memory will automatically stay updated as you add, edit, or remove products from your store.', 'storeagent-ai-for-woocommerce' ); ?></p>

<p><?php esc_html_e( 'If you have any questions or need help, don\'t hesitate to reach out to our support team.', 'storeagent-ai-for-woocommerce' ); ?></p>

<p>
    <?php esc_html_e( 'Best regards,', 'storeagent-ai-for-woocommerce' ); ?><br>
    <strong><?php echo esc_html_x( 'The StoreAgent Team', 'email footer', 'storeagent-ai-for-woocommerce' ); ?></strong>
</p>

<hr style="border: none; border-top: 1px solid #e5e5e5; margin: 26px 0;" />

<p style="font-size: 12px; color: #99999e;">
    <?php esc_html_e( 'This is an automated notification. If you need assistance, please contact our Support Team.', 'storeagent-ai-for-woocommerce' ); ?>
</p>

<?php
/**
 * Output the email footer.
 *
 * @hooked WC_Emails::email_footer() Output the email footer
 */
do_action( 'woocommerce_email_footer', null );
?>
