<?php
/**
 * Email Template: Suspicious Session Activity (User)
 *
 * This template can be overridden by copying it to:
 * your-theme/guard-dog/emails/suspicious-activity-user.php
 *
 * Available variables:
 * @var WP_User $user     The affected user object
 * @var string $site_name The site name
 *
 * @package GuardDog
 * @since 1.9.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php // Translators: %s is the site name. ?>
	<title><?php echo esc_html( sprintf( __( '[%s] Security Alert: Unusual Session Activity', 'guard-dog' ), $site_name ) ); ?></title>
	<style type="text/css">
		body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; line-height: 1.6; color: #333333; background-color: #f4f4f4; margin: 0; padding: 0; }
		.email-wrapper { max-width: 600px; margin: 0 auto; background-color: #ffffff; }
		.email-header { background-color: #d63638; color: #ffffff; padding: 20px; text-align: center; }
		.email-header h1 { margin: 0; font-size: 24px; font-weight: 600; }
		.email-content { padding: 30px; }
		.email-content p { margin: 0 0 15px 0; font-size: 16px; }
		.warning-text { color: #d63638; font-size: 14px; margin-top: 20px; }
		.email-footer { background-color: #f9f9f9; padding: 20px 30px; text-align: center; font-size: 12px; color: #999; border-top: 1px solid #ddd; }
	</style>
</head>
<body>
	<div class="email-wrapper">
		<div class="email-header">
			<h1><?php echo esc_html( $site_name ); ?></h1>
		</div>
		<div class="email-content">
			<p>
				<?php
				/* translators: %s is the user's display name */
				echo esc_html( sprintf( __( 'Hello %s,', 'guard-dog' ), $user->display_name ) );
				?>
			</p>
			<p><?php esc_html_e( "We detected unusual activity on your account. If this wasn't you, please change your password immediately and review your active sessions.", 'guard-dog' ); ?></p>
		</div>
		<div class="email-footer">
			<p>
				<?php
				/* translators: %s is the site name */
				echo esc_html( sprintf( __( 'This email was sent by %s', 'guard-dog' ), $site_name ) );
				?>
			</p>
		</div>
	</div>
</body>
</html>
