local PT = AhUI
if not PT then return end

local G = PT.ProfessionGuides
G.guides.SHADOWLANDS = G.guides.SHADOWLANDS or {}

G.guides.SHADOWLANDS.TAILORING = {
    profession  = "Tailoring",
    skillLineID = 2759, -- Shadowlands Tailoring
    nameKey = "PG_GUIDE_SHADOWLANDS_TAILORING_NAME",


    -- =========================
    -- PROFESSION TRAINER
    -- =========================
    trainers = {
        alliance = {
            {
                npcID = 156681, -- Stitcher Au'phes
                name  = "Stitcher Au'phes",
                mapID = 1670, -- Oribos
                x = 45.2,
                y = 31.6,
            },
        },
        horde = {
            {
                npcID = 156681, -- Stitcher Au'phes
                name  = "Stitcher Au'phes",
                mapID = 1670, -- Oribos
                x = 45.2,
                y = 31.6,
            },
        },
    },

    -- =========================
    -- STEPS
    -- =========================
    steps = {

        -- 1–15
        {
            min = 1,
            max = 15,
            recipes = {
                {
                    spellID = 310924,
                    crafts  = 17,
                    autoReagents = true,
                },
            },
        },

        -- 15–31
        {
            min = 15,
            max = 31,
            recipes = {
                {
                    spellID = 310871,
                    crafts  = 8,
                    autoReagents = true,
                },
            },
        },

        -- 31–37
        {
            min = 31,
            max = 37,
            recipes = {
                {
                    spellID = 310873,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },

        -- 37–52
        {
            min = 37,
            max = 52,
            recipes = {
                {
                    spellID = 310875,
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- 52–65
        {
            min = 52,
            max = 65,
            recipes = {
                {
                    spellID = 310923,
                    crafts  = 20,
                    autoReagents = true,
                },
            },
        },

        -- 65–71
        {
            min = 65,
            max = 71,
            recipes = {
                {
                    spellID = 310903,
                    crafts  = 3,
                    autoReagents = true,
                },
            },
        },

        -- 71–75
        {
            min = 71,
            max = 75,
            recipes = {
                {
                    spellID = 310899,
                    crafts  = 4,
                    autoReagents = true,
                },
            },
        },

        -- 75–81
        {
            min = 75,
            max = 81,
            recipes = {
                {
                    spellID = 310900,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },

        -- 81–87 (декор доступен)
        {
            min = 81,
            max = 87,
            disablesShopping = true,
            noteKey = "PG_GUIDE_SHADOWLANDS_TAILORING_NOTE_1",
            recipes = {
                {
                    spellID = 310900,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },

        -- 87–90
        {
            min = 87,
            max = 90,
            disablesShopping = true,
            recipes = {
                {
                    spellID = 310897,
                    crafts  = 1,
                    autoReagents = true,
                },
            },
        },

        -- 90–96
        {
            min = 90,
            max = 96,
            disablesShopping = true,
            recipes = {
                {
                    spellID = 310901,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },

        -- 96–100
        {
            min = 96,
            max = 100,
            disablesShopping = true,
            recipes = {
                {
                    spellID = 310902,
                    crafts  = 2,
                    autoReagents = true,
                },
            },
        },
    },
}
