<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Programme Completed</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333333;
            background-color: #f4f4f5;
            margin: 0;
            padding: 0;
        }
        .email-wrapper {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .email-header {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            padding: 35px 40px;
            text-align: center;
        }
        .email-header h1 {
            color: #ffffff;
            margin: 0;
            font-size: 26px;
            font-weight: 600;
        }
        .email-header p {
            color: rgba(255, 255, 255, 0.95);
            margin: 10px 0 0 0;
            font-size: 15px;
        }
        .email-body {
            padding: 40px;
        }
        .greeting {
            font-size: 18px;
            margin-bottom: 20px;
        }
        .greeting strong {
            color: #059669;
        }
        .celebration-banner {
            text-align: center;
            font-size: 60px;
            margin-bottom: 20px;
        }
        .completion-card {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border: 2px solid #10b981;
            border-radius: 12px;
            padding: 30px;
            margin: 25px 0;
            text-align: center;
        }
        .completion-card h2 {
            margin: 0 0 15px 0;
            color: #047857;
            font-size: 22px;
        }
        .completion-card .programme-name {
            font-size: 18px;
            color: #166534;
            font-weight: 600;
        }
        .completion-badge {
            display: inline-block;
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            color: #ffffff;
            padding: 10px 30px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 15px;
        }
        .mentor-credit {
            background-color: #eff6ff;
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        .mentor-credit h4 {
            margin: 0 0 10px 0;
            color: #1d4ed8;
            font-size: 14px;
        }
        .mentor-credit .mentor-name {
            font-size: 18px;
            font-weight: 600;
            color: #1e40af;
        }
        .certificate-notice {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 2px solid #fbbf24;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        .certificate-notice h4 {
            margin: 0 0 10px 0;
            color: #92400e;
            font-size: 16px;
        }
        .certificate-notice p {
            margin: 0;
            color: #78350f;
            font-size: 14px;
        }
        .cta-button {
            display: inline-block;
            background-color: #059669;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 20px;
        }
        .cta-button:hover {
            background-color: #047857;
        }
        .next-steps {
            background-color: #faf5ff;
            border: 1px solid #e9d5ff;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
        }
        .next-steps h4 {
            margin: 0 0 15px 0;
            color: #7c3aed;
            font-size: 15px;
        }
        .next-steps ul {
            margin: 0;
            padding-left: 20px;
            color: #6b21a8;
        }
        .next-steps li {
            margin-bottom: 8px;
            font-size: 14px;
        }
        .email-footer {
            background-color: #f9fafb;
            padding: 25px 40px;
            text-align: center;
            border-top: 1px solid #e5e7eb;
        }
        .footer-text {
            color: #6b7280;
            font-size: 13px;
            margin: 0;
        }
        .footer-link {
            color: #059669;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🎉 Congratulations!</h1>
            <p>You have successfully completed your mentorship programme</p>
        </div>

        <div class="email-body">
            <div class="celebration-banner">🏆</div>

            <p class="greeting">Dear <strong>{{ $menteeName }}</strong>,</p>

            <div class="content">
                <p>We are thrilled to congratulate you on successfully completing the <strong>{{ $programmeName }}</strong> mentorship programme! This is a significant achievement that reflects your dedication and commitment to personal growth.</p>
            </div>

            <div class="completion-card">
                <h2>✨ Programme Completed ✨</h2>
                <div class="programme-name">{{ $programmeName }}</div>
                <span class="completion-badge">Completed</span>
            </div>

            <div class="mentor-credit">
                <h4>Special Thanks to Your Mentor</h4>
                <div class="mentor-name">{{ $mentorName }}</div>
                <p style="margin-top: 10px; font-size: 13px; color: #6b7280;">For their guidance and support throughout your journey</p>
            </div>

            @if($certificateEligible)
            <div class="certificate-notice">
                <h4>🎓 Certificate Available!</h4>
                <p>Your certificate of completion is now ready for download. Visit your dashboard to access and download your certificate.</p>
            </div>
            @endif

            <div class="next-steps">
                <h4>🚀 What's Next?</h4>
                <ul>
                    <li>Download your certificate from your dashboard</li>
                    <li>Share your achievement on social media</li>
                    <li>Consider becoming a mentor yourself</li>
                    <li>Explore other mentorship programmes</li>
                </ul>
            </div>

            <div style="text-align: center;">
                <a href="{{ $dashboardUrl }}" class="cta-button">📊 Go to Dashboard</a>
            </div>
        </div>

        <div class="email-footer">
            <p class="footer-text">
                This email was sent from <strong>{{ config('app.name') }}</strong><br>
                <a href="{{ config('app.url') }}" class="footer-link">{{ config('app.url') }}</a>
            </p>
            <p class="footer-text" style="margin-top: 10px;">
                Congratulations on your achievement! 🎊
            </p>
        </div>
    </div>
</body>
</html>
