{% extends "emails/base.html" %}

{% block title %}Submission Requires Changes - ThrillWiki{% endblock %}

{% block content %}
<h2>Your Submission Needs Revision ⚠️</h2>

<p>Hello {{ submission.user.first_name|default:submission.user.email }},</p>

<p>Thank you for your contribution to ThrillWiki. After careful review, our moderation team has determined that your submission requires some changes before it can be approved.</p>

<div class="warning-box">
    <p><strong>Submission Details:</strong></p>
    <ul style="margin: 10px 0; padding-left: 20px;">
        <li><strong>Title:</strong> {{ submission.title }}</li>
        <li><strong>Type:</strong> {{ submission.get_submission_type_display }}</li>
        <li><strong>Entity:</strong> {{ submission.entity }}</li>
        <li><strong>Submitted:</strong> {{ submission.submitted_at|date:"F d, Y g:i A" }}</li>
        <li><strong>Reviewed by:</strong> {{ submission.reviewed_by.email }}</li>
    </ul>
</div>

{% if submission.rejection_reason %}
<h3>Reason for Rejection:</h3>
<p style="background: #fef3c7; padding: 15px; border-radius: 4px; border-left: 4px solid #f59e0b;">
    {{ submission.rejection_reason }}
</p>
{% endif %}

<h3>Common Reasons for Rejection:</h3>
<ul style="margin: 10px 0; padding-left: 20px;">
    <li>Insufficient or inaccurate information</li>
    <li>Missing required sources or citations</li>
    <li>Duplicate submission</li>
    <li>Information doesn't match our verification standards</li>
    <li>Photos don't meet quality guidelines</li>
</ul>

<div style="text-align: center; margin: 30px 0;">
    <a href="{{ submission_url }}" class="button">Review Your Submission</a>
</div>

<h3>What you can do:</h3>
<ol style="margin: 10px 0; padding-left: 20px;">
    <li>Review the moderator's feedback carefully</li>
    <li>Gather additional information or sources if needed</li>
    <li>Submit a new, corrected version</li>
    <li>Contact the moderation team if you have questions</li>
</ol>

<div class="info-box">
    <p><strong>💡 Tips for Successful Submissions:</strong></p>
    <ul style="margin: 10px 0; padding-left: 20px;">
        <li>Double-check all information before submitting</li>
        <li>Include sources when possible</li>
        <li>Provide clear descriptions of your changes</li>
        <li>Follow our submission guidelines</li>
    </ul>
</div>

<p style="margin-top: 30px;">We appreciate your contributions and look forward to your revised submission!</p>
<p><strong>The ThrillWiki Moderation Team</strong></p>

<p style="font-size: 12px; color: #666; margin-top: 20px;">
    <em>Questions about this decision? Reply to this email or contact us at support@thrillwiki.com</em>
</p>
{% endblock %}
