<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Comment Requires Changes</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; background-color: #f4f4f4;">
    <div style="max-width: 600px; margin: 20px auto; background-color: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
        <!-- Header -->
        <div style="background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); padding: 30px 20px; text-align: center;">
            <div style="font-size: 48px; margin-bottom: 10px;">ℹ️</div>
            <h1 style="color: #ffffff; margin: 0; font-size: 24px; font-weight: 600;">
                Your Comment Requires Changes
            </h1>
        </div>
        
        <!-- Content -->
        <div style="padding: 30px 20px;">
            <p style="font-size: 16px; margin-bottom: 20px; text-align: center;">
                Your comment on <strong>{{ content_object }}</strong> did not meet our community guidelines.
            </p>
            
            <!-- Info Message -->
            <div style="background: #fff3cd; padding: 20px; border-left: 4px solid #ffc107; border-radius: 4px; margin: 25px 0;">
                <p style="margin: 0 0 10px 0; font-weight: 600; color: #856404;">
                    ⚠️ Why was my comment not approved?
                </p>
                <p style="margin: 0; color: #856404; font-size: 14px;">
                    Comments must follow our community guidelines. Common reasons for rejection include inappropriate language, spam, off-topic content, or violations of our terms of service.
                </p>
            </div>
            
            <!-- Comment Box -->
            <div style="background: #fff5f5; padding: 20px; border-left: 4px solid #e74c3c; border-radius: 4px; margin: 25px 0;">
                <p style="margin: 0 0 10px 0; font-size: 12px; font-weight: 600; color: #c0392b; text-transform: uppercase; letter-spacing: 0.5px;">
                    Your Comment
                </p>
                <p style="margin: 0; color: #555; white-space: pre-wrap;">{{ comment.content }}</p>
            </div>
            
            <!-- What to Do -->
            <div style="background: #e3f2fd; padding: 20px; border-radius: 4px; margin: 25px 0;">
                <p style="margin: 0 0 15px 0; font-weight: 600; color: #1976d2;">
                    📝 What can you do?
                </p>
                <ul style="margin: 0; padding-left: 20px; color: #555;">
                    <li style="margin-bottom: 8px;">Review our <a href="{{ protocol }}://{{ domain }}/guidelines/" style="color: #1976d2;">community guidelines</a></li>
                    <li style="margin-bottom: 8px;">Make sure your comment is respectful and on-topic</li>
                    <li style="margin-bottom: 8px;">Submit a new comment that follows the guidelines</li>
                    <li>Contact us if you have questions</li>
                </ul>
            </div>
            
            <!-- Button -->
            <div style="text-align: center; margin: 30px 0 20px 0;">
                <a href="{{ protocol }}://{{ domain }}/guidelines/" 
                   style="display: inline-block; background: #2196f3; color: #ffffff; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: 600; box-shadow: 0 2px 4px rgba(33, 150, 243, 0.4);">
                    View Community Guidelines
                </a>
            </div>
            
            <!-- Rejection Details -->
            <div style="margin-top: 25px; padding-top: 20px; border-top: 1px solid #e0e0e0; font-size: 13px; color: #777;">
                <p style="margin: 5px 0;">
                    <strong>Reviewed:</strong> {{ comment.updated_at|date:"F d, Y \a\t g:i A" }}
                </p>
                {% if moderator %}
                <p style="margin: 5px 0;">
                    <strong>Reviewed by:</strong> {{ moderator.get_full_name|default:moderator.username }}
                </p>
                {% endif %}
            </div>
        </div>
        
        <!-- Footer -->
        <div style="background: #f8f9fa; padding: 20px; text-align: center; border-top: 1px solid #e0e0e0;">
            <p style="margin: 0; font-size: 12px; color: #888;">
                We appreciate your understanding in keeping our community safe and welcoming.
            </p>
            <p style="margin: 10px 0 0 0; font-size: 12px; color: #888;">
                © {{ site_name }} - All rights reserved
            </p>
        </div>
    </div>
</body>
</html>