<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mentor Reassigned</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, #0284c7 0%, #38bdf8 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.9);
            margin: 8px 0 0 0;
            font-size: 14px;
        }
        .email-body {
            padding: 40px;
        }
        .greeting {
            font-size: 18px;
            margin-bottom: 20px;
        }
        .greeting strong {
            color: #0284c7;
        }
        .content {
            margin-bottom: 30px;
        }
        .reassign-card {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 2px solid #38bdf8;
            border-radius: 8px;
            padding: 25px;
            margin: 20px 0;
            text-align: center;
        }
        .reassign-card h3 {
            margin: 0 0 15px 0;
            color: #0369a1;
            font-size: 16px;
        }
        .mentor-info {
            display: inline-block;
            background-color: #ffffff;
            padding: 15px 30px;
            border-radius: 8px;
            margin-top: 10px;
            border: 1px solid #bae6fd;
        }
        .mentor-info .name {
            font-size: 20px;
            font-weight: 600;
            color: #0369a1;
        }
        .mentor-info .role {
            font-size: 12px;
            color: #0284c7;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .programme-info {
            background-color: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
        }
        .programme-info h4 {
            margin: 0 0 8px 0;
            color: #166534;
            font-size: 14px;
        }
        .reason-box {
            background-color: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 15px 20px;
            margin: 20px 0;
            font-size: 14px;
        }
        .reason-box strong {
            color: #92400e;
        }
        .info-box {
            background-color: #eff6ff;
            border: 1px solid #bfdbfe;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            font-size: 14px;
            color: #1e40af;
        }
        .cta-button {
            display: inline-block;
            background-color: #0284c7;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 10px;
        }
        .cta-button:hover {
            background-color: #0369a1;
        }
        .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: #0284c7;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🔄 Mentor Reassigned</h1>
            <p>You have been assigned a new mentor</p>
        </div>

        <div class="email-body">
            <p class="greeting">Hello <strong>{{ $menteeName }}</strong>,</p>

            <div class="content">
                <p>We wanted to inform you that you have been reassigned to a new mentor in the <strong>{{ $programmeName }}</strong> mentorship programme. This change was made to ensure you continue receiving quality guidance and support.</p>
            </div>

            <div class="reassign-card">
                <h3>👨‍🏫 Your New Mentor</h3>
                <div class="mentor-info">
                    <div class="role">Mentor</div>
                    <div class="name">{{ $newMentorName }}</div>
                </div>
            </div>

            <div class="programme-info">
                <h4>📚 Programme Details</h4>
                <p style="margin: 0; color: #374151;">{{ $programmeName }}</p>
            </div>

            @if($reason)
            <div class="reason-box">
                <strong>Reason for Reassignment:</strong><br>
                {{ $reason }}
            </div>
            @endif

            <div class="info-box">
                <strong>📌 What's Next?</strong><br>
                Your new mentor will reach out to you soon to schedule your next session. Your previous progress and goals have been preserved and shared with your new mentor to ensure continuity in your mentorship journey.
            </div>

            <div style="text-align: center; margin-top: 30px;">
                <a href="{{ $dashboardUrl }}" class="cta-button">📊 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;">
                We're here to support your continued growth!
            </p>
        </div>
    </div>
</body>
</html>
