import type { Section } from "@/types/builder";
import { generateId } from "@/store/builder-store";

export const personalHero: Section = {
  id: `section-${generateId("section")}`,
  type: "regular",
  rows: [
    {
      id: `row-${generateId("row")}`,
      columns: [
        {
          id: `column-${generateId("column")}-1`,
          width: 35,
          elements: [
            {
              id: `element-${generateId("element")}-1`,
              type: "image",
              content: "",
              settings: {
                src: "/placeholder.svg?height=400&width=400&text=Professional+Photo",
                alt: "Professional headshot",
                width: "100%",
                height: "300px",
                borderRadius: 50,
                maxWidth: "300px",
                objectFit: "cover",
                marginTop: 0,
                marginRight: "auto",
                marginBottom: 0,
                marginLeft: "auto",
                boxShadow: "0 20px 25px -5px rgba(0, 0, 0, 0.1)",
              },
            },
          ],
          settings: {
            paddingTop: 80,
            paddingRight: 40,
            paddingBottom: 80,
            paddingLeft: 0,
            display: "flex",
            alignItems: "center",
            justifyContent: "center",
          },
          nestingLevel: 1,
        },
        {
          id: `column-${generateId("column")}-2`,
          width: 65,
          elements: [
            {
              id: `element-${generateId("element")}-2`,
              type: "text",
              content: "Hi, I'm Alex",
              settings: {
                fontSize: 24,
                fontWeight: "normal",
                textAlign: "left",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 16,
                marginLeft: 0,
                color: { light: "indigo-600", dark: "indigo-400" },
                lineHeight: 1.4,
              },
            },
            {
              id: `element-${generateId("element")}-3`,
              type: "heading",
              content: "I Help Traders Master Crypto Markets",
              settings: {
                fontSize: 48,
                fontWeight: "bold",
                textAlign: "left",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 24,
                marginLeft: 0,
                color: { light: "slate-900", dark: "white" },
                lineHeight: 1.2,
                letterSpacing: "-0.02em",
              },
            },
            {
              id: `element-${generateId("element")}-4`,
              type: "text",
              content:
                "With 8+ years of experience in crypto trading and market analysis, I've helped 150+ traders maximize their profits through strategic trading and data-driven insights.",
              settings: {
                fontSize: 18,
                textAlign: "left",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 32,
                marginLeft: 0,
                color: { light: "zinc-600", dark: "zinc-300" },
                lineHeight: 1.6,
              },
            },
            {
              id: `element-${generateId("element")}-5`,
              type: "button",
              content: "Start Trading Now",
              settings: {
                backgroundColor: "#4f46e5",
                hoverBackgroundColor: "#4338ca",
                color: "#ffffff",
                fontSize: 18,
                fontWeight: "semibold",
                textAlign: "center",
                paddingTop: 16,
                paddingRight: 32,
                paddingBottom: 16,
                paddingLeft: 32,
                marginTop: 0,
                marginRight: 16,
                marginBottom: 16,
                marginLeft: 0,
                borderRadius: 8,
                width: "auto",
                display: "inline-block",
              },
            },
            {
              id: `element-${generateId("element")}-6`,
              type: "button",
              content: "View My Work",
              settings: {
                backgroundColor: "transparent",
                borderColor: { light: "slate-300", dark: "slate-600" },
                borderWidth: 2,
                borderStyle: "solid",
                hoverBackgroundColor: { light: "slate-50", dark: "slate-800" },
                color: { light: "slate-700", dark: "slate-300" },
                fontSize: 18,
                fontWeight: "semibold",
                textAlign: "center",
                paddingTop: 14,
                paddingRight: 32,
                paddingBottom: 14,
                paddingLeft: 32,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 32,
                marginLeft: 0,
                borderRadius: 8,
                width: "auto",
                display: "inline-block",
              },
            },
            {
              id: `element-${generateId("element")}-7`,
              type: "text",
              content:
                "📧 sarah@designstudio.com  •  📱 Available for freelance projects",
              settings: {
                fontSize: 16,
                textAlign: "left",
                paddingTop: 32,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 0,
                marginLeft: 0,
                color: { light: "slate-500", dark: "slate-400" },
                lineHeight: 1.5,
              },
            },
          ],
          settings: {
            paddingTop: 80,
            paddingRight: 0,
            paddingBottom: 80,
            paddingLeft: 40,
            display: "flex",
            flexDirection: "column",
            justifyContent: "center",
          },
          nestingLevel: 1,
        },
      ],
      settings: {
        maxWidth: "1200px",
        paddingTop: 0,
        paddingRight: 40,
        paddingBottom: 0,
        paddingLeft: 40,
        marginLeft: "auto",
        marginRight: "auto",
      },
      nestingLevel: 1,
    },
  ],
  settings: {
    backgroundColor: { light: "zinc-50", dark: "zinc-900" },
    paddingTop: 0,
    paddingRight: 0,
    paddingBottom: 0,
    paddingLeft: 0,
    marginTop: 0,
    marginRight: 0,
    marginBottom: 0,
    marginLeft: 0,
    minHeight: "100vh",
    display: "flex",
    alignItems: "center",
    justifyContent: "center",
  },
  name: "Personal Hero",
  description:
    "Personal branding hero section perfect for freelancers and consultants with professional photo",
  category: "hero",
  snapshots: {
    card: "",
    preview: "",
  },
};
