local PT = AhUI
if not PT then return end

local G = PT.ProfessionGuides

G.guides.OUTLAND = G.guides.OUTLAND or {}

G.guides.OUTLAND.JEWELCRAFTING = {
    profession  = "Jewelcrafting",
    skillLineID = 2523, -- Outland Jewelcrafting
    nameKey = "PG_GUIDE_OUTLAND_JEWELCRAFTING_NAME",


    trainers = {
        alliance = {
            {
                npcID = 33680,
                name  = "Nemiha",
                mapID = 111, -- Terokkar Forest
                x = 36.0,
                y = 48.6,
            },
        },
        horde = {
            {
                npcID = 33614,
                name  = "Jewelcrafting",
                mapID = 111, -- Terokkar Forest
                x = 43.6,
                y = 90.8,
            },
        },
    },

    vendors = {
        alliance = {
            {
                npcID = 20124,
                name  = "Kradu Grimblade",
                mapID = 111,
                x = 69.8,
                y = 42.4,
                sells = {
                    { itemID = 23135 }, -- Mercurial Adamantite (recipe)
                },
            },
            {
                npcID = 21485,
                name  = "Aldraan",
                mapID = 107, -- Nagrand
                x = 42.8,
                y = 42.6,
                sells = {
                    { itemID = 23138 }, -- Mystic Dawnstone (recipe)
                },
            },
            {
                npcID = 21432,
                name  = "Almaador",
                mapID = 111,
                x = 51.2,
                y = 42.6,
                sells = {
                    { itemID = 33155 }, -- Design: Falling Star
                },
            },
        },
        horde = {
            {
                npcID = 20124,
                name  = "Kradu Grimblade",
                mapID = 111,
                x = 69.8,
                y = 42.4,
                sells = {
                    { itemID = 23135 },
                },
            },
            {
                npcID = 21474,
                name  = "Coreiel",
                mapID = 107,
                x = 42.8,
                y = 42.6,
                sells = {
                    { itemID = 23138 },
                },
            },
            {
                npcID = 21432,
                name  = "Almaador",
                mapID = 111,
                x = 51.2,
                y = 42.6,
                sells = {
                    { itemID = 33155 },
                },
            },
        },
    },

    steps = {

        -- 1–20
        {
            min = 1,
            max = 20,
            noteKey = "PG_GUIDE_OUTLAND_JEWELCRAFTING_NOTE_1",
            disablesCraft = true,
            disablesCraftAll = true,
            recipes = {
                {
                    spellID = 382980, -- Prospect Adamantite Ore
                    crafts  = 48,
                    autoReagents = true,
                },
            },
        },

        -- 20–25
        {
            min = 20,
            max = 25,
            recipes = {
                {
                    spellID = 28953, -- Sparkling Azure Moonstone
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- 25–35
        {
            min = 25,
            max = 35,
            recipes = {
                {
                    spellID = 38068, -- Mercurial Adamantite
                    crafts  = 12,
                    autoReagents = true,
                    requires = {
                        { type = "recipe_item", itemID = 23135 },
                    },
                },
            },
        },

        -- 35–40
        {
            min = 35,
            max = 40,
            recipes = {
                {
                    spellID = 28948, -- Rigid Azure Moonstone
                    crafts  = 5,
                    autoReagents = true,
                },
            },
        },

        -- 40–50
        {
            min = 40,
            max = 50,
            recipes = {
                {
                    spellID = 31052, -- Heavy Adamantite Ring
                    crafts  = 12,
                    autoReagents = true,
                },
            },
        },

        -- 50–60
        {
            min = 50,
            max = 60,
            noteKey = "PG_GUIDE_OUTLAND_JEWELCRAFTING_NOTE_2",
            recipes = {
                {
                    spellID = 31101, -- Mystic Dawnstone
                    crafts  = 12,
                    autoReagents = true,
                    requires = {
                        { type = "recipe_item", itemID = 23138 },
                    },
                },
            },
        },

        -- 60–75 (декор)
        {
            min = 60,
            max = 75,
            disablesShopping = true,
            noteKey = "PG_GUIDE_OUTLAND_JEWELCRAFTING_NOTE_3",
            recipes = {
                {
                    spellID = 42588,
                    crafts  = 20,
                    autoReagents = true,
                    requires = {
                        { type = "recipe_item", itemID = 33155 },
                    },
                },
            },
        },
    },
}
