/* ===========================================================
   GMC FONT — Mock catalog data
   =========================================================== */
const COLORS = {
  /* legacy alias names */
  lemon:  "var(--butter)",
  lime:   "var(--mint)",
  coral:  "var(--pink)",
  salmon: "var(--peach)",
  sky:    "var(--sky)",
  cream:  "var(--bg-soft)",
  ink:    "var(--ink)",
  white:  "var(--white)",
  /* pastel rainbow */
  pink:   "var(--pink)",
  butter: "var(--butter)",
  mint:   "var(--mint)",
  peach:  "var(--peach)",
  lilac:  "var(--lilac)",
};

const SAMPLES = {
  display: { th: "ขนมหวานวันเสาร์", en: "Saturday Sweets" },
  script:  { th: "สวัสดี ทักทาย", en: "Hello, Sunshine!" },
  rounded: { th: "ครีมโซดา สดชื่น", en: "Cream Soda" },
  serif:   { th: "ดวงดาวกลางคืน", en: "Midnight Moon" },
  sans:    { th: "ฟอนต์โมเดิร์น", en: "Modern Type" },
  pixel:   { th: "ลูกอม 8 บิต", en: "8-bit Candy" },
};

/* ============================================================
   CATEGORIES — collections from gmcfontverse
   ============================================================ */
const CATEGORIES = [
  { id: "all",          th: "ทั้งหมด",     en: "All",          color: "ink"    },
  { id: "kokoo",        th: "โกโก้",       en: "Cocoa",        color: "peach"  },
  { id: "khanomthai",   th: "ขนมไทย",      en: "Khanom Thai",  color: "lemon"  },
  { id: "cocktail",     th: "คล็อคเทล",    en: "Cocktail",     color: "coral"  },
  { id: "cha",          th: "ชา",          en: "Cha",          color: "lemon"  },
  { id: "tomyum",       th: "ต้มยำ",       en: "Tomyum",       color: "coral"  },
  { id: "bakery",       th: "เบเกอรี่",     en: "Bakery",       color: "peach"  },
  { id: "popcorn",      th: "ป๊อบคอร์น",   en: "Popcorn",      color: "lemon"  },
  { id: "polmai",       th: "ผลไม้",       en: "Fruity",       color: "lime"   },
  { id: "signature",    th: "ฟอนต์ลายเซ็น", en: "Signature",    color: "sky"    },
  { id: "lazyanimal",   th: "สัตว์ขี้เกียจ", en: "Lazy Animal", color: "pink"   },
  { id: "bedroom",      th: "ห้องนอน",      en: "Bedroom",      color: "lilac"  },
  { id: "lao",          th: "เหล้า",        en: "Lao",          color: "lime"   },
  { id: "thaifood",     th: "อาหารไทย",    en: "Thai Food",    color: "coral"  },
  { id: "bubble",       th: "Bubble Emoji",en: "Bubble Emoji", color: "sky"    },
  { id: "chi",          th: "Chi",         en: "Chi",          color: "lilac"  },
  { id: "cuteflower",   th: "Cute Flower", en: "Cute Flower",  color: "pink"   },
  { id: "cutiebelle",   th: "Cutie Belle", en: "Cutie Belle",  color: "pink"   },
  { id: "emoji",        th: "emoji",       en: "emoji",        color: "lemon"  },
  { id: "family",       th: "Family",      en: "Family",       color: "lime"   },
  { id: "flowerset",    th: "Flower set",  en: "Flower set",   color: "peach"  },
  { id: "funnycute",    th: "Funny cute",  en: "Funny Cute",   color: "coral"  },
  { id: "hiiyoh",       th: "Hii yoh! gg", en: "Hii yoh! gg",  color: "lilac"  },
  { id: "lazyday",      th: "Lazy day",    en: "Lazy day",     color: "sky"    },
  { id: "lxiiecute",    th: "Lxiie Cute",  en: "Lxiie Cute",   color: "pink"   },
  { id: "miniemoji",    th: "miniEmojiset",en: "miniEmojiset", color: "lemon"  },
  { id: "pixiiecute",   th: "Pixiie Cute", en: "Pixiie Cute",  color: "lilac"  },
  { id: "special",      th: "Special",     en: "Special",      color: "coral"  },
  { id: "tsu",          th: "Tsu",         en: "Tsu",          color: "mint"   },
  { id: "universal",    th: "Universal fontset", en: "Universal fontset", color: "sky" },
];

const FONTS = []; // loaded from Supabase via loadPublicFonts()

const LANGS = [
  { id: "all",     th: "ทุกภาษา"  },
  { id: "thai",    th: "ภาษาไทย"  },
  { id: "english", th: "อังกฤษ"   },
  { id: "bilingual", th: "ไทย-อังกฤษ" },
];

const SORTS = [
  { id: "featured", th: "แนะนำ" },
  { id: "new",      th: "มาใหม่" },
  { id: "hot",      th: "ยอดฮิต" },
  { id: "price-asc", th: "ราคาน้อย→มาก" },
  { id: "price-desc", th: "ราคามาก→น้อย" },
];

Object.assign(window, { COLORS, SAMPLES, FONTS, CATEGORIES, LANGS, SORTS });
