export const emailLayout = (content: string, title: string, projectName: string = 'Platform') => {
    return `
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <style>
        body {
          font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
          background-color: #f8fafc;
          margin: 0;
          padding: 0;
          color: #1e293b;
        }
        .container {
          max-width: 600px;
          margin: 40px auto;
          background: #ffffff;
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
          border: 1px solid #e2e8f0;
        }
        .header {
          background-color: #061226; /* Primary Navy */
          padding: 40px 30px;
          text-align: center;
        }
        .header h1 {
          color: #ffffff;
          margin: 0;
          font-size: 28px;
          letter-spacing: -0.025em;
          font-weight: 700;
        }
        .header p {
          color: #94a3b8;
          margin: 10px 0 0;
          font-size: 14px;
        }
        .content {
          padding: 40px 35px;
          line-height: 1.6;
        }
        .content h2 {
          color: #061226;
          font-size: 22px;
          margin-bottom: 20px;
          font-weight: 600;
        }
        .button {
          display: inline-block;
          background-color: #061226;
          color: #ffffff !important;
          padding: 14px 32px;
          text-decoration: none;
          border-radius: 8px;
          font-weight: 600;
          margin: 25px 0;
          text-align: center;
          transition: background-color 0.2s;
        }
        .footer {
          background-color: #f1f5f9;
          padding: 30px;
          text-align: center;
          font-size: 12px;
          color: #64748b;
          border-top: 1px solid #e2e8f0;
        }
        .footer a {
          color: #3399ff;
          text-decoration: none;
        }
        .accent-bar {
          height: 4px;
          background: linear-gradient(90deg, #061226 0%, #3399ff 50%, #ffdf66 100%);
        }
      </style>
    </head>
    <body>
      <div class="container">
        <div class="header">
          <h1>${projectName}</h1>
          <p>Learn. Build. Grow.</p>
        </div>
        <div class="accent-bar"></div>
        <div class="content">
          <h2>${title}</h2>
          ${content}
        </div>
        <div class="footer">
          <p>&copy; ${new Date().getFullYear()} ${projectName}. All rights reserved.</p>
          <p>You received this email because you signed up for ${projectName}.</p>
          <p><a href="#">Unsubscribe</a> | <a href="#">Privacy Policy</a></p>
        </div>
      </div>
    </body>
    </html>
  `;
};
