<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to LeagueLedger</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f9f9f9;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background-color: #2D7738;
            padding: 25px;
            text-align: center;
            color: white;
        }
        .content {
            padding: 30px;
            background-color: #ffffff;
        }
        .feature-list {
            background-color: #f5f5f5;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
        }
        .button-container {
            margin: 25px 0;
            text-align: center;
        }
        .button {
            display: inline-block;
            background-color: #2D7738;
            color: white;
            text-decoration: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 500;
        }
        .getting-started {
            margin-top: 20px;
            padding: 15px;
            background-color: #e8f5e9;
            border-radius: 5px;
            border-left: 4px solid #2D7738;
        }
        .footer {
            padding: 20px;
            text-align: center;
            font-size: 12px;
            color: #777;
            border-top: 1px solid #eaeaea;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Welcome to LeagueLedger!</h1>
        </div>
        
        <div class="content">
            <p>Hello {{ username }},</p>
            
            <p>Thank you for joining LeagueLedger! We're delighted to have you as part of our community of pub quiz enthusiasts.</p>
            
            <div class="feature-list">
                <h3>With your new account, you can:</h3>
                <ul>
                    <li><strong>Join or create teams</strong> - Connect with friends and form your pub quiz dream team</li>
                    <li><strong>Track your progress</strong> - Keep a record of all your quiz results in one place</li>
                    <li><strong>Earn achievements</strong> - Get recognition for your team's accomplishments</li>
                    <li><strong>Compete on leaderboards</strong> - See how your team ranks against others</li>
                    <li><strong>Scan QR codes</strong> - Easily record your points after quiz nights</li>
                </ul>
            </div>
            
            <div class="getting-started">
                <h3>Getting Started</h3>
                <p>The best way to begin is to either join an existing team or create your own. Visit your dashboard to get started!</p>
            </div>
            
            <div class="button-container">
                <a href="{{ base_url }}/dashboard" class="button">Go to My Dashboard</a>
            </div>
            
            <p>If you have any questions or need assistance, you can reply to this email or visit our help center.</p>
            
            <p>We're excited to see you and your team climb the leaderboards!</p>
            
            <p>Best regards,<br>The LeagueLedger Team</p>
        </div>
        
        <div class="footer">
            <p>© 2025 LeagueLedger. All rights reserved.</p>
            <p>This email was sent to welcome you to the LeagueLedger platform.</p>
        </div>
    </div>
</body>
</html>
