<?php
/**
 * Email Template: Ad Submission Confirmation
 *
 * This template is sent to a user after they submit a new
 * advertisement, confirming it has been received and is pending review.
 *
 * @var string $username The user's username.
 * @var string $ad_title The title of the submitted ad.
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>We've Received Your Ad!</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <style>
        /* Basic Styles */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
            background-color: #f3f4f6;
        }
        .container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .content {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 32px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        h1 {
            font-size: 28px;
            font-weight: 700;
            color: #374151; /* A neutral, professional color */
            margin-top: 0;
        }
        p {
            font-size: 16px;
            color: #4b5563;
            line-height: 1.6;
        }
        .footer {
            text-align: center;
            margin-top: 24px;
            color: #9ca3af;
            font-size: 14px;
        }
        .icon {
            display: block;
            margin: 0 auto 20px;
        }
        .note {
            background-color: #f3f4f6;
            padding: 16px;
            border-radius: 8px;
            margin-top: 24px;
        }
        .note p {
            margin: 0;
            font-size: 14px;
            color: #6b7280;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="content">
            <!-- Icon for visual appeal -->
            <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#1e40af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
                <polyline points="22 4 12 14.01 9 11.01"></polyline>
            </svg>

            <h1>Submission Received!</h1>
            <p>Hello <?php echo htmlspecialchars($username); ?>,</p>
            <p>Just a quick confirmation that we've successfully received your ad submission: "<strong><?php echo htmlspecialchars($ad_title); ?></strong>."</p>
            <p>It's now in the queue for our team to review. We'll have it checked out shortly!</p>
            
            <!-- Note Section -->
            <div class="note">
                <p>We typically review submissions within 24 hours. You'll get another email from us the moment it's approved and goes live.</p>
            </div>

            <p style="margin-top: 24px;">Thanks for being a part of the community,<br>The Zeeloq Team</p>
        </div>
        <div class="footer">
            <p>&copy; <?php echo date("Y"); ?> Zeeloq. All rights reserved.</p>
        </div>
    </div>
</body>
</html>
