import callingIcon from "@/assets/1.svg";
import manualIcon from "@/assets/2.svg";

import { APP_ROUTES } from "./routes";

export interface HomeFeatureCardConfig {
  id: number;
  title: string;
  description: string;
  iconPath: string;
  buttonText: string;
  route?: string;
  buttonClass?: string;
  iconClass?: string;
  disabledTip?: string;
  tag?: string;
}

export const HOME_HERO = {
  eyebrow: "匿名短信 · 匿名电话",
  title: "有些话，换一种方式认真说",
  subtitle: "被拉黑、想道歉、想告白、想送祝福时，用更克制的方式把心意送达。",
  highlights: ["匿名代发", "发送前预览", "定时送达"],
  image: "/static/images/love.png",
  actionText: "写一条匿名短信",
  actionRoute: APP_ROUTES.sending,
  secondaryText: "人工传话",
  secondaryRoute: APP_ROUTES.manual,
};

export const HOME_PRIMARY_FEATURES: HomeFeatureCardConfig[] = [
  {
    id: 1,
    title: "人工传话",
    description: "真人协助传达，更适合认真道歉和重要告白",
    iconPath: manualIcon,
    buttonText: "去传话",
    route: APP_ROUTES.manual,
    iconClass: "icon-wrapper-orange",
    buttonClass: "color-button",
    tag: "更有温度",
  },
  {
    id: 2,
    title: "匿名电话",
    description: "适合紧急和解、重要解释，先确认意愿再沟通",
    iconPath: callingIcon,
    buttonText: "去拨打",
    route: APP_ROUTES.calling,
    iconClass: "icon-wrapper-blue",
    buttonClass: "color-button",
    disabledTip: "此通道正在维护中，暂时禁用！",
    tag: "即将开放",
  },
];

export const HOME_ADDITIONAL_FEATURES: HomeFeatureCardConfig[] = [
  {
    id: 3,
    title: "定时短信",
    description: "生日、纪念日、晚安问候可提前设置",
    iconPath: "/static/images/cat.png",
    buttonText: "去设置",
    route: APP_ROUTES.planning,
    tag: "不怕错过",
  },
  {
    id: 4,
    title: "AI文案美化",
    description: "把冲动的话改得更真诚、更体面",
    iconPath: "/static/images/cat.png",
    buttonText: "去优化",
    route: APP_ROUTES.sending,
    tag: "降低冒犯",
  },
  {
    id: 5,
    title: "收到回复",
    description: "回复统一收进信箱，避免错过对方回应",
    iconPath: "/static/images/cat.png",
    buttonText: "去查看",
    route: APP_ROUTES.reply,
    tag: "及时查看",
  },
];

export const HOME_FEATURE_STYLE_CLASSES = {
  icon: ["icon-wrapper-green", "icon-wrapper-purple", "icon-wrapper-red"],
  button: ["green-button", "purple-button", "red-button"],
};

export const HOME_SCENARIOS = [
  {
    title: "被拉黑后道歉",
    description: "把重点放在承担责任，不反复打扰。",
  },
  {
    title: "鼓起勇气告白",
    description: "先表达心意，给对方留出选择空间。",
  },
  {
    title: "生日和纪念日祝福",
    description: "定时发送，适合不方便直接联系的时刻。",
  },
];

export const HOME_STEPS = [
  "选择短信、人工传话或电话",
  "填写联系人和想说的话",
  "预览确认后再发送",
];

export const HOME_GUARDRAILS = ["尊重对方意愿", "不鼓励频繁打扰", "内容发送前可检查"];
