<?php

/**
 * Welcome email template
 *
 * This template can be overridden by copying it to yourtheme/movie-engine/emails/welcome.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/emails
 * @version 1.0.0
 * @since 1.0.0
 */

if (! defined("ABSPATH")) {
    exit; // Exit if accessed directly
}
?>

<h1><?php esc_html_e('Welcome onboard,', 'cine-movie-engine'); ?> {user_name}!</h1>
<p><?php esc_html_e('We are thrilled to have you as part of our cinematic community. Your account has been successfully created and your journey starts here.', 'cine-movie-engine'); ?></p>

<div class="divider"></div>

<p><strong><?php esc_html_e('Active Plan:', 'cine-movie-engine'); ?></strong> {plan_name}</p>

<p><?php esc_html_e('You now have access to a world of endless entertainment. Discover the latest blockbusters, trending series, and hidden gems.', 'cine-movie-engine'); ?></p>

<?php
$movie_engine_email_options = get_option('movie_engine_email_settings', []);
$movie_engine_email_primary_color = !empty($movie_engine_email_options['primary_color']) ? $movie_engine_email_options['primary_color'] : '#E50914';
$movie_engine_email_btn_text_color = !empty($movie_engine_email_options['btn_text_color']) ? $movie_engine_email_options['btn_text_color'] : '#FFFFFF';
?>
<div style="text-align: center; margin-top: 30px;">
    <a href="{browse_url}" class="btn" style="background-color: <?php echo esc_attr($movie_engine_email_primary_color); ?>; color: <?php echo esc_attr($movie_engine_email_btn_text_color); ?>; text-decoration: none; padding: 12px 30px; border-radius: 4px; font-weight: bold; display: inline-block;"><?php esc_html_e('Browse Catalog', 'cine-movie-engine'); ?></a>
    <div style="margin-top: 15px;">
        <a href="{dashboard_url}" style="color: #999; text-decoration: underline; font-size: 14px;"><?php esc_html_e('Go to my Dashboard', 'cine-movie-engine'); ?></a>
    </div>
</div>

<p style="margin-top: 40px; border-top: 1px solid #333; padding-top: 20px; font-style: italic; color: #888;">
    <?php esc_html_e('Happy Streaming!', 'cine-movie-engine'); ?><br>
    <?php esc_html_e('The {site_name} Team', 'cine-movie-engine'); ?>
</p>