// Lynxe — static config (subjects only)
// Dynamic data (posts, lectures, missions, tasks) is fetched by each component via api.jsx

const SUBJECTS = [
  { id: 'maths',         name: 'Mathematics Ext. 2', short: 'Maths',     hex: '#a78bfa', visible: true },
  { id: 'physics',       name: 'Physics',            short: 'Physics',   hex: '#60a5fa', visible: true },
  { id: 'english',       name: 'English Advanced',   short: 'English',   hex: '#f472b6', visible: true },
  { id: 'legal',         name: 'Legal Studies',      short: 'Legal',     hex: '#34d399', visible: true },
  { id: 'business',      name: 'Business Studies',   short: 'Business',  hex: '#fbbf24', visible: true },
  { id: 'economics',     name: 'Economics',          short: 'Economics', hex: '#f87171', visible: true },

  { id: 'maths-std',     name: 'Mathematics Standard',        short: 'Maths Std',    hex: '#a78bfa', visible: false },
  { id: 'maths-adv',     name: 'Mathematics Advanced',        short: 'Maths Adv',    hex: '#a78bfa', visible: false },
  { id: 'maths-ext1',    name: 'Mathematics Extension 1',     short: 'Maths Ext 1',  hex: '#a78bfa', visible: false },
  { id: 'english-std',   name: 'English Standard',            short: 'English Std',  hex: '#f472b6', visible: false },
  { id: 'english-ext1',  name: 'English Extension 1',         short: 'English Ext 1',hex: '#f472b6', visible: false },
  { id: 'chemistry',     name: 'Chemistry',                   short: 'Chem',         hex: '#60a5fa', visible: false },
  { id: 'biology',       name: 'Biology',                     short: 'Bio',          hex: '#60a5fa', visible: false },
  { id: 'modern-history',name: 'Modern History',              short: 'Modern Hist',  hex: '#34d399', visible: false },
  { id: 'ancient-history',name:'Ancient History',             short: 'Ancient Hist', hex: '#34d399', visible: false },
  { id: 'geography',     name: 'Geography',                   short: 'Geo',          hex: '#34d399', visible: false },
  { id: 'software',      name: 'Software Engineering',        short: 'Software',     hex: '#f87171', visible: false },
  { id: 'pdhpe',         name: 'PDHPE',                       short: 'PDHPE',        hex: '#34d399', visible: false },
  { id: 'visual-arts',   name: 'Visual Arts',                 short: 'Visual Arts',  hex: '#fbbf24', visible: false },
  { id: 'drama',         name: 'Drama',                       short: 'Drama',        hex: '#fbbf24', visible: false },
  { id: 'design-tech',   name: 'Design & Technology',         short: 'D&T',          hex: '#f87171', visible: false },
];

const SUBJ_BY_ID = Object.fromEntries(SUBJECTS.map(s => [s.id, s]));
const VISIBLE_SUBJECTS = SUBJECTS.filter(s => s.visible);
const NOTION_BASE = 'https://www.notion.so/lynxe';

// Mutable globals — populated by API calls in each component
window.CLASSROOM_POSTS = [];
window.LECTURES = [];
window.MISSIONS = [];
window.TODAY_TASKS = [];

Object.assign(window, { SUBJECTS, SUBJ_BY_ID, VISIBLE_SUBJECTS, NOTION_BASE });
