import type { Strategy } from '@/shared/types/app';

export const CLASSROOM_SUPPORT_CATEGORY_FILTERS = [
  { value: 'all', label: 'All Categories' },
  { value: 'visual-support', label: 'Visual Supports' },
  { value: 'transition', label: 'Transitions' },
  { value: 'sensory', label: 'Sensory' },
  { value: 'communication', label: 'Communication' },
  { value: 'behavior', label: 'Behavior' },
  { value: 'social', label: 'Social Skills' },
] as const;

export const CLASSROOM_SUPPORT_AGE_FILTERS = [
  { value: 'all', label: 'All Ages' },
  { value: 'K-2', label: 'K-2' },
  { value: '3-5', label: '3-5' },
  { value: '6-8', label: '6-8' },
  { value: 'All', label: 'Universal' },
] as const;

export const CLASSROOM_SUPPORT_ZONE_FILTERS = [
  {
    value: 'all',
    label: 'All Zones',
    bg: 'bg-slate-700/50',
    text: 'text-slate-300',
    activeBg: 'bg-slate-600/50',
    activeText: 'text-white',
  },
  {
    value: 'blue',
    label: 'Blue',
    bg: 'bg-blue-500/10',
    text: 'text-blue-400',
    activeBg: 'bg-blue-500/20',
    activeText: 'text-blue-300',
  },
  {
    value: 'green',
    label: 'Green',
    bg: 'bg-emerald-500/10',
    text: 'text-emerald-400',
    activeBg: 'bg-emerald-500/20',
    activeText: 'text-emerald-300',
  },
  {
    value: 'yellow',
    label: 'Yellow',
    bg: 'bg-yellow-500/10',
    text: 'text-yellow-400',
    activeBg: 'bg-yellow-500/20',
    activeText: 'text-yellow-300',
  },
  {
    value: 'red',
    label: 'Red',
    bg: 'bg-red-500/10',
    text: 'text-red-400',
    activeBg: 'bg-red-500/20',
    activeText: 'text-red-300',
  },
] as const;

export const CLASSROOM_SUPPORT_CATEGORY_COLOR_CLASSES: Record<Strategy['category'], string> = {
  'visual-support': 'bg-violet-500/15 text-violet-400 border-violet-500/20',
  transition: 'bg-amber-500/15 text-amber-400 border-amber-500/20',
  sensory: 'bg-teal-500/15 text-teal-400 border-teal-500/20',
  communication: 'bg-blue-500/15 text-blue-400 border-blue-500/20',
  behavior: 'bg-rose-500/15 text-rose-400 border-rose-500/20',
  social: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/20',
};

export const CLASSROOM_SUPPORT_ZONE_COLOR_CLASSES: Record<Strategy['zone'], string> = {
  blue: 'bg-blue-500/15 text-blue-400 border-blue-500/20',
  green: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/20',
  yellow: 'bg-yellow-500/15 text-yellow-400 border-yellow-500/20',
  red: 'bg-red-500/15 text-red-400 border-red-500/20',
};

export const CLASSROOM_SUPPORT_DAILY_STRATEGY_INTERVAL_MS = 86_400_000;

export type ClassroomSupportCategoryFilter = typeof CLASSROOM_SUPPORT_CATEGORY_FILTERS[number]['value'];
export type ClassroomSupportAgeFilter = typeof CLASSROOM_SUPPORT_AGE_FILTERS[number]['value'];
export type ClassroomSupportZoneFilter = typeof CLASSROOM_SUPPORT_ZONE_FILTERS[number]['value'];
