<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Session Rescheduled</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, #8b5cf6 0%, #a78bfa 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: #8b5cf6;
        }
        .content {
            margin-bottom: 30px;
        }
        .session-details {
            background-color: #faf5ff;
            border: 1px solid #e9d5ff;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        .session-details h3 {
            margin: 0 0 15px 0;
            color: #7c3aed;
            font-size: 16px;
        }
        .detail-row {
            display: flex;
            margin-bottom: 10px;
            font-size: 14px;
        }
        .detail-label {
            font-weight: 600;
            color: #374151;
            width: 120px;
            flex-shrink: 0;
        }
        .detail-value {
            color: #6b7280;
        }
        .highlight {
            background-color: #f3e8ff;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 600;
            color: #7c3aed;
        }
        .meeting-link {
            display: inline-block;
            background-color: #8b5cf6;
            color: #ffffff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 15px;
        }
        .meeting-link:hover {
            background-color: #7c3aed;
        }
        .info-box {
            background-color: #fffbeb;
            border: 1px solid #fde68a;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            font-size: 14px;
            color: #92400e;
        }
        .cta-button {
            display: inline-block;
            background-color: #8b5cf6;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 10px;
        }
        .cta-button:hover {
            background-color: #7c3aed;
        }
        .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: #8b5cf6;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🔄 Session Rescheduled</h1>
            <p>Your mentorship session has been rescheduled</p>
        </div>

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

            <div class="content">
                <p>Your mentorship session <strong>"{{ $sessionTitle }}"</strong> has been rescheduled to a new date and time. Please update your calendar accordingly.</p>
            </div>

            <div class="session-details">
                <h3>📅 New Session Schedule</h3>
                <div class="detail-row">
                    <span class="detail-label">Session Title:</span>
                    <span class="detail-value">{{ $sessionTitle }}</span>
                </div>
                <div class="detail-row">
                    <span class="detail-label">New Date & Time:</span>
                    <span class="detail-value"><span class="highlight">{{ $newDateTime }}</span></span>
                </div>
                @if($meetingLink)
                <div class="detail-row">
                    <span class="detail-label">Meeting Link:</span>
                    <span class="detail-value">
                        <a href="{{ $meetingLink }}" class="meeting-link">Join Meeting</a>
                    </span>
                </div>
                @endif
            </div>

            <div class="info-box">
                <strong>📌 Important:</strong> The meeting link remains the same if this is an online session. Please make sure to update your calendar and join on time for the new scheduled date.
            </div>

            <div style="text-align: center; margin-top: 30px;">
                <a href="{{ $sessionUrl }}" class="cta-button">View Updated Session</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;">
                If you have any questions, please contact our support team.
            </p>
        </div>
    </div>
</body>
</html>
