from pathlib import Path
import json

root = Path(__file__).resolve().parents[1]
specs = [
 ('Légzés megfigyelése',1,['Feküdj kényelmesen','Kövesd a levegő útját','Figyeld a hasad mozgását'],'adult lying comfortably on a mat with small head support, hand between upper abdomen and navel, relaxed limbs, quietly observing breathing','relaxed lying observation, no forced inhaling, no anatomy','module-1.txt:145-176'),
 ('Számok és hónapok',1,['Számolj könnyedén','Hagyj időt a levegőnek','Figyeld magad tükörben'],'adult standing before a full-length mirror practising a spoken sequence, one hand gently on abdomen, quiet room and notebook','comfortable counting and breathing pauses, no maximal breath holding','module-1.txt:178-255'),
 ('Nyelv és ajkak',2,['Gyakorolj tükör előtt','Figyeld a mozdulatokat','Maradjon nyitva a szád'],'adult gently massaging cheeks in front of a mirror with relaxed jaw, ordinary practice tabletop with teaspoon, straw and water','mirror observation and tongue/lip practice; avoid anatomical diagram or implausible exposed tongue','module-2.txt:89-132'),
 ('Artikuláció és nyelvtörők',2,['Formáld a hangzókat','Kezdd nagyon lassan','Nézd vissza a videód'],'adult reading a short tongue-twister practice note aloud in front of mirror with comfortable open jaw, phone nearby','careful vowel mouth shapes and slow tongue-twister practice, no fabricated phonetic claims','module-2.txt:133-185'),
 ('Könnyed hangadás',3,['Figyeld a rezgést','Indíts M hanggal','Ne erőltesd a hangot'],'adult lying comfortably with one hand on chest and one on upper abdomen, softly vocalising M, calm daylight','gentle resonance sensation and MMM into vowels; no anatomical rays or forced voice','module-3.txt:89-139'),
 ('Hangadás több helyzetben',3,['Ülve, majd állva','Figyeld a könnyedséget','Mondd a kijelölt pontra'],'adult standing in a room speaking towards a clear ordinary target with hands naturally monitoring chest and abdomen','seated to standing resonance practice and sound direction, no shouting or guaranteed vocal result','module-3.txt:140-178'),
 ('A beszéd ritmusa',4,['TÁ = TI TI','Figyeld a hosszúságot','Válts a két kézzel'],'adult at a table gently tapping one long beat with one hand and two short beats with other, notebook nearby','one long beat equals two short beats, clear proportional duration marks','module-4.txt:24-49'),
 ('Ritmus a versben',4,['Szöveg','Magánhangzók','Ritmusképlet'],'adult reading a poetry practice sheet at a table with mirror, fingertips lightly marking a steady rhythm','source sequence full text then vowels then rhythm; do not fabricate poem lines or musical score','module-4.txt:50-90'),
 ('Hónapok és levegő',5,['Sorold a hónapokat','Figyeld a levegőszünetet','Ülve, majd állva'],'adult practising spoken months while standing and looking at a chosen object, one hand on upper abdomen, plain practice notebook','monthly sequences with comfortable pauses, not maximum duration competition','module-5.txt:16-45'),
 ('Beszéd és lassú séta',5,['Lassan sétálj','Tartsd a szüneteket','Figyeld a pontosságot'],'adult slowly walking across a quiet uncluttered room while speaking towards a visible chosen point, comfortable natural movement','walking and speech coordination, no exercise-intensity guarantee','module-5.txt:46-77'),
 ('M-mel induló szavak',6,['Indíts könnyed M hanggal','Formáld a szót','Figyeld a rezonanciát'],'adult standing by mirror softly vocalising M-leading words with a relaxed hand on chest and second hand on abdomen','m-word integration from source, no anatomy or dramatic throat effects','module-6.txt:16-60'),
 ('Rezonancia és cél',6,['Nézz a kijelölt pontra','Juttasd el a szavakat','Maradjon könnyed'],'adult practising speech aimed at a chosen ordinary object two metres away in a quiet home, gentle gesture and natural posture','source sound direction and resonance without shouting or pitch rise','module-6.txt:61-78'),
 ('Mindent összehangolunk',6,['Légzés','Artikuláció és ritmus','Egyenletes tempó'],'adult practising the integration text from a plain sheet with mirror, hands checking chest and abdomen, comfortable mid-volume speaking','integrate breath, articulation, rhythm and medium volume, no claimed measured improvement','module-6.txt:80-124'),
 ('Záró videó és áttekintés',6,['Gyakorlóvideó','Saját megfigyelések','Online konzultáció'],'adult preparing a final practice video with phone at eye level, reflection notebook and laptop waiting for a future online review, not a real video call','final practice and honest next-step consultation, no therapeutic closure or guaranteed result','module-6.txt:125-171')
]
assets=[]
for d,(title,module,labels,scene,purpose,source) in enumerate(specs,1):
    for kind in ['infographic','image']:
        for variant in ['a','b']:
            ident=f'day-{d:02d}-{kind}-{variant}'
            if kind=='infographic':
                structure=('three illustrated moments arranged vertically in a clean spacious sequence' if variant=='a' else 'one decisive illustrated human scene with three large labels arranged as a spacious practice notebook composition')
                prompt=f"Use case: scientific-educational illustration/infographic. Generate one distinct square image for day {d} of a Hungarian adult speech-practice programme. Komplex Logopédia identity: white, blue #008AE6, pink #e14f9b, yellow #fea500, dark navy rounded type. Composition: {structure}. Subject: {scene}. Explain only this source-grounded purpose: {purpose}. Exact Hungarian text only: '{title}', '{labels[0]}', '{labels[1]}', '{labels[2]}'. Keep all lettering large and correctly accented, legible at360px. Believable adult body/hand proportions. No other words, anatomy, throat diagrams, diagnosis, fake outcome, guaranteed improvement, actual Rita portrait or watermark. This is a companion illustration, never a replacement for the full written exercises. Make this a separately authored actual image, not a contact-sheet cell or duplicate."
            else:
                person='ordinary adult woman around38' if variant=='a' else 'ordinary adult man around52'
                prompt=f"Use case: photorealistic-natural. Generate one distinct editorial photograph-like AI image for a Hungarian adult speech-practice lesson, day{d}: {person}, {scene}. Purpose: {purpose}. Landscape3:2 frame, convincing realistic natural daylight and comfortable posture, everyday Hungarian home without stereotypes. Contemporary Komplex blue/pink/yellow accents in ordinary props, restrained white room. {('Side-on calm medium view with human gesture prominent.' if variant=='a' else 'A different camera angle and room composition, wider view showing relevant practice props.')} No text, screens with fake results, actual Rita likeness, watermark, anatomy, unusual body distortions, theatrical distress or medical claims. It depicts an illustrative practice situation, not a real participant result."
            assets.append({'id':ident,'day_id':f'day-{d:02d}','day':d,'module':module,'kind':kind,'variant':variant,'title':title,'source':source,'purpose':purpose,'prompt':prompt,'file':f'assets/daily/{ident}.png','status':'planned-before-generation'})
(root/'drafts/daily-visual-plan.json').write_text(json.dumps(assets,ensure_ascii=False,indent=2))
(root/'drafts/daily-visuals.md').write_text('# 56 daily visuals before generation\n\nTwo infographic and two AI image alternatives per day. The exact source ranges and purpose are recorded in daily-visual-plan.json. The original source text remains complete in the app.\n\nWireframe: task title → three large source-related prompts → meaningful human practice scene. Photographs show an ordinary illustrative adult, never Rita or a claimed customer result.\n\nConcrete criticism: an impressive anatomical drawing could invent a mechanism or mislead a beginner. Use task gestures, mirrors, pauses, rhythm marks and reflection objects instead. No decorative photo can replace an exercise or recording instruction. All alternatives remain available in the chooser with a recommended selection.\n')
print('56 distinct visual prompts saved before generation')
