/**
 * 标准尼泊尔页：按后台 nepal_art_style 切换渐变与纸纹。
 * 新增风格时在此注册即可，无需改组件结构。
 */
export type NepalArtStyleKey = string

export interface StandardNepalTheme {
  gradient: string
  /** 额外装饰层 class（点阵/叠色） */
  overlayClass: string
}

export const STANDARD_NEPAL_THEMES: Record<string, StandardNepalTheme> = {
  none: {
    gradient: 'from-lokta-cream/90 via-paper to-lokta-blush/25',
    overlayClass: 'opacity-[0.32]',
  },
  mandala_pink: {
    gradient: 'from-lokta-blush/35 via-rose-100/25 to-lokta-cream/40',
    overlayClass: 'opacity-[0.35]',
  },
  mandala_blue: {
    gradient: 'from-cyan-100/40 via-lokta-teal/20 to-lokta-deep/10',
    overlayClass: 'opacity-[0.32]',
  },
  spiral_rose: {
    gradient: 'from-fuchsia-100/35 via-pink-50/40 to-rose-100/30',
    overlayClass: 'opacity-[0.34]',
  },
  spiral_cyan: {
    gradient: 'from-sky-100/40 via-cyan-50/35 to-teal-100/25',
    overlayClass: 'opacity-[0.32]',
  },
  dawn_meet: {
    gradient: 'from-amber-100/55 via-orange-50/45 to-rose-100/35',
    overlayClass: 'opacity-[0.38]',
  },
  blush_argue: {
    gradient: 'from-rose-200/45 via-fuchsia-100/30 to-stone-200/40',
    overlayClass: 'opacity-[0.36]',
  },
  mint_reconcile: {
    gradient: 'from-emerald-100/50 via-teal-50/40 to-cyan-100/30',
    overlayClass: 'opacity-[0.33]',
  },
  saffron_home: {
    gradient: 'from-amber-200/45 via-yellow-50/50 to-orange-100/38',
    overlayClass: 'opacity-[0.36]',
  },
  indigo_ikea: {
    gradient: 'from-indigo-100/50 via-slate-100/40 to-sky-100/38',
    overlayClass: 'opacity-[0.34]',
  },
  lotus_petal: {
    gradient: 'from-pink-100/40 via-violet-100/32 to-fuchsia-50/42',
    overlayClass: 'opacity-[0.35]',
  },
  lokta_gold: {
    gradient: 'from-yellow-100/50 via-amber-50/48 to-stone-100/42',
    overlayClass: 'opacity-[0.4]',
  },
  ocean_prayer: {
    gradient: 'from-sky-200/42 via-cyan-100/36 to-blue-50/40',
    overlayClass: 'opacity-[0.33]',
  },
  desert_rose: {
    gradient: 'from-orange-100/48 via-rose-100/36 to-amber-50/40',
    overlayClass: 'opacity-[0.37]',
  },
  night_star: {
    gradient: 'from-slate-200/40 via-indigo-200/28 to-violet-100/32',
    overlayClass: 'opacity-[0.28]',
  },
  terra_torn: {
    gradient: 'from-stone-300/40 via-amber-100/38 to-orange-200/32',
    overlayClass: 'opacity-[0.38]',
  },
}

export function getStandardNepalTheme(style: NepalArtStyleKey): StandardNepalTheme {
  return STANDARD_NEPAL_THEMES[style] ?? STANDARD_NEPAL_THEMES.none
}
