-- VDS_ColorMapDB
-- ============================================================================
-- Explicit dye-name -> color-group mapping. Community-verified by Kiyo (donor
-- VDS_DyeData.lua lines 121-196). The HSV classifier in
-- Modules/VDS_StaticData.lua is fallback only for future dyes Blizzard adds.
--
-- Hard-coded mapping fixes long-standing misclassification (Pinewood reading
-- as Yellow, Dustwallow Green as Yellow, Vol'dun Taupe as Yellow, Bone-White
-- as Yellow, etc) that the HSV heuristic can't resolve cleanly.

VDS_ColorMapDB = VDS_ColorMapDB or {}

VDS_ColorMapDB.byName = {
    -- Black
    ["Obsidium Black"]       = "Black",
    -- Grey
    ["Dark Iron"]            = "Grey",
    ["Darkwood"]             = "Grey",
    ["Ironclaw"]             = "Grey",
    ["Stormheim Grey"]       = "Grey",
    ["Stormsteel"]           = "Grey",
    -- White
    ["Bone-White"]           = "White",
    ["Basic Birch"]          = "White",
    ["Highland Birch"]       = "White",
    ["Highborne Marble"]     = "White",
    ["Pale Umber"]           = "White",
    -- Brown
    ["Warm Teak"]            = "Brown",
    ["Mesquite Brown"]       = "Brown",
    ["Heartwood"]            = "Brown",
    ["Earthen Brown"]        = "Brown",
    ["Timbermaw Brown"]      = "Brown",
    ["Kalimdor Sand"]        = "Brown",
    ["Kodohide Brown"]       = "Brown",
    ["Vol'dun Taupe"]        = "Brown",
    ["Holy Oak Tan"]         = "Brown",
    -- Red
    ["Firebloom Red"]        = "Red",
    ["Horde Red"]            = "Red",
    ["Ratchet Rust"]         = "Red",
    ["Mahogany"]             = "Red",
    ["Hinterlands Hickory"]  = "Red",
    ["Rain Poppy Red"]       = "Red",
    ["Deep Mageroyal Red"]   = "Red",
    -- Orange
    ["Elwynn Pumpkin"]       = "Orange",
    ["Copper"]               = "Orange",
    ["Bronze"]               = "Orange",
    -- Yellow
    ["Gold"]                 = "Yellow",
    ["Pinewood"]             = "Green",   -- explicit override (golden hue but a green)
    ["Zandalari Gold"]       = "Yellow",
    ["Brass"]                = "Yellow",
    ["Sandfury Yellow"]      = "Yellow",
    ["Sungrass Yellow"]      = "Yellow",
    ["Savannah Gold"]        = "Yellow",
    ["Dark Gold"]            = "Yellow",
    -- Green
    ["Lush Green"]           = "Green",
    ["Silversage Green"]     = "Green",
    ["Dustwallow Green"]     = "Green",
    ["Grizzly Hills Green"]  = "Green",
    ["Emerald Dreaming"]     = "Teal",    -- explicit override
    ["Earthroot"]            = "Green",
    ["Gravemoss Green"]      = "Green",
    -- Teal
    ["Kul Tiran Steel"]      = "Teal",
    ["Vortex Teal"]          = "Teal",
    ["Tidesage Teal"]        = "Teal",
    ["Un'Goro Green"]        = "Teal",    -- explicit override
    -- Blue
    ["Alliance Blue"]        = "Blue",
    ["Midnight Blue"]        = "Blue",
    ["Nazjatar Navy"]        = "Blue",
    ["Zephras Blue"]         = "Blue",
    -- Purple
    ["Kirin Tor Violet"]     = "Purple",
    ["Void Violet"]          = "Purple",
    ["Nightsong Lilac"]      = "Purple",
    ["Arcwine"]              = "Purple",
    ["Moonberry Amethyst"]   = "Purple",
    ["Forsaken Plum"]        = "Purple",
    ["Dusk Lily Grey"]       = "Purple",  -- explicit override (the "Grey" name is misleading)
    -- Pink
    ["Netherstorm Fuchsia"]  = "Pink",
    ["Gilnean Rose"]         = "Pink",
}
