<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Your PACE TeenzFest Complimentary Ticket</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background-color: #f8f9fa;
            padding: 20px;
            text-align: center;
            border-bottom: 3px solid #D4AF37; /* Gold border for complimentary */
        }
        .header img {
            max-width: 200px;
            height: auto;
            margin-bottom: 15px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        .content {
            padding: 20px;
        }
        .ticket-details {
            background-color: #f8f9fa;
            padding: 15px;
            margin: 20px 0;
            border-radius: 5px;
            border-left: 4px solid #D4AF37;
        }
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #D4AF37; /* Gold button */
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin: 20px 0;
            font-weight: bold;
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            text-align: center;
            font-size: 12px;
            color: #666;
        }
        .badge {
            display: inline-block;
            padding: 4px 8px;
            background-color: #D4AF37;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="https://stagingpacesetter.vouchatt.com/assets/img/logo/logo.png" alt="PACE TeenzFest Logo">
            <h1>PACE TeenzFest 2025</h1>
            <p>Your Complimentary Ticket Confirmation</p>
        </div>
        
        <div class="content">
            <p>Dear {{ $complimentaryCode->recipient_name }},</p>
            
            <p>We are delighted to offer you complimentary access to {{ $event->name }}. Your ticket details are below:</p>
            
            <div class="ticket-details">
                <p><strong>Event:</strong> {{ $event->name }}</p>
                <p><strong>Date:</strong> {{ \Carbon\Carbon::parse($event->date)->format('l, jS F Y') }}</p>
                <p><strong>Venue:</strong> {{ $event->venue }}</p>
                <p><strong>Ticket Type:</strong> 
                    @if(isset($complimentaryCode->ticket_type) && $complimentaryCode->ticket_type === 'vip')
                        <span style="color: #6B46C1; font-weight: bold;">VIP COMPLIMENTARY</span>
                    @else
                        <span style="color: #D4AF37; font-weight: bold;">COMPLIMENTARY</span>
                    @endif
                </p>
                <p><strong>Number of Tickets:</strong> {{ $complimentaryCode->ticket_quantity }}</p>
                <p><strong>Reference Code:</strong> {{ $complimentaryCode->code }}</p>
            </div>

            <p>To access and download your e-ticket, please click the button below:</p>
            
            <a href="{{ $downloadUrl }}" class="button">Download Ticket</a>
            
            <p>Important Information:</p>
            <ul>
                <li>Please arrive at least 30 minutes before the event starts</li>
                <li>Bring a valid form of identification</li>
                <li>Your ticket will be scanned at the entrance</li>
                @if(isset($complimentaryCode->ticket_type) && $complimentaryCode->ticket_type === 'vip')
                <li>Please proceed to the VIP entrance for priority access</li>
                @endif
            </ul>
        </div>

        <div class="footer">
            <p>This is an automated message, please do not reply to this email.</p>
            <p>For any queries, please contact us at support@paceteenzfest.com</p>
            <p>&copy; {{ date('Y') }} PACE TeenzFest. All rights reserved.</p>
        </div>
    </div>
</body>
</html>