<?php
// Variables passed from controller
$memberName = isset($memberName) ? $memberName : '';
$memberEmail = isset($memberEmail) ? $memberEmail : '';
$registrationDate = isset($registrationDate) ? $registrationDate : date('jS F Y H:i');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <title>New Member Registration - REDD+</title>
    <style>
        body { font-family: 'Montserrat', sans-serif; color: #333; line-height: 1.6; background: #f7f7f7; padding: 20px 0; }
        .container { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); border-top: 4px solid #ED1C24; }
        .header { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
        .content { padding: 20px; }
        .footer { padding: 20px; text-align: center; font-size: 12px; color: #777; background: #f9f9f9; }
        .btn { display: inline-block; padding: 10px 20px; background: #ED1C24; color: #fff; text-decoration: none; border-radius: 4px; margin-top: 15px; }
        .details { margin: 15px 0; }
        .details-item { margin-bottom: 10px; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="https://lukhwells.com/logo-black.png" alt="Logo" style="height: 60px;">
            <h2 style="margin-bottom: 0; color: #ED1C24;">New Member Registration</h2>
        </div>
        
        <div class="content">
            <p>Dear Admin,</p>
            
            <p>A new client has registered on UGA REDD+ portal:</p>
            
            <div class="details">
                <div class="details-item"><strong>Client Name:</strong> <?= htmlspecialchars($memberName) ?></div>
                <div class="details-item"><strong>Email Address:</strong> <?= htmlspecialchars($memberEmail) ?></div>
                <div class="details-item"><strong>Registration Date:</strong> <?= $registrationDate ?></div>
            </div>
            
            <p>Please review the member's details in the admin dashboard and complete any necessary verification steps.</p>
            
            <a href="<?= base_url('administrator/redd') ?>" class="btn">View Member Dashboard</a>
        </div>
        
        <div class="footer">
            <p>UGA REDD+<br>
            <a href="https://lukhwells.com" style="color: #ED1C24;">lukhwells.com</a></p>
        </div>
    </div>
</body>
</html>