{
  "key": "memory",
  "name": "Memory Game",
  "nameAr": "لعبة الذاكرة",
  "icon": "🧠",
  "category": "puzzle",
  "description": "Test your memory! Watch the icons then pick what you saw!",
  "descriptionAr": "اختبر ذاكرتك! شاهد الأيقونات ثم اختر ما رأيته!",
  "version": "1.0.0",
  "displayOrder": 8,
  "minPlayers": 1,
  "maxPlayers": 20,
  "showBottomTabBar": true,

  "settingsGroups": [
    { "key": "gameplay", "labelAr": "اللعب", "label": "Gameplay", "icon": "🎯" },
    { "key": "scoring",  "labelAr": "النقاط", "label": "Scoring", "icon": "💰" },
    { "key": "display",  "labelAr": "العرض", "label": "Display", "icon": "📺" },
    { "key": "admin",    "labelAr": "الأدمن", "label": "Admin", "icon": "🛡️" }
  ],

  "settings": [
    {
      "key": "questionCount",
      "type": "number",
      "label": "Number of Rounds",
      "labelAr": "عدد الجولات",
      "icon": "📝",
      "group": "gameplay",
      "default": 10,
      "min": 3,
      "max": 20,
      "step": 1
    },
    {
      "key": "displayDuration",
      "type": "number",
      "label": "Display Duration (sec)",
      "labelAr": "مدة العرض (ثانية)",
      "descriptionAr": "مدة عرض الأيقونات قبل إخفائها",
      "icon": "👁️",
      "group": "gameplay",
      "default": 5,
      "min": 3,
      "max": 10,
      "step": 1
    },
    {
      "key": "recallTime",
      "type": "number",
      "label": "Recall Time (sec)",
      "labelAr": "وقت التذكّر (ثانية)",
      "descriptionAr": "الوقت المتاح لاختيار الأيقونات",
      "icon": "⏱️",
      "group": "gameplay",
      "default": 15,
      "min": 10,
      "max": 30,
      "step": 5
    },
    {
      "key": "shuffleQuestions",
      "type": "boolean",
      "label": "Shuffle Questions",
      "labelAr": "خلط الأسئلة",
      "icon": "🔀",
      "group": "gameplay",
      "default": true
    },
    {
      "key": "pointsPerCorrect",
      "type": "number",
      "label": "Points per Correct Pick",
      "labelAr": "نقاط لكل اختيار صحيح",
      "icon": "⭐",
      "group": "scoring",
      "default": 3,
      "min": 1,
      "max": 10,
      "step": 1
    },
    {
      "key": "penaltyPerWrong",
      "type": "number",
      "label": "Penalty per Wrong Pick",
      "labelAr": "خصم لكل اختيار خاطئ",
      "icon": "❌",
      "group": "scoring",
      "default": 2,
      "min": 0,
      "max": 5,
      "step": 1
    },
    {
      "key": "perfectBonus",
      "type": "number",
      "label": "Perfect Round Bonus",
      "labelAr": "مكافأة الجولة المثالية",
      "descriptionAr": "نقاط إضافية عند تذكّر الكل بدون أخطاء",
      "icon": "🏆",
      "group": "scoring",
      "default": 5,
      "min": 0,
      "max": 15,
      "step": 1
    },
    {
      "key": "showAnswer",
      "type": "boolean",
      "label": "Show Correct Answers",
      "labelAr": "عرض الإجابات الصحيحة",
      "icon": "👁️",
      "group": "display",
      "default": true
    },
    {
      "key": "showLeaderboard",
      "type": "boolean",
      "label": "Show Leaderboard",
      "labelAr": "عرض لوحة النتائج",
      "icon": "📊",
      "group": "display",
      "default": true
    },
    {
      "key": "leaderboardDuration",
      "type": "number",
      "label": "Leaderboard Duration (sec)",
      "labelAr": "مدة عرض النتائج (ثانية)",
      "icon": "⏳",
      "group": "display",
      "default": 7,
      "min": 3,
      "max": 15,
      "step": 1,
      "dependsOn": { "key": "showLeaderboard", "value": true }
    },
    {
      "key": "adminMode",
      "type": "select",
      "label": "Admin Mode",
      "labelAr": "وضع الأدمن",
      "icon": "🛡️",
      "group": "admin",
      "default": "controller",
      "options": [
        { "value": "controller", "label": "Controller", "labelAr": "مُتحكم" },
        { "value": "participant", "label": "Participant", "labelAr": "مُشارك" }
      ]
    }
  ]
}
