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

export const ecommerceHero: Section = {
  id: `section-${generateId("section")}`,
  type: "regular",
  rows: [
    {
      id: `row-${generateId("row")}`,
      columns: [
        {
          id: `column-${generateId("column")}-1`,
          width: 50,
          elements: [
            {
              id: `element-${generateId("element")}-1`,
              type: "text",
              content: "NEW CRYPTO FEATURES",
              settings: {
                fontSize: 14,
                fontWeight: "semibold",
                textAlign: "left",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 16,
                marginLeft: 0,
                color: { light: "orange-500", dark: "orange-400" },
                textTransform: "uppercase",
                letterSpacing: "0.1em",
              },
            },
            {
              id: `element-${generateId("element")}-2`,
              type: "heading",
              content: "Crypto Trading That Defines Your Future",
              settings: {
                fontSize: 56,
                fontWeight: "bold",
                textAlign: "left",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 24,
                marginLeft: 0,
                color: { light: "zinc-900", dark: "white" },
                lineHeight: 1.2,
                letterSpacing: "-0.02em",
              },
            },
            {
              id: `element-${generateId("element")}-3`,
              type: "text",
              content:
                "Discover our advanced crypto trading platform that speaks to your financial goals. Every feature is crafted with precision and cutting-edge technology.",
              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")}-4`,
              type: "button",
              content: "Start Trading",
              settings: {
                backgroundColor: "#000000",
                hoverBackgroundColor: "#27272a",
                color: "#ffffff",
                fontSize: 18,
                fontWeight: "semibold",
                textAlign: "center",
                paddingTop: 18,
                paddingRight: 36,
                paddingBottom: 18,
                paddingLeft: 36,
                marginTop: 0,
                marginRight: 16,
                marginBottom: 16,
                marginLeft: 0,
                borderRadius: 0,
                width: "auto",
                display: "inline-block",
              },
            },
            {
              id: `element-${generateId("element")}-5`,
              type: "button",
              content: "View Markets",
              settings: {
                backgroundColor: "transparent",
                borderColor: { light: "black", dark: "white" },
                borderWidth: 1,
                borderStyle: "solid",
                hoverBackgroundColor: { light: "black", dark: "white" },
                color: { light: "black", dark: "white" },
                hoverColor: { light: "white", dark: "black" },
                fontSize: 18,
                fontWeight: "semibold",
                textAlign: "center",
                paddingTop: 17,
                paddingRight: 36,
                paddingBottom: 17,
                paddingLeft: 36,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 32,
                marginLeft: 0,
                borderRadius: 0,
                width: "auto",
                display: "inline-block",
              },
            },
            {
              id: `element-${generateId("element")}-6`,
              type: "text",
              content:
                "🚚 Free shipping over $100  •  30-day returns  •  Sustainable materials",
              settings: {
                fontSize: 14,
                textAlign: "left",
                paddingTop: 40,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 0,
                marginLeft: 0,
                color: { light: "zinc-500", dark: "zinc-400" },
                lineHeight: 1.5,
              },
            },
          ],
          settings: {
            paddingTop: 80,
            paddingRight: 24,
            paddingBottom: 80,
            paddingLeft: 24,
            display: "flex",
            flexDirection: "column",
            justifyContent: "center",
          },
          nestingLevel: 1,
        },
        {
          id: `column-${generateId("column")}-2`,
          width: 50,
          elements: [
            {
              id: `element-${generateId("element")}-7`,
              type: "image",
              content: "",
              settings: {
                src: "/placeholder.svg?height=600&width=500&text=Fashion+Model",
                alt: "Summer Collection Model",
                width: "100%",
                height: "500px",
                objectFit: "cover",
                marginTop: 0,
                marginRight: 0,
                marginBottom: 0,
                marginLeft: 0,
              },
            },
          ],
          settings: {
            paddingTop: 80,
            paddingRight: 24,
            paddingBottom: 80,
            paddingLeft: 24,
            display: "flex",
            alignItems: "center",
            justifyContent: "center",
            position: "relative",
          },
          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: "E-commerce Hero",
  description:
    "Fashion-focused hero section perfect for e-commerce with product showcase and compelling copy",
  category: "hero",
  snapshots: {
    card: "",
    preview: "",
  },
};
