<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Session Cancelled</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, #dc2626 0%, #ef4444 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: #dc2626;
        }
        .content {
            margin-bottom: 30px;
        }
        .cancel-details {
            background-color: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        .cancel-details h3 {
            margin: 0 0 15px 0;
            color: #dc2626;
            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;
        }
        .reason-box {
            background-color: #fff1f2;
            border-left: 4px solid #ef4444;
            padding: 15px;
            margin: 20px 0;
            font-size: 14px;
        }
        .reason-box strong {
            color: #dc2626;
        }
        .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;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>❌ Session Cancelled</h1>
            <p>Your mentorship session has been cancelled</p>
        </div>

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

            <div class="content">
                <p>We regret to inform you that your mentorship session <strong>"{{ $sessionTitle }}"</strong> has been cancelled.</p>
            </div>

            <div class="cancel-details">
                <h3>📋 Cancelled 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">Status:</span>
                    <span class="detail-value" style="color: #dc2626; font-weight: 600;">Cancelled</span>
                </div>
            </div>

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

            <div class="info-box">
                <strong>💡 What's Next?</strong><br>
                You can schedule a new session through your dashboard. If you believe this cancellation was made in error, please contact your mentorship partner or our support team.
            </div>

            <div style="text-align: center; margin-top: 30px;">
                <a href="{{ route('mentorship.sessions.index') }}" class="cta-button">View All Sessions</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>
