<!DOCTYPE html>
<html>
<head>
  <style>
    body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
    .container { max-width: 600px; margin: 0 auto; padding: 20px; }
    .header { background-color: #16a34a; color: white; padding: 24px; text-align: center; border-radius: 8px 8px 0 0; }
    .content { padding: 24px; background-color: #f9f9f9; }
    .footer { text-align: center; padding: 20px; font-size: 12px; color: #777; }
    .button {
      display: inline-block;
      padding: 12px 24px;
      background-color: #16a34a;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      margin: 16px 0;
      font-weight: bold;
    }
    .book-title { font-weight: bold; color: #111; }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>🎉 Your book is live!</h1>
    </div>
    <div class="content">
      <p>Hi {{name}},</p>
      <p>Great news — your book <span class="book-title">"{{bookTitle}}"</span> has been approved by our team and is now published in the Xania Bookstore.</p>
      <p>Readers can discover and purchase it right away.</p>
      <p style="text-align:center;">
        <a href="{{bookUrl}}" class="button">View your book</a>
      </p>
      <p>You can track views, sales, and earnings any time from your <a href="{{dashboardUrl}}">author dashboard</a>.</p>
      <p>Congratulations and happy publishing!<br>The Xania Bookstore Team</p>
    </div>
    <div class="footer">
      <p>&copy; {{year}} Xania Bookstore. All rights reserved.</p>
    </div>
  </div>
</body>
</html>
