// Tool definitions for SER Automation Platform

const SPECIALISMS = [
  { id: 'seo',     label: 'SEO',          color: 'var(--spec-seo)',     pillClass: 'pill-seo' },
  { id: 'sea',     label: 'SEA',          color: 'var(--spec-sea)',     pillClass: 'pill-sea' },
  { id: 'content', label: 'Content',      color: 'var(--spec-content)', pillClass: 'pill-content' },
  { id: 'data',    label: 'Data & Analytics', color: 'var(--spec-data)', pillClass: 'pill-data' },
  { id: 'ai',      label: 'AI / Automation', color: 'var(--spec-ai)',   pillClass: 'pill-ai' }
];

// Inline SVG icons — kept simple and on-brand
const ToolIcons = {
  ab: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M3 3v18h18"/><path d="M7 14l4-4 4 4 5-5"/></svg>),
  alt: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-5-5L5 21"/></svg>),
  ai: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/></svg>),
  bolt: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>),
  bench: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M12 2L4 7v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V7l-8-5z"/></svg>),
  search: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>),
  doc: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6M16 13H8M16 17H8M10 9H8"/></svg>),
  shop: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/><path d="M3 6h18M16 10a4 4 0 0 1-8 0"/></svg>),
  harvest: (<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5M3 12a9 3 0 0 0 18 0"/></svg>),
};

const TOOLS = [
  {
    id: 'seo-ab',
    name: 'SEO A/B Test Platform',
    desc: 'Test SEO-wijzigingen statistisch correct via Bayesian Causal Impact. GSC + BigQuery, 4 stappen tot een verdict.',
    spec: 'seo',
    icon: 'ab',
    badge: 'Featured',
    runs: 142,
    lastUsed: '2 uur geleden',
    inputs: ['Google Search Console', 'BigQuery (optioneel)'],
    outputs: ['Causal Impact rapport', 'Go / No-go verdict'],
  },
  {
    id: 'sc-scraper',
    name: 'Search Console Data Scraper',
    desc: 'Pull bulk query- en page-data uit Google Search Console met thread-safe rate limiting.',
    spec: 'data',
    icon: 'search',
    runs: 89,
    lastUsed: 'gisteren',
    inputs: ['GSC Property', 'Date range'],
    outputs: ['CSV export', 'Excel rapport'],
  },
  {
    id: 'autoriteit',
    name: 'Autoriteit Benchmark',
    desc: 'Vergelijk DR/DA-scores van een lijst domeinen tegen concurrenten met retry-logic en parallelisme.',
    spec: 'seo',
    icon: 'bench',
    runs: 67,
    lastUsed: '3 dagen geleden',
    inputs: ['Domeinlijst (CSV)'],
    outputs: ['Benchmark rapport'],
  },
  {
    id: 'harvester',
    name: 'Ahrefs · Semrush · Majestic Harvester',
    desc: 'Multi-API data harvesting met intelligente failover over meerdere API-keys. Geoptimaliseerd voor M-chips.',
    spec: 'data',
    icon: 'harvest',
    runs: 234,
    lastUsed: '1 uur geleden',
    inputs: ['URL/domain list', 'API keys'],
    outputs: ['Unified dataset (xlsx)'],
  },
  {
    id: 'ai-overview',
    name: 'AI Overview Bulk Analyzer',
    desc: 'Check welke queries een AI Overview triggeren in Google SERP en analyseer concurrentie via SerpAPI.',
    spec: 'ai',
    icon: 'ai',
    runs: 178,
    lastUsed: '4 uur geleden',
    inputs: ['Keyword lijst', 'SerpAPI key'],
    outputs: ['AIO presence rapport'],
  },
  {
    id: 'aio-fast',
    name: 'AIO Bulk Fast',
    desc: 'Snellere variant van de AI Overview Bulk — geoptimaliseerd voor grote volumes met process pooling.',
    spec: 'ai',
    icon: 'bolt',
    runs: 56,
    lastUsed: '5 dagen geleden',
    inputs: ['Keyword lijst (CSV)'],
    outputs: ['AIO bulk rapport'],
  },
  {
    id: 'alt-tekst',
    name: 'Alt-tekst Generator',
    desc: 'Genereer SEO-vriendelijke alt-teksten voor bulk afbeeldingen via Claude Vision API.',
    spec: 'content',
    icon: 'alt',
    runs: 412,
    lastUsed: '20 minuten geleden',
    inputs: ['Image URL list (CSV)', 'Claude API key'],
    outputs: ['Alt-text mapping (CSV)'],
  },
  {
    id: 'teksten-gemini',
    name: 'Teksten Generator — Gemini Batch',
    desc: 'Bulk content generation via Gemini, OpenAI én Claude Batch APIs. Met batch-history en URL-mapping.',
    spec: 'content',
    icon: 'doc',
    runs: 198,
    lastUsed: 'vandaag, 10:45',
    inputs: ['Briefing (DOCX/CSV)', 'Model API keys'],
    outputs: ['Gegenereerde teksten'],
  },
  {
    id: 'teksten-intratuin',
    name: 'Teksten Generator — Intratuin Klant',
    desc: 'Klant-specifieke variant met aangepaste prompts en branding voor productteksten.',
    spec: 'content',
    icon: 'shop',
    runs: 73,
    lastUsed: 'gisteren',
    inputs: ['Productfeed', 'Brand guidelines'],
    outputs: ['Productteksten (DOCX)'],
  },
];

const RECENT = ['alt-tekst', 'harvester', 'seo-ab', 'teksten-gemini'];
const FAVORITES = new Set(['seo-ab', 'alt-tekst']);

window.SER_DATA = { SPECIALISMS, TOOLS, RECENT, FAVORITES, ToolIcons };
