/* ─────────────────────────────────────────────
   Reading practice — A1 articles & stories
   Exposes/extends window.READING_DATA
   Body text: [[word]] marks tappable vocabulary.
   [[display|key]] = show "display", look up "key".
   ───────────────────────────────────────────── */

window.READING_DATA = (window.READING_DATA || []).concat([

  /* ─── A1 · STORY 1 ─── */
  {
    id: 'first-day-factory', level: 'A1', icon: '🏭', minutes: 3,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'My First Day at the Factory', ar: 'يومي الأول في المصنع', tr: 'Fabrikadaki İlk Günüm' },
    summary: {
      en: 'Omar starts his first job. A simple story about a new workplace.',
      ar: 'عمر يبدأ أول وظيفة له. قصة بسيطة عن مكان عمل جديد.',
      tr: 'Omar ilk işine başlıyor. Yeni bir iş yeri hakkında basit bir hikâye.',
    },
    figure: {
      caption: { en: 'Omar at the factory gate on his first morning.', ar: 'عمر عند بوابة المصنع في صباحه الأول.', tr: 'Omar ilk sabahında fabrika kapısında.' },
      prompt: 'Omar (21, student cast figure) standing at a factory gate in the morning, holding a badge, wearing a safety helmet, nervous but excited.',
    },
    body: [
      'My name is Omar. Today is my first day at the factory. I am very excited, but I am also a little nervous.',
      'I arrive at the [[gate]] at 7:45. A tall man checks my [[badge]] and smiles. "Welcome, Omar," he says. "Put on your [[safety helmet]]. It is important here."',
      'My [[manager]] is called Mr. Demir. He shows me the big [[machines]]. They are loud! "Do not touch this red [[button]]," he says. "It stops everything."',
      'At 12 o\'clock, we have lunch in the [[canteen]]. The food is good and cheap. I sit with two workers, Ali and Hasan. They are friendly and answer all my questions.',
      'In the afternoon, I learn my first job: I check the boxes at the end of the line. My [[shift]] finishes at 4 p.m. I am tired, but happy. Tomorrow, I will come back and learn more.',
    ],
    vocab: {
      'gate':           { pos: 'noun', def: 'the door or entrance of a factory, site, or building area', ex: 'The workers enter through the main gate.' },
      'badge':          { pos: 'noun', def: 'a small card with your name and photo that shows who you are', ex: 'Please show your badge at the entrance.' },
      'safety helmet':  { pos: 'noun', def: 'a hard hat that protects your head at work', ex: 'Everyone must wear a safety helmet in this area.' },
      'manager':        { pos: 'noun', def: 'the person who leads a team and tells workers what to do', ex: 'My manager gives me my tasks every morning.' },
      'machines':       { pos: 'noun', def: 'equipment with moving parts that does work in a factory', ex: 'The machines run all day.' },
      'button':         { pos: 'noun', def: 'a small round thing you press to start or stop something', ex: 'Press the green button to start.' },
      'canteen':        { pos: 'noun', def: 'the place at work where people eat lunch', ex: 'We eat lunch in the canteen at noon.' },
      'shift':          { pos: 'noun', def: 'the period of hours you work (morning shift, night shift)', ex: 'My shift starts at 8 and ends at 4.' },
    },
    questions: [
      { type:'mcq', q:'How does Omar feel on his first day?',
        options:['Only nervous','Only excited','Excited and a little nervous','Angry'], a:2,
        explainEn:'He says: "I am very excited, but I am also a little nervous."', explainAr:'يقول: "أنا متحمس جداً، لكنني متوتر قليلاً أيضاً."' },
      { type:'mcq', q:'What must Omar NOT touch?',
        options:['The boxes','The red button','The badge','The gate'], a:1,
        explainEn:'Mr. Demir says the red button stops everything.', explainAr:'قال السيد دمير إن الزر الأحمر يوقف كل شيء.' },
      { type:'mcq', q:'Where do the workers eat lunch?',
        options:['At the gate','In the canteen','At home','Next to the machines'], a:1,
        explainEn:'"We have lunch in the canteen."', explainAr:'"نتناول الغداء في المقصف."' },
      { type:'mcq', q:'True or false: Omar\'s shift finishes at 6 p.m.',
        options:['True','False'], a:1,
        explainEn:'False — his shift finishes at 4 p.m.', explainAr:'خطأ — تنتهي وردية عمله في الرابعة مساءً.' },
      { type:'fill', q:'The period of hours you work is called a ___.', a:'shift',
        explainEn:'"My shift finishes at 4 p.m."', explainAr:'الوردية هي فترة ساعات العمل.' },
      { type:'fill', q:'A hard hat that protects your head is a safety ___.', a:'helmet',
        explainEn:'Safety helmet = hard protective hat.', explainAr:'الخوذة تحمي رأسك في العمل.' },
    ],
  },

  /* ─── A1 · STORY 2 ─── */
  {
    id: 'broken-coffee-machine', level: 'A1', icon: '☕', minutes: 3,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'The Broken Coffee Machine', ar: 'آلة القهوة المعطلة', tr: 'Bozuk Kahve Makinesi' },
    summary: {
      en: 'The office coffee machine stops working. Who can fix it?',
      ar: 'آلة القهوة في المكتب تتوقف عن العمل. من يستطيع إصلاحها؟',
      tr: 'Ofisteki kahve makinesi bozuluyor. Kim tamir edebilir?',
    },
    figure: {
      caption: { en: 'Amira looks inside the coffee machine while her colleagues watch.', ar: 'أميرة تنظر داخل آلة القهوة بينما يشاهد زملاؤها.', tr: 'Amira kahve makinesinin içine bakarken iş arkadaşları izliyor.' },
      prompt: 'Amira (cast figure) opening the back panel of an office coffee machine with a small screwdriver, two colleagues watching hopefully, office kitchen scene.',
    },
    body: [
      'It is Monday morning at the office. Everybody wants coffee. But there is a problem: the coffee machine is [[broken]].',
      'Karim presses the [[button]]. Nothing happens. He presses it again. Still nothing. "Oh no," he says. "No coffee today!"',
      'Amira comes to the kitchen. She is an engineer, and she likes to [[fix]] things. First, she checks the [[plug]]. It is in the [[socket]]. So the problem is not the power.',
      'Then she opens the back of the machine with a small [[screwdriver]]. She finds the problem: there is a water [[leak]] inside, and the water is on an important part.',
      'Amira dries the part and closes the machine. She presses the button. The machine makes a happy sound — and hot coffee comes out! Everybody says, "Thank you, Amira!" Now Monday is good again.',
    ],
    vocab: {
      'broken':      { pos: 'adjective', def: 'not working; damaged', ex: 'My phone screen is broken.' },
      'button':      { pos: 'noun', def: 'a small round thing you press to start or stop something', ex: 'Press the button to make coffee.' },
      'fix':         { pos: 'verb', def: 'to repair something; to make it work again', ex: 'Can you fix my computer?' },
      'plug':        { pos: 'noun', def: 'the part of a cable that goes into the wall for electricity', ex: 'Put the plug into the wall.' },
      'socket':      { pos: 'noun', def: 'the hole in the wall where you put a plug', ex: 'The socket is behind the desk.' },
      'screwdriver': { pos: 'noun', def: 'a tool used to turn screws', ex: 'I need a screwdriver to open this.' },
      'leak':        { pos: 'noun', def: 'a small hole where water (or gas) comes out when it should not', ex: 'There is a leak under the sink.' },
    },
    questions: [
      { type:'mcq', q:'What is the problem at the office?',
        options:['There is no water','The coffee machine is broken','Amira is late','The kitchen is closed'], a:1,
        explainEn:'The coffee machine is broken — it does not work.', explainAr:'آلة القهوة معطلة — لا تعمل.' },
      { type:'mcq', q:'What does Amira check first?',
        options:['The water','The plug','The button','The screwdriver'], a:1,
        explainEn:'First, she checks the plug in the socket.', explainAr:'أولاً، تفحص القابس في المقبس.' },
      { type:'mcq', q:'What was the real problem?',
        options:['No power','A broken button','A water leak inside','No coffee beans'], a:2,
        explainEn:'She finds a water leak inside the machine.', explainAr:'وجدت تسرب ماء داخل الآلة.' },
      { type:'mcq', q:'True or false: Karim fixes the machine.',
        options:['True','False'], a:1,
        explainEn:'False — Amira fixes it.', explainAr:'خطأ — أميرة هي التي أصلحتها.' },
      { type:'fill', q:'To repair something means to ___ it.', a:'fix',
        explainEn:'Fix = repair = make it work again.', explainAr:'fix تعني يُصلح.' },
      { type:'fill', q:'You put the plug into the ___.', a:'socket',
        explainEn:'The socket is the hole in the wall for the plug.', explainAr:'المقبس هو فتحة الكهرباء في الجدار.' },
    ],
  },

  /* ─── A1 · STORY 3 ─── */
  {
    id: 'sara-new-laptop', level: 'A1', icon: '💻', minutes: 3,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'Sara Buys a New Laptop', ar: 'سارة تشتري حاسوباً محمولاً جديداً', tr: 'Sara Yeni Bir Dizüstü Bilgisayar Alıyor' },
    summary: {
      en: 'Sara needs a laptop for her studies. A story about shopping and asking questions.',
      ar: 'سارة تحتاج حاسوباً لدراستها. قصة عن التسوق وطرح الأسئلة.',
      tr: 'Sara\'nın dersleri için bir dizüstü bilgisayara ihtiyacı var. Alışveriş ve soru sorma hakkında bir hikâye.',
    },
    figure: {
      caption: { en: 'Sara compares two laptops in the shop.', ar: 'سارة تقارن بين حاسوبين في المتجر.', tr: 'Sara mağazada iki dizüstü bilgisayarı karşılaştırıyor.' },
      prompt: 'A young woman student comparing two laptops on a store display table, a friendly shop assistant nearby, clean electronics store scene.',
    },
    body: [
      'Sara is an engineering student. Her old laptop is very slow, and sometimes the [[screen]] goes black. She needs a new one for her studies.',
      'On Saturday, she goes to a computer shop. A shop assistant asks, "Can I help you?" Sara says, "Yes, please. I need a laptop with a good [[keyboard]] and a long [[battery life]]. I write a lot, and I study at the library."',
      'The assistant shows her two laptops. The first one is beautiful but expensive. The second one has a lower [[price]], and this week it has a 20% [[discount]].',
      'Sara asks an important question: "Does it have a [[warranty]]?" The assistant says, "Yes, two years. If there is a problem, we repair it for free."',
      'Sara chooses the second laptop. She pays and takes her [[receipt]]. On the bus home, she is happy. Now she can study anywhere — and the screen works!',
    ],
    vocab: {
      'screen':       { pos: 'noun', def: 'the flat part of a computer or phone that shows the picture', ex: 'The screen is too dark.' },
      'keyboard':     { pos: 'noun', def: 'the part of a computer with keys for typing', ex: 'I like this keyboard — it is quiet.' },
      'battery life': { pos: 'noun', def: 'how long a device works before you must charge it', ex: 'This phone has ten hours of battery life.' },
      'price':        { pos: 'noun', def: 'the money you must pay for something', ex: 'What is the price of this laptop?' },
      'discount':     { pos: 'noun', def: 'a lower price than normal; money off', ex: 'Students get a 10% discount.' },
      'warranty':     { pos: 'noun', def: 'a promise from the company to repair the product for free for some time', ex: 'The warranty is two years.' },
      'receipt':      { pos: 'noun', def: 'the small paper that shows you paid', ex: 'Keep your receipt — you need it for the warranty.' },
    },
    questions: [
      { type:'mcq', q:'Why does Sara need a new laptop?',
        options:['She lost her old one','Her old one is slow and the screen goes black','She wants to play games','Her teacher told her to buy one'], a:1,
        explainEn:'Her old laptop is very slow, and sometimes the screen goes black.', explainAr:'حاسوبها القديم بطيء جداً والشاشة تنطفئ أحياناً.' },
      { type:'mcq', q:'What two things does Sara want in a laptop?',
        options:['A big screen and speakers','A good keyboard and long battery life','A camera and a mouse','A low price and a bag'], a:1,
        explainEn:'She asks for a good keyboard and long battery life.', explainAr:'طلبت لوحة مفاتيح جيدة وعمر بطارية طويل.' },
      { type:'mcq', q:'Why is the second laptop a good choice?',
        options:['It is the most beautiful','It has a lower price and a discount','It is the fastest','It has a bigger screen'], a:1,
        explainEn:'It has a lower price, and this week a 20% discount.', explainAr:'سعره أقل وعليه خصم 20% هذا الأسبوع.' },
      { type:'mcq', q:'True or false: The warranty is one year.',
        options:['True','False'], a:1,
        explainEn:'False — the warranty is two years.', explainAr:'خطأ — الضمان لمدة سنتين.' },
      { type:'fill', q:'A lower price than normal is called a ___.', a:'discount',
        explainEn:'Discount = money off the normal price.', explainAr:'الخصم هو تخفيض من السعر العادي.' },
      { type:'fill', q:'The small paper that shows you paid is a ___.', a:'receipt',
        explainEn:'Keep the receipt for the warranty.', explainAr:'الإيصال ورقة تثبت أنك دفعت.' },
    ],
  },

  /* ─── A1 · STORY 4 ─── */
  {
    id: 'night-guard', level: 'A1', icon: '🔦', minutes: 3,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'The Night Guard and the Strange Sound', ar: 'الحارس الليلي والصوت الغريب', tr: 'Gece Bekçisi ve Garip Ses' },
    summary: {
      en: 'Mr. Aziz works at night. One night, he hears something strange.',
      ar: 'السيد عزيز يعمل ليلاً. في إحدى الليالي، يسمع شيئاً غريباً.',
      tr: 'Aziz Bey geceleri çalışıyor. Bir gece garip bir şey duyuyor.',
    },
    figure: {
      caption: { en: 'Mr. Aziz walks through the dark warehouse with his flashlight.', ar: 'السيد عزيز يمشي في المستودع المظلم بمصباحه اليدوي.', tr: 'Aziz Bey el feneriyle karanlık depoda yürüyor.' },
      prompt: 'An older security guard walking through a dark warehouse at night, flashlight beam cutting through the dark, tall shelves on both sides, calm mood not scary.',
    },
    body: [
      'Mr. Aziz is a night [[guard]] at a big [[warehouse]]. Every night, he locks the [[gate]], checks the doors, and walks between the tall shelves with his [[flashlight]].',
      'One night, at 2 a.m., he hears a strange sound. *Tap… tap… tap.* It comes from the back of the building. Mr. Aziz is not afraid. He takes his flashlight and his [[keys]] and walks slowly to the back.',
      'The sound gets louder. *TAP… TAP… TAP.* Mr. Aziz stops at the last shelf. He turns on his flashlight and looks up.',
      'It is a small bird! It is inside the building, and it is tapping on a window. It wants to go out. Mr. Aziz laughs quietly. "Come, little friend," he says.',
      'He opens the window, and the bird flies out into the night. Mr. Aziz writes it in his [[report]]: "2 a.m. — one small bird. No problem." Then he continues his walk. The warehouse is quiet again.',
    ],
    vocab: {
      'guard':      { pos: 'noun', def: 'a person whose job is to protect a place', ex: 'The guard checks everyone at the door.' },
      'warehouse':  { pos: 'noun', def: 'a big building where a company keeps its products', ex: 'The boxes are in the warehouse.' },
      'gate':       { pos: 'noun', def: 'the door or entrance of a building area or site', ex: 'He locks the gate at night.' },
      'flashlight': { pos: 'noun', def: 'a small electric light you hold in your hand (UK: torch)', ex: 'Take a flashlight — it is dark inside.' },
      'keys':       { pos: 'noun', def: 'the small metal things that open locks', ex: 'I cannot find my keys.' },
      'report':     { pos: 'noun', def: 'a written text that says what happened', ex: 'He writes a short report every night.' },
    },
    questions: [
      { type:'mcq', q:'What is Mr. Aziz\'s job?',
        options:['Engineer','Night guard','Driver','Manager'], a:1,
        explainEn:'He is a night guard at a warehouse.', explainAr:'هو حارس ليلي في مستودع.' },
      { type:'mcq', q:'What time does he hear the sound?',
        options:['At midnight','At 2 a.m.','At 4 a.m.','In the morning'], a:1,
        explainEn:'"One night, at 2 a.m., he hears a strange sound."', explainAr:'سمع الصوت في الثانية صباحاً.' },
      { type:'mcq', q:'What makes the sound?',
        options:['A thief','The wind','A small bird','A machine'], a:2,
        explainEn:'A small bird is tapping on a window.', explainAr:'عصفور صغير كان ينقر على النافذة.' },
      { type:'mcq', q:'True or false: Mr. Aziz is afraid.',
        options:['True','False'], a:1,
        explainEn:'False — "Mr. Aziz is not afraid."', explainAr:'خطأ — "السيد عزيز ليس خائفاً."' },
      { type:'fill', q:'A big building where a company keeps products is a ___.', a:'warehouse',
        explainEn:'Warehouse = storage building.', explainAr:'المستودع مبنى كبير لتخزين المنتجات.' },
      { type:'fill', q:'A written text that says what happened is a ___.', a:'report',
        explainEn:'He writes the bird in his report.', explainAr:'التقرير نص مكتوب يوضح ما حدث.' },
    ],
  },

  /* ─── A1 · ARTICLE 5 ─── */
  {
    id: 'water-bottle-factory', level: 'A1', icon: '🧴', minutes: 3,
    kind: { en: 'Article', ar: 'مقال', tr: 'Makale' },
    title: { en: 'How a Plastic Bottle Is Made', ar: 'كيف تُصنع القارورة البلاستيكية', tr: 'Plastik Şişe Nasıl Yapılır' },
    summary: {
      en: 'From small plastic pieces to a bottle of water — a simple article about a factory process.',
      ar: 'من قطع بلاستيكية صغيرة إلى قارورة ماء — مقال بسيط عن عملية في مصنع.',
      tr: 'Küçük plastik parçalardan bir su şişesine — bir fabrika süreci hakkında basit bir makale.',
    },
    figure: {
      caption: { en: 'Bottles move along the production line.', ar: 'القوارير تتحرك على خط الإنتاج.', tr: 'Şişeler üretim hattında ilerliyor.' },
      prompt: 'A clean modern bottling factory line with rows of clear plastic bottles moving on a conveyor belt, bright industrial lighting.',
    },
    body: [
      'You drink water from a plastic bottle every day. But how is the bottle made? The [[process]] is fast and interesting.',
      'First, small pieces of plastic arrive at the [[factory]]. Workers put them into a big machine. The machine [[heats]] the plastic until it is soft, like honey.',
      'Next, the soft plastic goes into a metal [[mold]]. The mold has the shape of a bottle. The machine blows air into the plastic — poof! — and the plastic becomes a bottle.',
      'Then the bottles move on a long [[conveyor belt]]. Another machine fills them with clean water and closes them with a cap. A worker [[checks]] the bottles. If a bottle has a problem, the worker takes it away.',
      'Finally, a machine puts the bottles into boxes. Trucks take the boxes to shops in the city. The whole process takes only a few minutes. Fast, right?',
    ],
    vocab: {
      'process':       { pos: 'noun', def: 'the steps you follow to make or do something', ex: 'Making bread is a slow process.' },
      'factory':       { pos: 'noun', def: 'a building where machines and people make products', ex: 'My uncle works in a car factory.' },
      'heats':         { pos: 'verb', def: 'makes something hot', ex: 'The machine heats the metal.' },
      'mold':          { pos: 'noun', def: 'a container with a shape; soft material takes this shape inside it', ex: 'The plastic goes into a bottle-shaped mold.' },
      'conveyor belt': { pos: 'noun', def: 'a moving band that carries things from one place to another in a factory', ex: 'The boxes move on the conveyor belt.' },
      'checks':        { pos: 'verb', def: 'looks at something carefully to find problems', ex: 'She checks every bottle.' },
    },
    questions: [
      { type:'mcq', q:'What arrives at the factory first?',
        options:['Bottles of water','Small pieces of plastic','Boxes','Caps'], a:1,
        explainEn:'Small pieces of plastic arrive first.', explainAr:'تصل قطع البلاستيك الصغيرة أولاً.' },
      { type:'mcq', q:'What does the machine do to make the plastic soft?',
        options:['It cools it','It heats it','It washes it','It cuts it'], a:1,
        explainEn:'The machine heats the plastic until it is soft.', explainAr:'الآلة تسخّن البلاستيك حتى يصبح ليّناً.' },
      { type:'mcq', q:'How does the plastic become a bottle?',
        options:['A worker makes it by hand','The machine blows air into it inside a mold','It dries in the sun','It is cut from a big bottle'], a:1,
        explainEn:'The machine blows air into the plastic inside a bottle-shaped mold.', explainAr:'الآلة تنفخ الهواء داخل البلاستيك في قالب بشكل قارورة.' },
      { type:'mcq', q:'True or false: The whole process takes many hours.',
        options:['True','False'], a:1,
        explainEn:'False — it takes only a few minutes.', explainAr:'خطأ — تستغرق العملية دقائق قليلة فقط.' },
      { type:'fill', q:'The moving band that carries things in a factory is a conveyor ___.', a:'belt',
        explainEn:'Conveyor belt = moving band in a factory.', explainAr:'السير الناقل يحمل الأشياء في المصنع.' },
      { type:'fill', q:'The steps you follow to make something are called a ___.', a:'process',
        explainEn:'"The process is fast and interesting."', explainAr:'العملية هي خطوات صنع شيء ما.' },
    ],
  },

]);
