local addonName, ns = ...

-- Generic "Work In Progress" placeholder panel.
-- Called by any sub-tab that doesn't have a real init function yet.
-- Usage: ns:InitWIP("Player")
function ns:InitWIP(moduleName)
    local p = ns.MainFrame.Content
    local r, g, b = ns.GetClassColor and ns.GetClassColor() or 168/255, 85/255, 247/255
    local ccHex = string.format("%02x%02x%02x", r*255, g*255, b*255)

    -- Icon
    local icon = p:CreateFontString(nil, "OVERLAY", "GameFontNormalHuge")
    icon:SetPoint("CENTER", 0, 40)
    icon:SetText("|cff333344⚙|r")
    icon:SetFont(icon:GetFont(), 42)

    -- WIP label
    local wip = p:CreateFontString(nil, "OVERLAY", "GameFontNormalHuge")
    wip:SetPoint("TOP", icon, "BOTTOM", 0, -10)
    wip:SetText(string.format("|cff%sWork In Progress|r", ccHex))

    -- Module name
    local sub = p:CreateFontString(nil, "OVERLAY", "GameFontHighlight")
    sub:SetPoint("TOP", wip, "BOTTOM", 0, -6)
    sub:SetText(string.format("|cff444455%s|r", moduleName))
    sub:SetFont(sub:GetFont(), 13)

    -- Hint
    local hint = p:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
    hint:SetPoint("TOP", sub, "BOTTOM", 0, -14)
    hint:SetText("|cff2a2a38This module is coming in a future update.|r")
end
