// landing-data.jsx - cached Hynite library sample data
// Assets are copied from the local Hynite asset cache. Keep the structure close
// to the renderer Game fields used by the desktop app.

const GAME_ASSET_ROOT = "assets/games";

const GAMES = [
  {
    id: "factorio",
    steamId: "427520",
    title: "Factorio",
    studio: "Wube Software",
    tag: "Factory automation",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "246h",
    activity: "last played Mar 18",
    cover: `${GAME_ASSET_ROOT}/factorio-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/factorio-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/factorio-logo.png`,
    background: `${GAME_ASSET_ROOT}/factorio-bg.jpg`,
    description: "Build automated factories, solve bottlenecks, and protect a growing production chain.",
    genres: ["Simulation", "Strategy"],
    palette: ["#44321d", "#d99b48", "#7d5c31", "#090807"],
    glow: "#d99b48",
  },
  {
    id: "satisfactory",
    steamId: "526870",
    title: "Satisfactory",
    studio: "Coffee Stain Studios",
    tag: "Open-world factory",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "102h",
    activity: "last played Mar 21",
    cover: `${GAME_ASSET_ROOT}/satisfactory-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/satisfactory-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/satisfactory-logo.png`,
    background: `${GAME_ASSET_ROOT}/satisfactory-bg.jpg`,
    description: "Explore an alien planet, build multi-story factories, and route everything by conveyor.",
    genres: ["Adventure", "Simulation"],
    palette: ["#3b2f22", "#f18838", "#997344", "#070706"],
    glow: "#f18838",
  },
  {
    id: "rocket-league",
    steamId: "252950",
    title: "Rocket League",
    studio: "Psyonix",
    tag: "Arcade sports",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "119h",
    activity: "last played Sep 7",
    cover: `${GAME_ASSET_ROOT}/rocket-league-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/rocket-league-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/rocket-league-logo.png`,
    background: `${GAME_ASSET_ROOT}/rocket-league-bg.jpg`,
    description: "Arcade soccer and vehicular movement with casual, competitive, and offline modes.",
    genres: ["Sports", "Racing"],
    palette: ["#0a2e56", "#2d91ff", "#f38e24", "#05070d"],
    glow: "#2d91ff",
  },
  {
    id: "v-rising",
    steamId: "1604030",
    title: "V Rising",
    studio: "Stunlock Studios",
    tag: "Survival ARPG",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "93h",
    activity: "last played Oct 28",
    cover: `${GAME_ASSET_ROOT}/v-rising-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/v-rising-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/v-rising-logo.png`,
    background: `${GAME_ASSET_ROOT}/v-rising-bg.jpg`,
    description: "Hunt for blood, evade daylight, and raise a castle in a hostile open world.",
    genres: ["Action", "Adventure"],
    palette: ["#26070b", "#c42435", "#6e293d", "#070507"],
    glow: "#c42435",
  },
  {
    id: "deadlock",
    steamId: "1422450",
    title: "Deadlock",
    studio: "Valve",
    tag: "Multiplayer",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "78h",
    activity: "last played Mar 27",
    cover: `${GAME_ASSET_ROOT}/deadlock-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/deadlock-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/deadlock-logo.png`,
    background: `${GAME_ASSET_ROOT}/deadlock-bg.jpg`,
    description: "A multiplayer game in early development, indexed like the rest of your local library.",
    genres: ["Action"],
    palette: ["#20201c", "#d5b56a", "#6c5a36", "#080807"],
    glow: "#d5b56a",
  },
  {
    id: "elden-ring",
    steamId: "1245620",
    title: "ELDEN RING",
    studio: "FromSoftware",
    tag: "Fantasy action RPG",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "73h",
    activity: "last played Mar 19",
    cover: `${GAME_ASSET_ROOT}/elden-ring-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/elden-ring-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/elden-ring-logo.png`,
    background: `${GAME_ASSET_ROOT}/elden-ring-bg.jpg`,
    description: "Rise, Tarnished, and cross the Lands Between in a large fantasy action RPG.",
    genres: ["Action", "RPG"],
    palette: ["#171205", "#d4a83d", "#574221", "#050503"],
    glow: "#d4a83d",
  },
  {
    id: "phasmophobia",
    steamId: "739630",
    title: "Phasmophobia",
    studio: "Kinetic Games",
    tag: "Co-op horror",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "55h",
    activity: "last played Dec 27",
    cover: `${GAME_ASSET_ROOT}/phasmophobia-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/phasmophobia-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/phasmophobia-logo.png`,
    background: `${GAME_ASSET_ROOT}/phasmophobia-bg.jpg`,
    description: "A four-player psychological horror investigation with local cached art and metadata.",
    genres: ["Action", "Indie"],
    palette: ["#141614", "#98b18b", "#445044", "#060706"],
    glow: "#98b18b",
  },
  {
    id: "helldivers-2",
    steamId: "553850",
    title: "HELLDIVERS 2",
    studio: "Arrowhead Game Studios",
    tag: "Co-op shooter",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "50h",
    activity: "last played Jan 6",
    cover: `${GAME_ASSET_ROOT}/helldivers-2-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/helldivers-2-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/helldivers-2-logo.png`,
    background: `${GAME_ASSET_ROOT}/helldivers-2-bg.jpg`,
    description: "Fast third-person co-op action across a hostile galaxy.",
    genres: ["Action"],
    palette: ["#191812", "#f0cd44", "#716522", "#050505"],
    glow: "#f0cd44",
  },
  {
    id: "monster-hunter-wilds",
    steamId: "2246340",
    title: "Monster Hunter Wilds",
    studio: "Capcom",
    tag: "Action RPG",
    source: "Steam",
    state: "Installed",
    action: "Play",
    playtime: "42h",
    activity: "last played Mar 15",
    cover: `${GAME_ASSET_ROOT}/monster-hunter-wilds-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/monster-hunter-wilds-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/monster-hunter-wilds-logo.png`,
    background: `${GAME_ASSET_ROOT}/monster-hunter-wilds-bg.jpg`,
    description: "Changing environments, large monsters, and a library entry ready for controller mode.",
    genres: ["Action", "RPG"],
    palette: ["#2b241c", "#d29a60", "#6f5941", "#070605"],
    glow: "#d29a60",
  },
  {
    id: "ghost-of-tsushima",
    steamId: "2215430",
    title: "Ghost of Tsushima DIRECTOR'S CUT",
    studio: "Sucker Punch Productions",
    tag: "Open-world action",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "41h",
    activity: "last played May 24",
    cover: `${GAME_ASSET_ROOT}/ghost-of-tsushima-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/ghost-of-tsushima-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/ghost-of-tsushima-logo.png`,
    background: `${GAME_ASSET_ROOT}/ghost-of-tsushima-bg.jpg`,
    description: "Open-world samurai action with rich detail metadata and local artwork.",
    genres: ["Action", "Adventure"],
    palette: ["#151319", "#d7d2c0", "#765d52", "#050506"],
    glow: "#d7d2c0",
  },
  {
    id: "path-of-exile-2",
    steamId: "2694490",
    title: "Path of Exile 2",
    studio: "Grinding Gear Games",
    tag: "Action RPG",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "40h",
    activity: "last played Aug 29",
    cover: `${GAME_ASSET_ROOT}/path-of-exile-2-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/path-of-exile-2-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/path-of-exile-2-logo.png`,
    background: `${GAME_ASSET_ROOT}/path-of-exile-2-bg.jpg`,
    description: "A next-generation action RPG with co-op support and a dark fantasy library profile.",
    genres: ["Action", "RPG"],
    palette: ["#1c1110", "#cf5a3b", "#7b4938", "#050505"],
    glow: "#cf5a3b",
  },
  {
    id: "apex-legends",
    steamId: "1172470",
    title: "Apex Legends",
    studio: "Respawn Entertainment",
    tag: "Hero shooter",
    source: "Steam",
    state: "Owned",
    action: "Details",
    playtime: "224h",
    activity: "last played Sep 7",
    cover: `${GAME_ASSET_ROOT}/apex-legends-cover.jpg`,
    icon: `${GAME_ASSET_ROOT}/apex-legends-icon.jpg`,
    logo: `${GAME_ASSET_ROOT}/apex-legends-logo.png`,
    background: `${GAME_ASSET_ROOT}/apex-legends-bg.jpg`,
    description: "A free-to-play hero shooter with squad play and Battle Royale pacing.",
    genres: ["Action", "Free To Play"],
    palette: ["#2f0e0d", "#e24d35", "#7e2e28", "#070404"],
    glow: "#e24d35",
  },
];

const SPOTLIGHT = GAMES.map((game) => ({
  id: game.id,
  title: game.title,
  studio: game.studio,
  tag: game.tag,
  source: game.source,
  state: game.state,
  action: game.action === "Play" ? "Launch" : "Details",
  launchable: game.action === "Play",
  icon: game.icon,
  logo: game.logo,
}));

const HYNITE_DEFAULT_PALETTE = ["#c44eff", "#6d3ad8", "#2b1742", "#0e0418"];
const HYNITE_DEFAULT_BASE = "#0a0613";
const HYNITE_DEFAULT_GLOW = "#c44eff";

Object.assign(window, {
  GAMES,
  SPOTLIGHT,
  HYNITE_DEFAULT_PALETTE,
  HYNITE_DEFAULT_BASE,
  HYNITE_DEFAULT_GLOW,
});
