export const DAILY_LIMITS = {
  free: { msgs: 10, personas: ["nurbuddy"] },
  premium: { msgs: 100, personas: ["nurbuddy", "alim", "hakim", "murabbi", "mufti", "daie"] },
  pro: { msgs: Infinity, personas: ["nurbuddy", "alim", "hakim", "murabbi", "mufti", "daie"] },
};

export const HALAL_LIMITS = {
  free: { queriesPerDay: 10, scope: "mosques" },
  premium: { queriesPerDay: Infinity, scope: "all" },
  pro: { queriesPerDay: Infinity, scope: "all" },
};

export const MARKETPLACE_LIMITS = {
  free: { canSell: false, maxListings: 0 },
  premium: { canSell: true, maxListings: 20 },
  pro: { canSell: true, maxListings: Infinity },
};

export const FORUM_LIMITS = {
  free: { canPost: false },
  premium: { canPost: true },
  pro: { canPost: true },
};

export const PREMIUM_PRICES = {
  premium: { usd: 4.99, priceId: "price_premium_monthly" },
  pro: { usd: 9.99, priceId: "price_pro_monthly" },
};

export function getUserTier(isPremium: boolean, isPro: boolean): "free" | "premium" | "pro" {
  if (isPro) return "pro";
  if (isPremium) return "premium";
  return "free";
}
