export interface CompetitorFeature {
  nameEn: string;
  nameAr: string;
  mawidi: boolean | string; // true, false, or description
  competitor: boolean | string;
}

export interface Competitor {
  name: string;
  slug: string; // URL slug like "mawidi-vs-calendly"
  taglineEn: string;
  taglineAr: string;
  descriptionEn: string;
  descriptionAr: string;
  websiteUrl: string;
  pricingEn: string;
  pricingAr: string;
  weaknessesEn: string[];
  weaknessesAr: string[];
  features: CompetitorFeature[];
  faqsEn: Array<{ question: string; answer: string }>;
  faqsAr: Array<{ question: string; answer: string }>;
}

export const COMPETITORS: Record<string, Competitor> = {
  calendly: {
    name: "Calendly",
    slug: "mawidi-vs-calendly",
    taglineEn:
      "Calendly is great for meetings. Mawidi is built for GCC clinics.",
    taglineAr: "Calendly مناسب للاجتماعات. موعدي مصمم لعيادات الخليج.",
    descriptionEn:
      "While Calendly excels at scheduling meetings for remote teams, Mawidi is purpose-built for service businesses in the GCC — with native WhatsApp integration, Arabic language support, and local payment processing.",
    descriptionAr:
      "بينما يتفوق Calendly في جدولة الاجتماعات للفرق عن بُعد، موعدي مصمم خصيصاً لشركات الخدمات في الخليج — مع تكامل واتساب أصلي ودعم اللغة العربية والمدفوعات المحلية.",
    websiteUrl: "https://calendly.com",
    pricingEn: "Free - $16/user/mo",
    pricingAr: "مجاني - $16/مستخدم/شهر",
    weaknessesEn: [
      "No WhatsApp native integration",
      "No Arabic/RTL support",
      "No deposit collection",
      "No Mada/Sadad payments",
      "No AI booking agent",
      "No voice receptionist",
    ],
    weaknessesAr: [
      "لا يوجد تكامل واتساب أصلي",
      "لا يدعم العربية/RTL",
      "لا يوجد تحصيل عربون",
      "لا يدعم مدى/سداد",
      "لا يوجد وكيل حجز ذكي",
      "لا يوجد موظفة استقبال صوتية",
    ],
    features: [
      {
        nameEn: "WhatsApp Native Booking",
        nameAr: "حجز واتساب أصلي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Arabic/RTL Support",
        nameAr: "دعم العربية/RTL",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "AI Receptionist",
        nameAr: "موظفة استقبال ذكية",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Voice Agent",
        nameAr: "وكيل صوتي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Deposit Collection",
        nameAr: "تحصيل العربون",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Mada/Apple Pay",
        nameAr: "مدى/Apple Pay",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "24/7 Availability",
        nameAr: "متاح 24/7",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Online Scheduling",
        nameAr: "جدولة عبر الإنترنت",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Calendar Integrations",
        nameAr: "تكامل التقويم",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Email Reminders",
        nameAr: "تذكيرات البريد",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Team Scheduling",
        nameAr: "جدولة الفريق",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Custom Branding",
        nameAr: "علامة تجارية مخصصة",
        mawidi: "Coming soon",
        competitor: true,
      },
      {
        nameEn: "No-Show Reduction",
        nameAr: "تقليل عدم الحضور",
        mawidi: "Up to 70%",
        competitor: "Limited",
      },
      {
        nameEn: "GCC Local Support",
        nameAr: "دعم محلي بالخليج",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Multi-Currency GCC",
        nameAr: "عملات خليجية متعددة",
        mawidi: true,
        competitor: false,
      },
    ],
    faqsEn: [
      {
        question: "Is Mawidi better than Calendly for clinics?",
        answer:
          "For GCC-based clinics and service businesses, yes. Mawidi offers native WhatsApp booking, Arabic language support, local payment methods (Mada, Apple Pay), and an AI receptionist that handles bookings 24/7 — features Calendly doesn't provide.",
      },
      {
        question: "Can I migrate from Calendly to Mawidi?",
        answer:
          "Yes. Our team helps you migrate your existing bookings, client data, and calendar integrations. Most businesses are fully operational within 48 hours.",
      },
      {
        question: "Does Mawidi integrate with Google Calendar like Calendly?",
        answer:
          "Yes. Mawidi integrates with Google Calendar, and additionally offers WhatsApp-native booking that Calendly cannot match.",
      },
    ],
    faqsAr: [
      {
        question: "هل موعدي أفضل من Calendly للعيادات؟",
        answer:
          "للعيادات والشركات الخدمية في الخليج، نعم. يقدم موعدي حجز واتساب أصلي ودعم اللغة العربية وطرق دفع محلية (مدى، Apple Pay) وموظفة استقبال ذكية تتعامل مع الحجوزات 24/7.",
      },
      {
        question: "هل يمكنني الانتقال من Calendly إلى موعدي؟",
        answer:
          "نعم. يساعدك فريقنا في نقل حجوزاتك وبيانات العملاء وتكاملات التقويم. معظم الشركات تعمل بالكامل خلال 48 ساعة.",
      },
      {
        question: "هل يتكامل موعدي مع تقويم جوجل مثل Calendly؟",
        answer:
          "نعم. يتكامل موعدي مع تقويم جوجل، بالإضافة إلى حجز واتساب الأصلي الذي لا يستطيع Calendly تقديمه.",
      },
    ],
  },
  fresha: {
    name: "Fresha",
    slug: "mawidi-vs-fresha",
    taglineEn:
      "Fresha knows beauty salons. Mawidi knows GCC service businesses.",
    taglineAr:
      "Fresha يعرف صالونات التجميل. موعدي يعرف شركات الخدمات في الخليج.",
    descriptionEn:
      "Fresha is a popular salon and spa management platform, but it lacks WhatsApp integration, Arabic language support, and GCC-specific payment methods that service businesses in the region need.",
    descriptionAr:
      "Fresha منصة شائعة لإدارة الصالونات والسبا، لكنه يفتقر إلى تكامل واتساب ودعم اللغة العربية وطرق الدفع الخليجية التي تحتاجها شركات الخدمات في المنطقة.",
    websiteUrl: "https://fresha.com",
    pricingEn: "Free (with payment processing fees)",
    pricingAr: "مجاني (مع رسوم معالجة المدفوعات)",
    weaknessesEn: [
      "No WhatsApp integration",
      "Limited Arabic support",
      "No AI receptionist",
      "No voice agent",
      "No GCC payment methods",
      "Commission on every booking",
    ],
    weaknessesAr: [
      "لا يوجد تكامل واتساب",
      "دعم عربي محدود",
      "لا يوجد موظفة استقبال ذكية",
      "لا يوجد وكيل صوتي",
      "لا يدعم المدفوعات الخليجية",
      "عمولة على كل حجز",
    ],
    features: [
      {
        nameEn: "WhatsApp Native Booking",
        nameAr: "حجز واتساب أصلي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Arabic/RTL Support",
        nameAr: "دعم العربية/RTL",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "AI Receptionist",
        nameAr: "موظفة استقبال ذكية",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Voice Agent",
        nameAr: "وكيل صوتي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Mada/Apple Pay",
        nameAr: "مدى/Apple Pay",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "POS System",
        nameAr: "نظام نقاط البيع",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "Product Inventory",
        nameAr: "مخزون المنتجات",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "Online Booking",
        nameAr: "حجز عبر الإنترنت",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Deposit Collection",
        nameAr: "تحصيل العربون",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Staff Management",
        nameAr: "إدارة الموظفين",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "No-Show Protection",
        nameAr: "حماية من عدم الحضور",
        mawidi: "AI-powered 70% reduction",
        competitor: "Deposits only",
      },
      {
        nameEn: "GCC Local Support",
        nameAr: "دعم محلي بالخليج",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "No Commission Model",
        nameAr: "بدون عمولة",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "CRM Dashboard",
        nameAr: "لوحة تحكم CRM",
        mawidi: true,
        competitor: "Basic",
      },
      {
        nameEn: "Multi-Industry",
        nameAr: "متعدد القطاعات",
        mawidi: "17+ verticals",
        competitor: "Beauty/wellness only",
      },
    ],
    faqsEn: [
      {
        question: "Is Mawidi better than Fresha for salons in the GCC?",
        answer:
          "For GCC-based salons, Mawidi offers key advantages: WhatsApp booking (the dominant messaging app in the region), Arabic language support, local payment methods, and an AI receptionist — all without commission fees on bookings.",
      },
      {
        question: "Does Fresha work with WhatsApp?",
        answer:
          "Fresha does not offer native WhatsApp integration. Mawidi was built WhatsApp-first, allowing customers to book, reschedule, and pay through the app they already use daily.",
      },
      {
        question: "Is Mawidi free like Fresha?",
        answer:
          "Mawidi uses a transparent subscription model starting at \u00A3179/month with no commission on bookings. Fresha charges processing fees on every transaction, which can add up significantly for busy businesses.",
      },
    ],
    faqsAr: [
      {
        question: "هل موعدي أفضل من Fresha للصالونات في الخليج؟",
        answer:
          "للصالونات في الخليج، يقدم موعدي مزايا رئيسية: حجز واتساب ودعم العربية وطرق دفع محلية وموظفة استقبال ذكية — كل ذلك بدون عمولة على الحجوزات.",
      },
      {
        question: "هل يعمل Fresha مع واتساب؟",
        answer:
          "لا يقدم Fresha تكاملاً أصلياً مع واتساب. موعدي مبني على واتساب أولاً.",
      },
      {
        question: "هل موعدي مجاني مثل Fresha؟",
        answer:
          "يستخدم موعدي نموذج اشتراك شفاف يبدأ من \u00A3179/شهر بدون عمولة. Fresha يفرض رسوم على كل معاملة.",
      },
    ],
  },
  acuity: {
    name: "Acuity Scheduling",
    slug: "mawidi-vs-acuity",
    taglineEn:
      "Acuity schedules appointments. Mawidi manages your entire patient journey.",
    taglineAr: "Acuity يجدول المواعيد. موعدي يدير رحلة المريض بالكامل.",
    descriptionEn:
      "Acuity Scheduling (by Squarespace) is a solid scheduling tool for Western markets, but lacks the WhatsApp-first approach, Arabic language support, and AI capabilities that GCC businesses need.",
    descriptionAr:
      "Acuity Scheduling أداة جدولة جيدة للأسواق الغربية، لكنه يفتقر إلى نهج واتساب أولاً ودعم العربية والقدرات الذكية التي تحتاجها شركات الخليج.",
    websiteUrl: "https://acuityscheduling.com",
    pricingEn: "$16-$49/mo",
    pricingAr: "$16-$49/شهر",
    weaknessesEn: [
      "No WhatsApp integration",
      "No Arabic support",
      "No AI agent",
      "No voice receptionist",
      "No GCC payments",
      "Squarespace lock-in",
    ],
    weaknessesAr: [
      "لا يوجد تكامل واتساب",
      "لا يدعم العربية",
      "لا يوجد وكيل ذكي",
      "لا يوجد استقبال صوتي",
      "لا يدعم مدفوعات الخليج",
      "مرتبط بـ Squarespace",
    ],
    features: [
      {
        nameEn: "WhatsApp Native Booking",
        nameAr: "حجز واتساب أصلي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Arabic/RTL Support",
        nameAr: "دعم العربية/RTL",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "AI Receptionist",
        nameAr: "موظفة استقبال ذكية",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Voice Agent",
        nameAr: "وكيل صوتي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Deposit Collection",
        nameAr: "تحصيل العربون",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Mada/Apple Pay",
        nameAr: "مدى/Apple Pay",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Online Scheduling",
        nameAr: "جدولة عبر الإنترنت",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Client Self-Scheduling",
        nameAr: "جدولة ذاتية للعملاء",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Automated Reminders",
        nameAr: "تذكيرات آلية",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Custom Intake Forms",
        nameAr: "نماذج استقبال مخصصة",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "No-Show Reduction",
        nameAr: "تقليل عدم الحضور",
        mawidi: "AI-powered 70%",
        competitor: "Email reminders",
      },
      {
        nameEn: "GCC Local Support",
        nameAr: "دعم محلي بالخليج",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "CRM Integration",
        nameAr: "تكامل CRM",
        mawidi: "Built-in",
        competitor: "Third-party",
      },
      {
        nameEn: "Multi-Currency GCC",
        nameAr: "عملات خليجية متعددة",
        mawidi: true,
        competitor: false,
      },
    ],
    faqsEn: [
      {
        question: "Should I choose Acuity or Mawidi for my clinic?",
        answer:
          "If your clinic is in the GCC, Mawidi is the clear choice. It offers WhatsApp-native booking, Arabic language support, and an AI receptionist — features Acuity doesn't have.",
      },
      {
        question: "Is Acuity available in Arabic?",
        answer:
          "No. Acuity does not support Arabic or RTL layouts. Mawidi is fully bilingual with native Arabic support for both patients and staff.",
      },
    ],
    faqsAr: [
      {
        question: "هل أختار Acuity أم موعدي لعيادتي؟",
        answer:
          "إذا كانت عيادتك في الخليج، موعدي هو الخيار الواضح مع حجز واتساب ودعم العربية وموظفة استقبال ذكية.",
      },
      {
        question: "هل Acuity متاح بالعربية؟",
        answer:
          "لا. لا يدعم Acuity العربية أو تخطيطات RTL. موعدي ثنائي اللغة بالكامل.",
      },
    ],
  },
  setmore: {
    name: "Setmore",
    slug: "mawidi-vs-setmore",
    taglineEn:
      "Setmore does basic scheduling. Mawidi automates your entire front desk.",
    taglineAr:
      "Setmore يقوم بالجدولة الأساسية. موعدي يؤتمت مكتب الاستقبال بالكامل.",
    descriptionEn:
      "Setmore offers free basic scheduling, but lacks the AI-powered automation, WhatsApp integration, and GCC-specific features that Mawidi provides.",
    descriptionAr:
      "يقدم Setmore جدولة أساسية مجانية، لكنه يفتقر إلى الأتمتة الذكية وتكامل واتساب والميزات الخليجية التي يقدمها موعدي.",
    websiteUrl: "https://setmore.com",
    pricingEn: "Free - $12/user/mo",
    pricingAr: "مجاني - $12/مستخدم/شهر",
    weaknessesEn: [
      "No WhatsApp booking",
      "No Arabic support",
      "No AI agent",
      "Basic features only",
      "No deposit management",
      "No GCC payments",
    ],
    weaknessesAr: [
      "لا يوجد حجز واتساب",
      "لا يدعم العربية",
      "لا يوجد وكيل ذكي",
      "ميزات أساسية فقط",
      "لا يوجد إدارة عربون",
      "لا يدعم مدفوعات الخليج",
    ],
    features: [
      {
        nameEn: "WhatsApp Native Booking",
        nameAr: "حجز واتساب أصلي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Arabic/RTL Support",
        nameAr: "دعم العربية/RTL",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "AI Receptionist",
        nameAr: "موظفة استقبال ذكية",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Voice Agent",
        nameAr: "وكيل صوتي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Deposit Collection",
        nameAr: "تحصيل العربون",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Mada/Apple Pay",
        nameAr: "مدى/Apple Pay",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Online Scheduling",
        nameAr: "جدولة عبر الإنترنت",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "Free Plan Available",
        nameAr: "خطة مجانية",
        mawidi: "14-day trial",
        competitor: true,
      },
      {
        nameEn: "Video Meetings",
        nameAr: "اجتماعات فيديو",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "Staff Scheduling",
        nameAr: "جدولة الموظفين",
        mawidi: true,
        competitor: true,
      },
      {
        nameEn: "No-Show Reduction",
        nameAr: "تقليل عدم الحضور",
        mawidi: "AI-powered 70%",
        competitor: "None",
      },
      {
        nameEn: "GCC Local Support",
        nameAr: "دعم محلي بالخليج",
        mawidi: true,
        competitor: false,
      },
    ],
    faqsEn: [
      {
        question: "Is Setmore free? How does Mawidi compare?",
        answer:
          "Setmore offers a limited free plan. Mawidi offers a 14-day free trial of its full platform. For GCC businesses, Mawidi's AI receptionist and WhatsApp integration provide significantly more value than Setmore's basic scheduling.",
      },
    ],
    faqsAr: [
      {
        question: "هل Setmore مجاني؟ كيف يقارن مع موعدي؟",
        answer:
          "يقدم Setmore خطة مجانية محدودة. يقدم موعدي تجربة مجانية لمدة 14 يوماً لمنصته الكاملة.",
      },
    ],
  },
  zocdoc: {
    name: "ZocDoc",
    slug: "mawidi-vs-zocdoc",
    taglineEn:
      "ZocDoc is a patient marketplace. Mawidi is YOUR clinic's AI receptionist.",
    taglineAr: "ZocDoc سوق للمرضى. موعدي هو موظفة الاستقبال الذكية لعيادتك.",
    descriptionEn:
      "ZocDoc is a US-focused patient marketplace where clinics pay per booking. Mawidi gives you direct control over your patient relationships with AI-powered automation.",
    descriptionAr:
      "ZocDoc سوق للمرضى يركز على أمريكا حيث تدفع العيادات لكل حجز. موعدي يمنحك السيطرة المباشرة على علاقات المرضى بأتمتة ذكية.",
    websiteUrl: "https://zocdoc.com",
    pricingEn: "$300+/mo + per-booking fees",
    pricingAr: "$300+/شهر + رسوم لكل حجز",
    weaknessesEn: [
      "US-only marketplace",
      "No GCC presence",
      "Expensive per-booking model",
      "You don't own patient relationships",
      "No WhatsApp",
      "No Arabic",
    ],
    weaknessesAr: [
      "سوق أمريكي فقط",
      "لا يوجد في الخليج",
      "نموذج حجز مكلف",
      "لا تملك علاقات المرضى",
      "لا يوجد واتساب",
      "لا يدعم العربية",
    ],
    features: [
      {
        nameEn: "WhatsApp Native Booking",
        nameAr: "حجز واتساب أصلي",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Arabic/RTL Support",
        nameAr: "دعم العربية/RTL",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "GCC Available",
        nameAr: "متاح في الخليج",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Own Your Patient Data",
        nameAr: "تملك بيانات المرضى",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "AI Receptionist",
        nameAr: "موظفة استقبال ذكية",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Patient Marketplace",
        nameAr: "سوق المرضى",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "Patient Reviews",
        nameAr: "تقييمات المرضى",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "Insurance Verification",
        nameAr: "التحقق من التأمين",
        mawidi: false,
        competitor: true,
      },
      {
        nameEn: "No Per-Booking Fees",
        nameAr: "بدون رسوم لكل حجز",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Flat Monthly Pricing",
        nameAr: "تسعير شهري ثابت",
        mawidi: "From \u00A3179/mo",
        competitor: "$300+/mo + fees",
      },
      {
        nameEn: "CRM Built-in",
        nameAr: "CRM مدمج",
        mawidi: true,
        competitor: false,
      },
      {
        nameEn: "Deposit Collection",
        nameAr: "تحصيل العربون",
        mawidi: true,
        competitor: false,
      },
    ],
    faqsEn: [
      {
        question: "Is ZocDoc available in Saudi Arabia or the UAE?",
        answer:
          "No. ZocDoc operates exclusively in the United States. Mawidi is purpose-built for the GCC region including Saudi Arabia, UAE, Qatar, Kuwait, Bahrain, and Oman.",
      },
      {
        question: "Why choose Mawidi over ZocDoc?",
        answer:
          "Unlike ZocDoc's marketplace model where you pay per booking and compete with other clinics, Mawidi gives you your own AI receptionist that handles booking through WhatsApp — the dominant messaging platform in the GCC.",
      },
    ],
    faqsAr: [
      {
        question: "هل ZocDoc متاح في السعودية أو الإمارات؟",
        answer:
          "لا. يعمل ZocDoc حصرياً في الولايات المتحدة. موعدي مصمم خصيصاً لمنطقة الخليج.",
      },
      {
        question: "لماذا أختار موعدي بدلاً من ZocDoc؟",
        answer:
          "على عكس نموذج ZocDoc حيث تدفع لكل حجز، يمنحك موعدي موظفة استقبال ذكية خاصة بك تتعامل مع الحجوزات عبر واتساب.",
      },
    ],
  },
};

export function getCompetitorBySlug(slug: string): Competitor | undefined {
  return Object.values(COMPETITORS).find((c) => c.slug === slug);
}

export function getAllCompetitorSlugs(): string[] {
  return Object.values(COMPETITORS).map((c) => c.slug);
}
