Build a production-ready web application called PROMPT MAKER .
The application should transform a user's short idea into a complete, structured, paste-ready prompt for AI platforms such as Claude, ChatGPT, Trae, Gemini, and Universal AI tools.
Core requirements:
Use Next.js App Router and TypeScript.
Create a real working application as the first screen, not a marketing landing page.
Allow users to enter a core idea.
Include project categories: Web App, Game, Mobile, Automation, Content, and Other.
Include AI targets: Claude, ChatGPT, Trae, Gemini, and Universal.
Include detail levels: Concise, Balanced, and Comprehensive.
Allow optional technology stack and constraints.
Allow users to select the output language.
Generate structured output containing a title, summary, paste-ready prompt, and assumptions.
Use Gemini through a secure server-side API route.
Validate requests and AI responses with Zod.
Add safe model fallback handling.
Add prompt copy and text download actions.
Store the latest 20 prompts in local browser history.
Allow users to restore, delete, or clear history.
Include a useful example preset.
If a user requests something inspired by an existing game or product, preserve only broad genre conventions and create original characters, assets, worlds, names, music, and visual identity.
Use an elegant editorial workspace design.
Support light and dark themes with saved browser preference.
Use emerald and amber accents, readable typography, subtle prompt-themed visual effects, loading shimmer, result transitions, and accessible focus states.
Make the interface responsive and accessible.
Add the label “BY SASAM” below the Prompt maker wordmark.
Include clear loading, empty, validation, success, and error states.
Add reduced-motion support.
Provide setup documentation for Windows and WSL.
Run lint, TypeScript checks, and a production build before completion.