/* MaShowMagic — content data. Real identity from the brand's GitHub
   (profile README + portfolio v1). Edit freely. */
const DATA = {
  name: 'MaShowMagic',
  discordId: '373411032191991808',   // live avatar + presence via Lanyard / Discord CDN
  roles: ['Discord Bot Developer', 'Music Bot Creator', 'TypeScript & Node.js'],
  greeting: 'Hey, I\u2019m MaShow',
  greetingTh: '\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a',
  bio: '\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e0a\u0e32\u0e27\u0e44\u0e17\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1a\u0e2d\u0e17 Discord \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e25\u0e31\u0e07\u0e1a\u0e49\u0e32\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e15\u0e23\u0e35\u0e21\u0e40\u0e1e\u0e25\u0e07 \u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e01\u0e47\u0e17\u0e33\u0e1a\u0e2d\u0e17\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e1e\u0e25\u0e07\u0e43\u0e19\u0e2b\u0e49\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07 \u2014 \u0e1a\u0e32\u0e07\u0e17\u0e35\u0e01\u0e47\u0e41\u0e2d\u0e1a\u0e19\u0e2d\u0e19\u0e1a\u0e49\u0e32\u0e07',

  status: { state: 'online', label: 'Available for work', sub: 'Usually replies within a day' },

  nowPlaying: { track: 'Midnight City', artist: 'M83', duration: 228, start: 84 },

  // ── Spotify ───────────────────────────────────────────────
  // Client ID is public/safe to ship. It is NOT enough on its own to show
  // YOUR now-playing on a public site — that needs a tiny serverless function
  // holding a refresh token (NEVER put the Client Secret or refresh token here).
  // Deploy the function, then paste its URL into `nowPlayingEndpoint` and the
  // card goes LIVE. Until then it shows the sample track above.
  // Expected JSON from the endpoint:
  //   { isPlaying, title, artist, albumImageUrl, songUrl, progressMs, durationMs }
  spotify: {
    clientId: '9440251956ad4fbb9dc08e282a5bf578',
    nowPlayingEndpoint: 'https://spotify-backend-ruby-five.vercel.app/api/now-playing',
    pollMs: 20000,
  },

  location: { city: 'Bangkok', country: 'Thailand', flag: '\ud83c\uddf9\ud83c\udded', tz: 'GMT+7', tzOffset: 7, temp: 33, sky: 'Sunny' },

  discord: {
    server: 'MaShowMagic Community',
    userId: '373411032191991808',   // ← live Discord presence via Lanyard (join discord.gg/lanyard)
    inviteCode: 'erBBjc3dg2',   // ← live: pulls real server icon, member avatars & counts
    members: '1.6k',
    online: 102,
    avatars: [
      'linear-gradient(135deg,#5865f2,#7984f5)',
      'linear-gradient(135deg,#1db954,#5be584)',
      'linear-gradient(135deg,#ff5e5b,#ffa14a)',
      'linear-gradient(135deg,#f0b232,#ffd97a)',
    ],
    invite: 'https://discord.com/invite/erBBjc3dg2',
  },

  building: {
    title: 'MaShowBot',
    desc: 'A feature-rich Discord music bot — Spotify integration, queue system, and a Fastify REST API.',
    tags: ['TypeScript', 'Discord.js', 'Lavalink', 'Fastify'],
    link: 'https://www.mashow.online/',
  },

  github: {
    user: 'mashowmagic',
    name: 'MaShowMagic',
    href: 'https://github.com/mashowmagic',
    repos: 28,
    followers: 184,
    stars: 421,
    streak: 47,
    topRepos: [
      { name: 'MaShowBot', lang: 'TypeScript', langColor: '#3178c6', stars: 312 },
      { name: 'mashow-steam-idle', lang: 'C#', langColor: '#178600', stars: 64 },
      { name: 'github-readme-stats', lang: 'JavaScript', langColor: '#f1e05a', stars: 31 },
    ],
  },

  socials: [
    { name: 'Discord', slug: 'discord', color: '5865F2', handle: 'community', href: 'https://discord.com/invite/erBBjc3dg2' },
    { name: 'GitHub', slug: 'github', color: null, handle: 'mashowmagic', href: 'https://github.com/mashowmagic' },
    { name: 'Ko-fi', slug: 'kofi', color: 'FF5E5B', handle: 'support', href: 'https://ko-fi.com/mashowmagic' },
    { name: 'Spotify', slug: 'spotify', color: '1DB954', handle: 'playlists', href: '#' },
    { name: 'Steam', slug: 'steam', color: null, handle: 'idle app', href: '#' },
    { name: 'YouTube', slug: 'youtube', color: 'FF0000', handle: 'demos', href: '#' },
  ],

  photos: [
    { id: 'setup', caption: 'The setup' },
    { id: 'city', caption: 'Bangkok nights' },
  ],

  blog: [
    { title: 'Streaming audio with Lavalink', date: '2026 \u00b7 MAY 28', },
    { title: 'Building a queue people trust', date: '2026 \u00b7 MAY 02', },
    { title: 'Fastify + Discord.js, cleanly', date: '2026 \u00b7 APR 14', },
  ],
};
Object.assign(window, { DATA });
