// Static data for the prototype.

const CATEGORIES = [
  { id: "honda",    name: "Honda",    threads: 4218, members: "12.4k", color: "#E60012", model: "CBR 1000RR-R" },
  { id: "yamaha",   name: "Yamaha",   threads: 3984, members: "11.1k", color: "#0E3B7A", model: "YZF-R1" },
  { id: "bmw",      name: "BMW",      threads: 2611, members:  "8.2k", color: "#1C69D4", model: "S 1000 RR" },
  { id: "ktm",      name: "KTM",      threads: 2188, members:  "7.0k", color: "#FF6600", model: "1290 Super Duke" },
  { id: "ducati",   name: "Ducati",   threads: 2974, members:  "9.6k", color: "#CC0033", model: "Panigale V4" },
  { id: "kawasaki", name: "Kawasaki", threads: 2412, members:  "8.8k", color: "#3B7A00", model: "Ninja ZX-10R" },
  { id: "suzuki",   name: "Suzuki",   threads: 1812, members:  "6.3k", color: "#005DAA", model: "GSX-R1000R" },
  { id: "triumph",  name: "Triumph",  threads: 1604, members:  "5.4k", color: "#2A2A2A", model: "Speed Triple" },
];

const SUBFORUMS = [
  { id: "maintenance", name: "Maintenance", icon: "Wrench",   desc: "Service intervals, mods, DIY", threads: 1842 },
  { id: "gear",        name: "Gear",        icon: "Helmet",   desc: "Helmets, leathers, comms",     threads: 1311 },
  { id: "routes",      name: "Routes",      icon: "Map",      desc: "Roads, passes, ride reports",  threads:  928 },
  { id: "buysell",     name: "Buy & Sell",  icon: "Cart",     desc: "Bikes, parts, OEM & aftermarket", threads: 2104 },
  { id: "beginners",   name: "Beginners",   icon: "Sparkles", desc: "First bike, training, licensing", threads: 612 },
  { id: "safety",      name: "Safety",      icon: "Shield",   desc: "ATGATT, recalls, advisories",  threads:  483 },
];

const USERS = {
  apex_kira: { name: "apex_kira", handle: "@apex_kira", role: "Track Day Reg.", bike: "Yamaha R1M ’24", color: "#ff5a3a", initials: "AK", country: "JP" },
  torque_dad: { name: "torque_dad", handle: "@torque_dad", role: "Veteran", bike: "BMW R 1250 GS", color: "#3b82f6", initials: "TD", country: "DE" },
  ducati_diaz: { name: "ducati_diaz", handle: "@ducati_diaz", role: "Mod", bike: "Panigale V4 SP2", color: "#dc2626", initials: "DD", country: "ES" },
  knee_down: { name: "knee_down", handle: "@knee_down", role: "Member", bike: "Honda CBR1000RR-R", color: "#f59e0b", initials: "KD", country: "GB" },
  vstrom_vince: { name: "vstrom_vince", handle: "@vstrom_vince", role: "Member", bike: "Suzuki V-Strom 1050", color: "#10b981", initials: "VV", country: "US" },
  highside_hana: { name: "highside_hana", handle: "@highside_hana", role: "Editor", bike: "KTM 890 Duke R", color: "#a855f7", initials: "HH", country: "AT" },
  rev_ricci: { name: "rev_ricci", handle: "@rev_ricci", role: "Member", bike: "Aprilia RSV4", color: "#ec4899", initials: "RR", country: "IT" },
};

// Latest topics
const TOPICS = [
  { id: "t1", title: "R1M ’24 vs Panigale V4 — back-to-back on the same day at Mugello", author: "apex_kira", cat: "yamaha", sub: "routes", replies: 142, views: "8.4k", likes: 318, mins: 12, hot: true, pinned: false },
  { id: "t2", title: "Öhlins NIX30 setup for street: front sag, preload, what works on UK B-roads", author: "knee_down", cat: "honda", sub: "maintenance", replies: 56, views: "2.1k", likes: 94, mins: 28 },
  { id: "t3", title: "[Megathread] 2026 KTM 1390 SD R — first ride impressions", author: "highside_hana", cat: "ktm", sub: "routes", replies: 248, views: "14.2k", likes: 612, mins: 42, hot: true, pinned: true },
  { id: "t4", title: "Shoei X-SPR Pro vs Arai RX-7V Evo — 6-month long-term review", author: "ducati_diaz", cat: "ducati", sub: "gear", replies: 88, views: "3.6k", likes: 201, mins: 1, hot: false },
  { id: "t5", title: "Stelvio Pass northbound at sunrise — route notes + GPX", author: "torque_dad", cat: "bmw", sub: "routes", replies: 47, views: "1.9k", likes: 132, mins: 3 },
  { id: "t6", title: "Selling: 2022 Aprilia RSV4 Factory, 4,200 mi, full Akra, Milan area", author: "rev_ricci", cat: "ducati", sub: "buysell", replies: 12, views: "612", likes: 19, mins: 9 },
  { id: "t7", title: "First big bike at 24 — talked into a litre, talk me out of it", author: "vstrom_vince", cat: "suzuki", sub: "beginners", replies: 203, views: "9.1k", likes: 88, mins: 17, hot: true },
  { id: "t8", title: "Recall notice: BMW S 1000 RR ’23–’24 — quickshifter ECU update", author: "torque_dad", cat: "bmw", sub: "safety", replies: 34, views: "5.4k", likes: 76, mins: 55 },
];

// Featured (landing) — picks
const FEATURED = [TOPICS[2], TOPICS[0], TOPICS[3], TOPICS[7]];

// Replies for topic detail (TOPICS[2] — KTM megathread)
const REPLIES = [
  {
    id: "r1", author: "highside_hana", time: "4h ago", op: true, likes: 248, edited: false,
    body: [
      { type: "p", text: "Spent two days on the 1390 SD R at the press launch in Almería. Short version: it's still a hooligan, but the chassis finally feels as fast as the engine. The new semi-active WP suspension is the headline." },
      { type: "p", text: "Engine is essentially the 1390 LC8c V-twin with new cam profiles and a slightly heavier crank. Peak claimed 190 hp at 10,000 rpm, 107 lb-ft at 8,000. On the dyno KTM had set up trackside I saw 174 rear-wheel hp on a stone-stock unit — which lines up with previous-gen real-world numbers." },
      { type: "quote", who: "from KTM's tech briefing", text: "We didn't chase peak figures. We chased a flatter torque curve below 6,000 — the SD R is a B-road weapon first." },
      { type: "p", text: "What surprised me most: the riding modes are actually distinct now. Street and Sport feel one-and-a-half steps apart instead of the half-step they used to. Track mode unlocks anti-wheelie slip targets you can dial in 1% increments." },
    ],
  },
  {
    id: "r2", author: "torque_dad", time: "3h ago", op: false, likes: 41,
    body: [
      { type: "p", text: "Great write-up. Question for you on the semi-active — does the WP system fall back to fixed damping when you flat-bat the battery? My GS does and I've always wondered how KTM handles that." },
    ],
  },
  {
    id: "r3", author: "highside_hana", time: "3h ago", op: true, likes: 27,
    body: [
      { type: "p", text: "Yes — confirmed with the chassis engineer. There's a safe default damping curve baked into the shock control unit. If CAN drops out you get something close to Comfort." },
    ],
  },
  {
    id: "r4", author: "ducati_diaz", time: "2h ago", op: false, likes: 58, mod: true,
    body: [
      { type: "p", text: "Moving this thread to Routes since most of the discussion is about ride-feel on real roads. Keeping it pinned. Carry on." },
    ],
  },
  {
    id: "r5", author: "apex_kira", time: "1h ago", op: false, likes: 73,
    body: [
      { type: "p", text: "Did you get any track time on it or just road? Curious how the steering damper handles trail braking into a tight hairpin — the old SD R would shake its head if you were aggressive on the front." },
    ],
  },
  {
    id: "r6", author: "knee_down", time: "44m ago", op: false, likes: 12,
    body: [
      { type: "p", text: "Coming from the CBR-RR — I have a deposit down on one of these as a second bike. The torque curve flattening is exactly what I wanted to hear. Thanks for the write-up." },
    ],
  },
];

// Profile activity (for ducati_diaz)
const PROFILE_ACTIVITY = [
  { kind: "thread",  title: "Shoei X-SPR Pro vs Arai RX-7V Evo — 6-month long-term review", cat: "Gear", time: "1m ago", stat: "88 replies" },
  { kind: "reply",   title: "Re: 2026 KTM 1390 SD R — first ride impressions",              cat: "Routes", time: "2h ago", stat: "58 likes" },
  { kind: "like",    title: "Liked “R1M ’24 vs Panigale V4 — back-to-back at Mugello”",     cat: "Yamaha", time: "5h ago", stat: "" },
  { kind: "thread",  title: "Panigale V4 SP2 — first 1,000 mi service log, photos inside",   cat: "Ducati", time: "2d ago", stat: "204 replies" },
  { kind: "reply",   title: "Re: Best 1-piece suit under €1,500 for track days",            cat: "Gear", time: "3d ago", stat: "31 likes" },
  { kind: "thread",  title: "[Guide] Setting forks for a 78 kg rider, V4 stock springs",     cat: "Maintenance", time: "1w ago", stat: "142 replies" },
];

const PROFILE_BADGES = [
  { name: "Track Days ×12", tone: "red" },
  { name: "Verified owner", tone: "neutral" },
  { name: "10k posts",      tone: "neutral" },
  { name: "Mod ’24",        tone: "orange" },
];

const COUNTRY_FLAGS = { JP:"🇯🇵", DE:"🇩🇪", ES:"🇪🇸", GB:"🇬🇧", US:"🇺🇸", AT:"🇦🇹", IT:"🇮🇹" };

Object.assign(window, { CATEGORIES, SUBFORUMS, USERS, TOPICS, FEATURED, REPLIES, PROFILE_ACTIVITY, PROFILE_BADGES, COUNTRY_FLAGS });
