<?php
/**
 * Email Verification Email Template (HTML)
 *
 * @package GuardDog
 * @since 1.9.0
 *
 * Available variables:
 * - $user_name: User's display name
 * - $verification_link: Full verification URL
 * - $expires_in: Number of hours until link expires
 * - $site_name: Site name
 * - $site_url: Site URL
 */

if (!defined('ABSPATH')) exit;
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo esc_html__('Verify Your Email Address', 'guard-dog'); ?></title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
    <div style="background: #f9f9f9; padding: 20px; border-radius: 5px; margin-bottom: 20px;">
        <h1 style="color: #23282d; margin-top: 0;">
            <?php // Translators: %s is the site name. ?>
            <?php printf(esc_html__('Welcome to %s', 'guard-dog'), esc_html($site_name)); ?>
        </h1>
    </div>

    <p><?php // Translators: %s is the user's display name. ?>
    <?php printf(esc_html__('Hello %s,', 'guard-dog'), esc_html($user_name)); ?></p>

    <p><?php esc_html_e('Thank you for registering! Please verify your email address by clicking the button below:', 'guard-dog'); ?></p>

    <div style="text-align: center; margin: 30px 0;">
        <a href="<?php echo esc_url($verification_link); ?>" 
           style="display: inline-block; background: #2271b1; color: #fff; padding: 12px 24px; text-decoration: none; border-radius: 4px; font-weight: bold;">
            <?php esc_html_e('Verify Email Address', 'guard-dog'); ?>
        </a>
    </div>

    <p><?php esc_html_e('Or copy and paste this link into your browser:', 'guard-dog'); ?></p>
    <p style="word-break: break-all; color: #2271b1;">
        <?php echo esc_url($verification_link); ?>
    </p>

    <p style="color: #666; font-size: 14px;">
        <?php
        printf(
        	// Translators: %d is the number of hours until the verification link expires.
            esc_html__('This verification link will expire in %d hours.', 'guard-dog'),
            absint($expires_in)
        ); 
        ?>
    </p>

    <p style="color: #666; font-size: 14px;">
        <?php esc_html_e('If you did not create an account, please ignore this email.', 'guard-dog'); ?>
    </p>

    <hr style="border: none; border-top: 1px solid #ddd; margin: 30px 0;">

    <p style="color: #999; font-size: 12px; margin-bottom: 0;">
        <?php // Translators: %s is the site name. ?>
        <?php printf(esc_html__('This email was sent by %s', 'guard-dog'), esc_html($site_name)); ?><br>
        <a href="<?php echo esc_url($site_url); ?>" style="color: #999;">
            <?php echo esc_url($site_url); ?>
        </a>
    </p>
</body>
</html>

