const madarakaDayPosterPrompt = {
  prompt: "Create a professional, high-resolution political commemorative poster for Kenya's Madaraka Day 2025 in a clean, modern, patriotic style.",
  
  mainSubject: {
    description: "A confident, approachable Kenyan man, with short neatly trimmed hair, a well-groomed beard, warm friendly eyes, and a genuine smile. He is wearing a tailored royal blue suit jacket over a light blue collared shirt, no tie, with arms crossed confidently in front of his chest. Include a silver watch on his left wrist.",
    style: "Photorealistic quality, studio lighting with soft highlights on the face and suit, sharp detail",
    faceReplacement: "[INSERT HEADSHOT URL OR DESCRIPTION HERE]"
  },

  layout: {
    format: "Vertical A4/A3 poster format (portrait orientation)",
    headline: {
      text: "Happy Madaraka Day!",
      styling: {
        Happy: "black",
        Madaraka: "vibrant red",
        Day: "green",
        font: "modern sans-serif, bold"
      }
    },
    subheadline: "Celebrating 63 years of self-rule and embracing the promise of our waters.",
    hashtags: "#MadarakaDay2026 #KenyaAt63",
    bottomLeft: {
      separator: "thin green vertical line",
      coatOfArms: "Official coat of arms of Kenya (small)",
      textBlock: [
        "Hon. Alex Kinyanjui",
        "Mwananchi Kawaida",
        "The Republic of Kenya"
      ]
    }
  },

  background: {
    elements: [
      "Semi-transparent Kenyan flag (red, black, green, white) subtly integrated",
      "Faint outline of the Kenyan coat of arms (lion, shield, rooster, spears) in the center background",
      "Soft gradient sky blue to white background",
      "Very subtle architectural elements of Nairobi skyline or coastal waters (Blue Economy theme) in the distance, kept elegant and not overpowering"
    ]
  },

  overallStyle: {
    mood: "Patriotic yet professional and modern",
    qualities: [
      "High contrast, premium feel",
      "Excellent typography hierarchy",
      "Cinematic lighting",
      "Photorealistic portrait blended seamlessly with graphic design elements",
      "Clean negative space, balanced composition",
      "8K resolution, sharp details, vibrant but dignified color palette"
    ]
  }
};

// Function to generate the full prompt string for AI image generators
function generateFullPrompt(customHeadshot = null) {
  const promptObj = { ...madarakaDayPosterPrompt };
  
  if (customHeadshot) {
    promptObj.mainSubject.faceReplacement = customHeadshot;
  }
  
  // Combine into a single detailed prompt string
  let fullPrompt = `${promptObj.prompt}\n\n`;
  
  fullPrompt += `**Main Subject:** ${promptObj.mainSubject.description}. ${promptObj.mainSubject.style}. Replace the man's face with this reference: ${promptObj.mainSubject.faceReplacement}\n\n`;
  
  fullPrompt += `**Layout:** ${promptObj.layout.format}\n`;
  fullPrompt += `- Top-left: ${promptObj.layout.headline.text} (${Object.entries(promptObj.layout.headline.styling).map(([k,v]) => `${k} in ${v}`).join(', ')})\n`;
  fullPrompt += `- Subtext: "${promptObj.layout.subheadline}"\n`;
  fullPrompt += `- Hashtags: ${promptObj.layout.hashtags}\n`;
  fullPrompt += `- Bottom-left: ${promptObj.layout.bottomLeft.coatOfArms} | ${promptObj.layout.bottomLeft.textBlock.join(' | ')}\n\n`;
  
  fullPrompt += `**Background:** ${promptObj.background.elements.join('. ')}\n\n`;
  fullPrompt += `**Style:** ${promptObj.overallStyle.mood}. ${promptObj.overallStyle.qualities.join('. ')}`;
  
  return fullPrompt;
}

// Example usage:
// console.log(generateFullPrompt("https://example.com/headshot.jpg"));
