<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        @media only screen and (max-width: 620px) {
            .email-body { padding: 8px !important; }
            .email-container { border-radius: 0 !important; }
            .email-header, .email-footer, .email-divider, .email-banner { padding-left: 16px !important; padding-right: 16px !important; }
            .email-content { padding: 20px 16px !important; }
        }
    </style>
</head>
<body class="email-body" style="font-family: 'Helvetica Neue', Arial, sans-serif; background: #f9f9f9; margin: 0; padding: 12px;">
    <div class="email-container" style="width: 100%; max-width: 600px; margin: 0 auto; background: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08);">
        <!-- Header -->
        <div class="email-header" style="background: #af0017; padding: 32px 24px; text-align: center;">
            <h1 style="color: #ffffff; font-size: 22px; margin: 0; font-weight: 600; letter-spacing: 0.5px;">{{ config('app.name') }}</h1>
        </div>

        <!-- Type Banner -->
        @php
            $bannerStyles = match($type->value ?? $type) {
                'info' => 'background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6;',
                'success' => 'background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981;',
                'warning' => 'background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b;',
                'alert' => 'background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444;',
                default => 'background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6;',
            };
        @endphp
        <div class="email-banner" style="{{ $bannerStyles }} padding: 14px 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;">
            {{ $notificationTitle }}
        </div>

        <!-- Body -->
        <div class="email-content" style="padding: 24px;">
            <p style="color: #1a1a1a; font-size: 15px; line-height: 1.7; margin: 0 0 20px;">Dear {{ $user->first_name }},</p>

            <div style="background: #f9f9f9; border-left: 3px solid #af0017; padding: 20px 24px; margin: 24px 0; border-radius: 0 6px 6px 0;">
                <p style="color: #333; font-size: 14px; line-height: 1.8; margin: 0; white-space: pre-line;">{{ $notificationMessage }}</p>
            </div>

            <p style="color: #666; font-size: 13px; line-height: 1.6; margin: 24px 0 0;">If you have any questions, please contact our support team.</p>
        </div>

        <!-- Divider -->
        <div class="email-divider" style="height: 1px; background: #e5e5e5; margin: 0 24px;"></div>

        <!-- Footer -->
        <div class="email-footer" style="padding: 24px; text-align: center;">
            <p style="color: #999; font-size: 11px; margin: 0;">&copy; {{ date('Y') }} {{ config('app.name') }}. All rights reserved.</p>
        </div>
    </div>
</body>
</html>
