<?php
/**
 * Email Template: Welcome & Account Verification
 *
 * This template is used when a new user registers.
 * It welcomes them and provides a link to verify their email address.
 *
 * @var string $username The user's username.
 * @var string $verification_link The unique URL to verify their email.
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to Zeeloq!</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <style>
        /* Basic Styles */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
            background-color: #f3f4f6;
        }
        .container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .content {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 32px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        h1 {
            font-size: 28px;
            font-weight: 700;
            color: #374151;
            margin-top: 0;
        }
        p {
            font-size: 16px;
            color: #4b5563;
            line-height: 1.6;
        }
        .footer {
            text-align: center;
            margin-top: 24px;
            color: #9ca3af;
            font-size: 14px;
        }
        .icon {
            display: block;
            margin: 0 auto 20px;
        }
        .button-cta {
            display: inline-block;
            background-color: #2563eb;
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 8px;
            margin: 24px 0;
        }
        .fallback-link {
            font-size: 14px;
            color: #6b7280;
            margin-top: 20px;
        }
        .fallback-link a {
            color: #2563eb;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="content">
            <!-- Welcome Icon -->
            <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#2563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                <polyline points="22,6 12,13 2,6"></polyline>
            </svg>

            <h1>Welcome to Zeeloq!</h1>
            <p>Hello <?php echo htmlspecialchars($username); ?>, we're excited to have you join our community.</p>
            <p>To get started, please click the button below to confirm your email address and activate your account.</p>

            <!-- Call-to-Action Button -->
            <a href="<?php echo htmlspecialchars($verification_link); ?>" target="_blank" class="button-cta">
                Verify Your Email
            </a>

            <p class="fallback-link">
                If the button doesn't work, copy and paste this link into your browser:<br>
                <a href="<?php echo htmlspecialchars($verification_link); ?>" target="_blank"><?php echo htmlspecialchars($verification_link); ?></a>
            </p>
        </div>
        <div class="footer">
            <p>&copy; <?php echo date("Y"); ?> Zeeloq. All rights reserved.</p>
        </div>
    </div>
</body>
</html>
