<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Shift Details - {{SHIFT_TITLE}}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #2563eb;
            padding-bottom: 20px;
        }
        .logo {
            color: #2563eb;
            font-size: 24px;
            font-weight: bold;
        }
        .shift-badge {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
        }
        .content {
            background-color: white;
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #2563eb;
        }
        .info-section {
            background-color: #eff6ff;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            border: 1px solid #bfdbfe;
        }
        .info-item {
            margin: 8px 0;
            display: flex;
            align-items: center;
        }
        .info-label {
            font-weight: bold;
            display: inline-block;
            width: 120px;
            color: #1e40af;
        }
        .info-value {
            color: #2c3e50;
        }
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            background: #dbeafe;
            color: #1e40af;
        }
        .description-section {
            background: #f8fafc;
            padding: 16px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            margin: 12px 0;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #6c757d;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        .app-branding {
            color: #2563eb;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">{{ORGANIZATION_NAME}}</div>
            <div class="shift-badge">{{SHIFT_TITLE}}</div>
            <p style="margin: 10px 0 0 0; color: #6c757d;">Shift Details & Reminder</p>
        </div>

        <div class="content">
            <p>Hi {{USER_NAME}},</p>
            <p>Here are the details for your upcoming volunteer shift:</p>

            <div class="info-section">
                <h4 style="margin: 0 0 10px 0; color: #1e40af;">Shift Information:</h4>
                <div class="info-item">
                    <span class="info-label">Shift:</span>
                    <span class="info-value"><strong>{{SHIFT_TITLE}}</strong></span>
                </div>
                <div class="info-item">
                    <span class="info-label">Date:</span>
                    <span class="info-value">{{SHIFT_DATE}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Time:</span>
                    <span class="info-value">{{SHIFT_START_TIME}} — {{SHIFT_END_TIME}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Location:</span>
                    <span class="info-value">{{SHIFT_LOCATION}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Volunteers:</span>
                    <span class="info-value">{{CURRENT_VOLUNTEERS}} / {{MAX_VOLUNTEERS}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Status:</span>
                    <span class="status-badge">{{SHIFT_STATUS}}</span>
                </div>
            </div>

            {{#if SHIFT_DESCRIPTION}}
            <div class="description-section">
                <strong>Description:</strong>
                <p style="margin: 8px 0 0 0;">{{SHIFT_DESCRIPTION}}</p>
            </div>
            {{/if}}
        </div>

        <div class="footer">
            <p>This reminder was sent via <span class="app-branding">{{ORGANIZATION_NAME}}</span></p>
            <p>Thank you for volunteering!</p>
        </div>
    </div>
</body>
</html>
