<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mentorship Session Scheduled</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: 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: #059669;
        }
        .content {
            margin-bottom: 30px;
        }
        .session-details {
            background-color: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        .session-details h3 {
            margin: 0 0 15px 0;
            color: #059669;
            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;
        }
        .meeting-link {
            display: inline-block;
            background-color: #059669;
            color: #ffffff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 15px;
        }
        .meeting-link:hover {
            background-color: #047857;
        }
        .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: #059669;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 10px;
        }
        .cta-button:hover {
            background-color: #047857;
        }
        .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;
        }
        .divider {
            height: 1px;
            background-color: #e5e7eb;
            margin: 25px 0;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>📅 Mentorship Session Scheduled</h1>
            <p>Your mentorship session has been scheduled</p>
        </div>

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

            <div class="content">
                <p>A new mentorship session has been scheduled with <strong>{{ $otherName }}</strong>. We're excited to help you make progress on your mentorship journey!</p>
            </div>

            <div class="session-details">
                <h3>📋 Session Details</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">Programme:</span>
                    <span class="detail-value">{{ $programmeName }}</span>
                </div>
                <div class="detail-row">
                    <span class="detail-label">Date & Time:</span>
                    <span class="detail-value">{{ $dateTime }}</span>
                </div>
                <div class="detail-row">
                    <span class="detail-label">Session Type:</span>
                    <span class="detail-value">{{ $type }}</span>
                </div>
                @if($type === 'Online' && $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>
                @elseif($venue)
                <div class="detail-row">
                    <span class="detail-label">Venue:</span>
                    <span class="detail-value">{{ $venue }}</span>
                </div>
                @endif
            </div>

            <div class="info-box">
                <strong>💡 Tip:</strong> Please make sure to join the session on time. If you need to reschedule or have any questions, please contact your mentorship partner or our support team.
            </div>

            <div style="text-align: center; margin-top: 30px;">
                <a href="{{ $sessionUrl }}" class="cta-button">View Session Details</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>
