local _, Orbit = ...

-- [ DEFAULT PROFILE ]--------------------------------------------------------------------------------
-- DISSOLVING — never add entries. Positions/anchors/per-instance state belong in the owning plugin's defaults/indexDefaults (GetSetting copies table defaults, so schemas carry them safely); each remaining block moves out as its plugin is verified. See Core/Plugin/README.md.
Orbit.Profile = Orbit.Profile or {}
Orbit.Profile.defaults = {
    Layouts = {
        ["Orbit"] = {
            ["Orbit_QueueStatus"] = {
                ["Orbit_QueueStatus"] = { Anchor = false, Position = { y = -4, x = -343, point = "BOTTOMRIGHT" } },
            },
            ["Orbit_TalkingHead"] = {
                ["Orbit_TalkingHead"] = { Anchor = false, Position = { y = 233, x = 577, point = "LEFT" } },
            },
            ["Orbit_StatusWidget"] = {
                ["Orbit_StatusWidget"] = { Anchor = false, Scale = 70, Position = { point = "TOPLEFT", x = 25, y = -25 } },
            },
            ["Orbit_MinimapButton"] = {
                ["Orbit_MinimapButton"] = { Anchor = false, Position = { y = -7, x = -7, point = "TOPRIGHT" } },
            },
            ["Orbit_Objectives"] = {
                ["Orbit_Objectives"] = {
                    Anchor = { target = "OrbitMinimapContainer", fallback = "OrbitMinimapContainer", padding = 2, edge = "BOTTOM", align = "CENTER" },
                    ShowBorder = false, Width = 300, Height = 334,
                },
            },
            ["Orbit_BagBar"] = {
                ["Orbit_BagBar"] = {
                    Anchor = { target = "OrbitMicroMenuContainer", padding = 2, edge = "TOP", align = "RIGHT" },
                },
            },
            ["Orbit_TargetDebuffs"] = {
                [1] = { Anchor = { target = "OrbitTargetCastBar", padding = 2, edge = "TOP", align = "LEFT" } },
            },
            ["Orbit_Tour"] = {
                ["A"] = { Anchor = false, Position = { y = 37, x = -40, point = "CENTER" }, Width = 113, Height = 32 },
                ["B"] = { Anchor = { target = "OrbitTourFrameA", fallback = "OrbitTourFrameA", padding = 11, edge = "RIGHT", align = "TOP" } },
            },
            ["Orbit_TargetOfFocusFrame"] = {
                [101] = { Anchor = { target = "OrbitFocusBuffsFrame", padding = 10, edge = "BOTTOM", align = "RIGHT" } },
            },
            ["Orbit_FocusPower"] = {
                [1] = { Anchor = { target = "OrbitFocusFrame", padding = 0, edge = "BOTTOM", align = "CENTER" } },
            },
            ["Orbit_Minimap"] = {
                ["Orbit_Minimap"] = { Anchor = false, Position = { y = -3, x = -3, point = "TOPRIGHT" }, Shape = "square" },
            },
            ["Orbit_FocusFrame"] = {
                [3] = { Anchor = { target = "OrbitTargetFrame", padding = 42, edge = "RIGHT", align = "CENTER" } },
            },
            ["Orbit_FocusDebuffs"] = {
                [1] = {
                    Anchor = { target = "OrbitFocusCastBar", padding = 2, edge = "TOP", align = "LEFT" },
                    -- Per-plugin override: FocusDebuffs wants a distinct red from TargetDebuffs's shared sharedDebuffDefaults curve, but both share the same mixin.
                    PandemicGlowColorCurve = { pins = { { color = { a = 1, r = 1, g = 0.165, b = 0 }, position = 0.5 } } },
                },
            },
            ["Orbit_GroupFrames"] = {
                [1] = {
                    Anchor = false,
                    Position = { y = -118, x = 98, point = "TOPLEFT" },
                    _EditTier = "Party",
                    Tiers = {
                        Mythic = { Position = { y = -130, x = 54, point = "TOPLEFT" } },
                        Party  = { Position = { y = -130, x = 54, point = "TOPLEFT" } },
                        Heroic = { Anchor = false, Position = { y = -253, x = 350, point = "TOPLEFT" } },
                        World  = { Position = { y = -130, x = 54, point = "TOPLEFT" } },
                    },
                },
            },
            ["Orbit_TargetPower"] = {
                [1] = {
                    Anchor = { target = "OrbitTargetFrame", padding = 0, edge = "BOTTOM", align = "RIGHT" },
                    -- Width=205 conflicts with FocusPower's shared default of 200; lives here as per-plugin override.
                    Width = 205,
                },
            },
            ["Orbit_ActionBars"] = {
                [1] = { Anchor = false, Position = { y = 14, x = 0, point = "BOTTOM" }, NumActionBars = 4, IconSize = 32 },
                [2] = { Anchor = { align = "LEFT", target = "OrbitActionBar1", fallback = "OrbitActionBar1", edge = "TOP", padding = 1 }, IconSize = 32 },
                [3] = { Anchor = { target = "OrbitActionBar2", fallback = "OrbitActionBar1", ancestry = { "OrbitActionBar1" }, padding = 30, edge = "LEFT", align = "TOP" }, NumIcons = 8, Rows = 2, IconSize = 32 },
                [4] = { Anchor = { target = "OrbitActionBar2", fallback = "OrbitActionBar1", ancestry = { "OrbitActionBar1" }, padding = 30, edge = "RIGHT", align = "TOP" }, NumIcons = 8, Rows = 2, IconSize = 32 },
                [5] = { Anchor = false, Position = { y = 110, x = 0, point = "BOTTOMRIGHT" }, Rows = 12 },
                [6] = { Anchor = false, Position = { y = 110, x = -38, point = "BOTTOMRIGHT" }, Rows = 12 },
                [7] = { Anchor = false, Position = { y = -45, x = -91, point = "RIGHT" }, Scale = 90, Rows = 12, IconPadding = 2 },
                [8] = { Anchor = false, Position = { y = -46, x = -45, point = "RIGHT" }, Scale = 90, Rows = 12, IconPadding = 2 },
                [9] = { Anchor = { align = "CENTER", target = "OrbitActionBar2", fallback = "OrbitActionBar1", edge = "TOP", padding = 4, ancestry = { "OrbitActionBar1" } }, Scale = 80, HideEmptyButtons = true, IconPadding = 2, IconSize = 24 },
                [10] = { Anchor = { target = "OrbitActionBar3", padding = 2, edge = "TOP", align = "LEFT" }, IconPadding = 2 },
                [11] = { Anchor = { target = "OrbitActionBar4", padding = 2, edge = "TOP", align = "RIGHT" }, IconPadding = 2 },
                [12] = { Anchor = false, Position = { y = 271, x = -252, point = "BOTTOM" }, IconPadding = 2 },
                [13] = { Anchor = { target = "OrbitActionBar4", padding = 2, edge = "TOP", align = "LEFT" } },
            },
            ["Orbit_PlayerFrame"] = {
                [1] = { Anchor = { target = "OrbitEssentialCooldowns", padding = 150, edge = "LEFT", align = "BOTTOM" } },
            },
            ["Orbit_PlayerDebuffs"] = {
                [1] = { Anchor = { target = "OrbitPlayerBuffsFrame", fallback = "OrbitPlayerBuffsFrame", padding = 4, edge = "BOTTOM", align = "CENTER" } },
            },
            ["Orbit_PlayerPower"] = {
                [1] = { Anchor = { target = "OrbitPlayerResources", padding = 2, edge = "TOP", align = "CENTER" } },
            },
            ["Orbit_PlayerResources"] = {
                [1] = { Anchor = { target = "OrbitEssentialCooldowns", padding = 2, edge = "TOP", align = "CENTER" } },
            },
            ["Orbit_Portal"] = {
                [1] = { Anchor = false, Position = { y = 0, x = 8, point = "LEFT" } },
            },
            ["Orbit_TargetBuffs"] = {
                [1] = { Anchor = { target = "OrbitTargetPower", padding = 3, edge = "BOTTOM", align = "LEFT" } },
            },
            ["Orbit_MicroMenu"] = {
                ["Orbit_MicroMenu"] = { Anchor = false, Position = { y = 1, x = 0, point = "BOTTOMRIGHT" } },
            },
            ["Orbit_RaidPanel"] = {
                [1] = { Anchor = false, Position = { y = -1, x = 41, point = "LEFT" } },
            },
            ["Orbit_TargetCastBar"] = {
                [1] = { Anchor = { target = "OrbitTargetFrame", padding = 0, edge = "TOP", align = "CENTER" } },
            },
            ["Orbit_TargetFrame"] = {
                [2] = { Anchor = { target = "OrbitEssentialCooldowns", padding = 150, edge = "RIGHT", align = "BOTTOM" } },
            },
            ["Orbit_BossFrames"] = {
                [1] = { Anchor = false, Position = { y = 0, x = 480, point = "CENTER" } },
            },
            ["Orbit_TargetOfTargetFrame"] = {
                [100] = { Anchor = { target = "OrbitTargetBuffsFrame", padding = 10, edge = "BOTTOM", align = "RIGHT" } },
            },
            ["Orbit_FocusBuffs"] = {
                [1] = { Anchor = { target = "OrbitFocusPower", padding = 3, edge = "BOTTOM", align = "LEFT" } },
            },
            ["Orbit_FocusCastBar"] = {
                [1] = { Anchor = { target = "OrbitFocusFrame", padding = 0, edge = "TOP", align = "LEFT" } },
            },
            ["Orbit_PlayerBuffs"] = {
                [1] = { Anchor = false, Position = { y = -7, x = 0, point = "TOP" } },
            },
            ["Orbit_PlayerPetFrame"] = {
                [8] = { Anchor = { target = "OrbitPlayerFrame", padding = 10, edge = "BOTTOM", align = "LEFT" } },
            },
            ["Orbit_Datatexts"] = {
                [1] = {
                    -- datatextPositions is per-instance placement state, no schema seed.
                    datatextPositions = {
                        Performance = { placed = true, scale = 1,    anchor = { target = "OrbitDatatextHearthstone", fallback = { x = 447,  y = -514, point = "CENTER" }, padding = 20, edge = "RIGHT", align = "CENTER" } },
                        Spec        = { placed = true, scale = 1,    anchor = { target = "OrbitActionBar3",          fallback = { x = -421, y = -514, point = "CENTER" }, padding = 30, edge = "LEFT",  align = "CENTER" } },
                        Hearthstone = { placed = true, scale = 1.23, anchor = { target = "OrbitActionBar4",          fallback = { x = 321,  y = -418, point = "CENTER" }, padding = 30, edge = "RIGHT", align = "CENTER" } },
                        CombatTimer = { placed = true, scale = 1.83, anchor = { target = "OrbitPlayerFrame",         fallback = { x = -239, y = -162, point = "CENTER" }, padding = 50, edge = "LEFT",  align = "CENTER" } },
                        Time = { placed = false }, Gold = { placed = false }, Speed = { placed = false },
                        ItemLevel = { placed = false }, Crit = { placed = false }, Volume = { placed = false },
                        Friends = { placed = false }, Mastery = { placed = false }, Versatility = { placed = false },
                        Location = { placed = false }, Quests = { placed = false }, Mail = { placed = false },
                        Durability = { placed = false }, Guild = { placed = false }, Haste = { placed = false },
                        BagSpace = { placed = false },
                    },
                },
            },
            ["Orbit_StrataEngine"] = {
                ["Global_HUD"] = {
                    entities = {
                        "Orbit_PlayerFrame", "Orbit_TargetFrame", "Orbit_PlayerPetFrame", "Orbit_GroupFrames",
                        "Orbit_BossFrames", "Orbit_ActionBars", "Orbit_CooldownViewer",
                        "Orbit_Minimap", "Orbit_Datatexts",
                    },
                },
            },
        },
    },
    DisabledPlugins = {},
    HideBlizzardFrames = {},
    GlobalSettings = {
        OverlayTexture = "Orbit Starfield Overlay", AbsorbTexture = "Orbit Absorb", TourComplete = false,
        UnitHealthUseGradient = false,
        BarColorCurve = {
            pins = { { color = { a = 1, b = 1, g = 1, r = 1 }, type = "class", position = 0 } },
        },
        BarColor = { a = 1, b = 0.2, g = 0.8, r = 0.2 },
        AbsorbColor = { a = 0.85, r = 0.165, g = 0.71, b = 1 },
        AlwaysShowAbsorb = true,
        Font = "Barlow Condensed Bold", HideWhenMounted = false, BorderSize = 2,
        PixelBorderSize = 2, IconPixelBorderSize = 2,
        ClassColorBackground = false, IconBorderSize = 2, OverlayAllFrames = false,
        IconBorderColor = { none = true },
        FontOutline = "OUTLINE", FontShadow = false, UseClassColors = true, Texture = "Orbit Gradient Top-Bottom",
        TrackedContainers = {}, NextTrackedContainerId = 1000,
    },
}
