<?php

/**
 * The template for displaying referral sale notification
 *
 * This template can be overridden by copying it to yourtheme/movie-engine/emails/referral-sale.php.
 *
 * HOWEVER, on occasion MovieEngine will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * NOTE: Inline styles in email templates are intentional for email client compatibility.
 *
 * @note Please do not delete our CSS classes when you customize, as it may break functionality.
 * @package Movie_Engine
 * @subpackage Movie_Engine/templates
 * @version 1.0.0
 * @since 1.0.0
 */

if (! defined("ABSPATH")) {
    exit; // Exit if accessed directly
}
?>
<p><?php printf(
        /* translators: %s: user display name */
        esc_html__('Hi %s,', 'cine-movie-engine'),
        esc_html($movie_engine_user_name)
    ); ?></p>

<p><?php esc_html_e('Great news! One of your referrals has just completed a purchase.', 'cine-movie-engine'); ?></p>

<div style="background: #f0fdf4; border-left: 4px solid #16a34a; padding: 15px; margin: 20px 0;">
    <p style="margin: 0; font-size: 16px; color: #166534;">
        <strong><?php esc_html_e('You earned:', 'cine-movie-engine'); ?> $<?php echo esc_html($movie_engine_amount); ?></strong>
    </p>
</div>

<p><?php esc_html_e('This amount has been added to your account balance.', 'cine-movie-engine'); ?></p>

<p>
    <a href="<?php echo esc_url($movie_engine_dashboard_link); ?>" style="background-color: #e50914; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 4px; display: inline-block;">
        <?php esc_html_e('View Dashboard', 'cine-movie-engine'); ?>
    </a>
</p>

<p><?php esc_html_e('Keep sharing your link to earn more!', 'cine-movie-engine'); ?></p>