<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background-color: #8b5cf6;
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 5px;
        }
        .content {
            background-color: #f9fafb;
            padding: 20px;
            margin-top: 20px;
            border-radius: 5px;
        }
        .comment-box {
            background-color: white;
            padding: 20px;
            margin: 15px 0;
            border-left: 4px solid #8b5cf6;
            border-radius: 5px;
        }
        .comment-author {
            font-weight: bold;
            color: #8b5cf6;
            margin-bottom: 10px;
        }
        .comment-text {
            color: #374151;
            font-style: italic;
        }
        .task-info {
            background-color: #f3f4f6;
            padding: 15px;
            margin: 15px 0;
            border-radius: 5px;
        }
        .button {
            display: inline-block;
            padding: 12px 24px;
            background-color: #3b82f6;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 15px;
        }
        .footer {
            text-align: center;
            color: #6b7280;
            font-size: 12px;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>💬 {{ _('You Were Mentioned') }}</h1>
    </div>
    
    <div class="content">
        <p>Hello {{ user.display_name }},</p>
        
        <p><strong>{{ comment.user.display_name }}</strong> mentioned you in a comment:</p>
        
        <div class="comment-box">
            <div class="comment-author">{{ comment.user.display_name }}</div>
            <div class="comment-text">{{ comment.content }}</div>
        </div>
        
        <div class="task-info">
            <strong>Task:</strong> {{ task.name }}<br>
            <strong>Project:</strong> {{ task.project.name if task.project else 'N/A' }}
        </div>
        
        <center>
            <a href="{{ url_for('tasks.edit_task', task_id=task.id, _external=True) }}" class="button">
                {{ _('View Task & Reply') }}
            </a>
        </center>
    </div>
    
    <div class="footer">
        <p>TimeTracker - Time Tracking & Project Management</p>
        <p>To manage your notification preferences, visit your user settings.</p>
    </div>
</body>
</html>

