{
  "key": "match_flag",
  "name": "Match the Flag",
  "nameAr": "وصّل العلم",
  "icon": "🔗",
  "category": "flags",
  "description": "Connect each flag with its country name!",
  "descriptionAr": "وصّل كل علم باسم الدولة الصحيح!",
  "version": "1.0.0",
  "displayOrder": 27,
  "minPlayers": 1,
  "maxPlayers": 20,
  "showBottomTabBar": true,
  "settingsGroups": [
    { "key": "gameplay", "labelAr": "اللعب", "icon": "🎯" },
    { "key": "scoring", "labelAr": "النقاط", "icon": "💰" },
    { "key": "display", "labelAr": "العرض", "icon": "📺" },
    { "key": "admin", "labelAr": "الأدمن", "icon": "🛡️" }
  ],
  "settings": [
    {
      "key": "questionCount",
      "type": "number",
      "label": "Number of Rounds",
      "labelAr": "عدد الجولات",
      "icon": "📝",
      "group": "gameplay",
      "default": 8,
      "min": 3,
      "max": 20,
      "step": 1
    },
    {
      "key": "timeLimit",
      "type": "number",
      "label": "Time per Round (sec)",
      "labelAr": "الوقت لكل جولة (ثانية)",
      "icon": "⏱️",
      "group": "gameplay",
      "default": 15,
      "min": 5,
      "max": 30,
      "step": 5
    },
    {
      "key": "pairsPerRound",
      "type": "number",
      "label": "Pairs per Round",
      "labelAr": "عدد الأزواج لكل جولة",
      "icon": "🔢",
      "group": "gameplay",
      "default": 4,
      "min": 3,
      "max": 6,
      "step": 1
    },
    {
      "key": "continentFilter",
      "type": "select",
      "label": "Continent Filter",
      "labelAr": "تصفية حسب القارة",
      "icon": "🌍",
      "group": "gameplay",
      "default": "all",
      "options": [
        { "value": "all", "label": "All Continents", "labelAr": "جميع القارات" },
        { "value": "africa", "label": "Africa", "labelAr": "أفريقيا" },
        { "value": "asia", "label": "Asia", "labelAr": "آسيا" },
        { "value": "europe", "label": "Europe", "labelAr": "أوروبا" },
        { "value": "north_america", "label": "North America", "labelAr": "أمريكا الشمالية" },
        { "value": "south_america", "label": "South America", "labelAr": "أمريكا الجنوبية" },
        { "value": "oceania", "label": "Oceania", "labelAr": "أوقيانوسيا" }
      ]
    },
    {
      "key": "basePoints",
      "type": "number",
      "label": "Points per Correct Pair",
      "labelAr": "نقاط لكل زوج صحيح",
      "icon": "⭐",
      "group": "scoring",
      "default": 3,
      "min": 1,
      "max": 10,
      "step": 1
    },
    {
      "key": "speedBonus",
      "type": "number",
      "label": "Speed Bonus (max)",
      "labelAr": "مكافأة السرعة (أقصى)",
      "icon": "⚡",
      "group": "scoring",
      "default": 5,
      "min": 0,
      "max": 10,
      "step": 1
    },
    {
      "key": "perfectBonus",
      "type": "number",
      "label": "Perfect Match Bonus",
      "labelAr": "مكافأة الوصل الكامل",
      "icon": "🏆",
      "group": "scoring",
      "default": 5,
      "min": 0,
      "max": 15,
      "step": 1
    },
    {
      "key": "showAnswer",
      "type": "boolean",
      "label": "Show Correct Answer",
      "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": 5,
      "min": 2,
      "max": 15,
      "step": 1,
      "dependsOn": "showLeaderboard"
    },
    {
      "key": "adminMode",
      "type": "select",
      "label": "Admin Mode",
      "labelAr": "وضع الأدمن",
      "icon": "🎮",
      "group": "admin",
      "default": "controller",
      "options": [
        { "value": "controller", "label": "Controller", "labelAr": "متحكم" },
        { "value": "participant", "label": "Participant", "labelAr": "مشارك" }
      ]
    }
  ]
}
