<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Certificate Ready</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, #f59e0b 0%, #fbbf24 100%);
            padding: 30px 40px;
            text-align: center;
        }
        .email-header h1 {
            color: #ffffff;
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }
        .email-header p {
            color: rgba(255, 255, 255, 0.95);
            margin: 8px 0 0 0;
            font-size: 14px;
        }
        .email-body {
            padding: 40px;
        }
        .greeting {
            font-size: 18px;
            margin-bottom: 20px;
        }
        .greeting strong {
            color: #f59e0b;
        }
        .content {
            margin-bottom: 30px;
        }
        .celebration-icon {
            font-size: 48px;
            text-align: center;
            margin-bottom: 20px;
        }
        .certificate-details {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 2px solid #fbbf24;
            border-radius: 8px;
            padding: 25px;
            margin: 20px 0;
            text-align: center;
        }
        .certificate-details h3 {
            margin: 0 0 20px 0;
            color: #92400e;
            font-size: 18px;
        }
        .certificate-number {
            font-size: 14px;
            color: #78350f;
            margin-bottom: 5px;
        }
        .certificate-number span {
            font-weight: 600;
            font-family: 'Courier New', monospace;
            background-color: #fef3c7;
            padding: 4px 10px;
            border-radius: 4px;
        }
        .programme-name {
            font-size: 20px;
            font-weight: 600;
            color: #92400e;
            margin: 15px 0;
        }
        .badge {
            display: inline-block;
            background-color: #f59e0b;
            color: #ffffff;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 25px;
        }
        .btn-primary {
            display: inline-block;
            background-color: #f59e0b;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
        }
        .btn-primary:hover {
            background-color: #d97706;
        }
        .btn-secondary {
            display: inline-block;
            background-color: #ffffff;
            color: #f59e0b;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            border: 2px solid #f59e0b;
        }
        .btn-secondary:hover {
            background-color: #fffbeb;
        }
        .verification-info {
            background-color: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            font-size: 14px;
            color: #166534;
        }
        .verification-info a {
            color: #15803d;
            font-weight: 600;
        }
        .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: #f59e0b;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🎉 Certificate Ready!</h1>
            <p>Congratulations on completing your mentorship programme</p>
        </div>

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

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

            <div class="content">
                <p>We are thrilled to inform you that your <strong>Certificate of Completion</strong> for the mentorship programme is now ready! This certificate recognizes your dedication and successful completion of the programme.</p>
            </div>

            <div class="certificate-details">
                <span class="badge">Certificate of Completion</span>
                <h3>{{ $programmeName }}</h3>
                <p class="certificate-number">Certificate Number: <span>{{ $certificateNumber }}</span></p>
            </div>

            <div class="verification-info">
                <strong>🔒 Certificate Verification:</strong><br>
                Your certificate can be verified online at:<br>
                <a href="{{ $verificationUrl }}">{{ $verificationUrl }}</a>
            </div>

            <div class="action-buttons">
                <a href="{{ $downloadUrl }}" class="btn-primary">📥 Download Certificate</a>
                <a href="{{ $dashboardUrl }}" class="btn-secondary">📊 View 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>
