-- Default values for the database
local LSM = LibStub and LibStub("LibSharedMedia-3.0", true)
local DEFAULT_TOOLTIP_FONT = (LSM and LSM.DefaultMedia and LSM.DefaultMedia.font) or "Friz Quadrata TT"
defaults = {
    profile = {
        generalSettings = {
            alertNotificationsEnabled = true,
            chatNotificationsEnabled = true,
            isChangeLogAutoPopUpEnabled = true,
            critsOnlyEnabled = false,
            showPreviousRecord = true,
            ignoreTrivialTargets = false,
            recordAnnounceThreshold = 5,
            muteAlertsInRaid = false,
            muteAlertsInDungeon = false,
            deferAlertsUntilCombatEnd = false,
            showCombatRecap = false,
        },
        brokerSettings = {
            hitFirst = false,
            compactNumbers = false,
            compactInitials = false,
            compactLabels = false,
            showFullLog = true,
            tooltipSpellCap = 15,
            icons = {
                damage = "Interface\\AddOns\\CritMatic\\Media\\Textures\\critmatic-medallion.tga",
                healing = "Interface\\Icons\\Spell_Holy_Heal",
                pet = "Interface\\Icons\\Ability_Hunter_BeastCall",
            },
        },
        alertNotificationFormat = {
            global = {
                isUpper = true,
                maxMessages = 4,
                startDelay = 7.5,
                fadeTime = 0.5,
                bounceStyle = "legacy",
                countUpEnabled = true,
                countUpDuration = 3,
                countUpHold = 3,
            },
            position = {
                xPos = 50, -- 50% = center horizontally
                yPos = 70, -- 70% = upper portion of screen
                useSharedPosition = true,
                shared = { x = 50, y = 70, rev = 0, maxAlerts = 5 },
            },
            strings = {
                critAlertNotificationFormat = "New %s Crit %d!",
                hitAlertNotificationFormat = "New %s Hit %d!",
                critHealAlertNotificationFormat = "New %s Crit Heal %d!",
                healAlertNotificationFormat = "New %s Heal %d!",
            }

        },
        fontSettings = {
            font = "Anton",
            fontOutline = "OUTLINEMONOCHROME",
            fontSize = 22,
            fontColorCrit = { 1, 0.84, 0 }, -- Gold color
            fontColor = { 0.9, 0.9, 0.9 }, -- Almost pure White
            fontColorCritHeal = { 1, 0.84, 0 },
            fontColorHeal = { 0.9, 0.9, 0.9 },
            fontColorPetCrit = { 1, 0.84, 0 },
            fontColorPetHit = { 0.9, 0.9, 0.9 },
            useGlobalColors = false,
            fontShadowSize = { 3, -3 },
            fontShadowColor = { 0.1, 0.1, 0.1 }, -- Almost pure black
            shadowStrength = 0.85
        },
        tooltipFontSettings = {
            font = DEFAULT_TOOLTIP_FONT,
            fontSize = 12,
            fontOutline = "NONE",
            useGlobalColors = false,
            sortMode = "recent",
            groupByType = false,
            groupOrder = "damage",
            colors = {
                spellName = { 1, 0.84, 0 },
                crit = { 1, 0.84, 0 },
                hit = { 0.9, 0.9, 0.9 },
                critHeal = { 1, 0.84, 0 },
                heal = { 0.9, 0.9, 0.9 },
                petCrit = { 1, 0.6, 0.1 },
                petHit = { 1, 0.8, 0.5 },
            },
        },
        critLogFontSettings = {
            font = "Anton",
            fontSize = 12,
            fontOutline = "NONE",
            useGlobalColors = false,
            sortMode = "recent",
            groupByType = false,
            groupOrder = "damage",
            colors = {
                spellName = { 1, 0.84, 0 },
                crit = { 0.831, 0.831, 0.831 },
                hit = { 0.831, 0.831, 0.831 },
                critHeal = { 0.831, 0.831, 0.831 },
                heal = { 0.831, 0.831, 0.831 },
                petCrit = { 0.831, 0.831, 0.831 },
                petHit = { 0.831, 0.831, 0.831 },
            },
        },
        globalColors = {
            spellName = { 1, 0.84, 0 },
            crit = { 1, 0.84, 0 },
            hit = { 0.9, 0.9, 0.9 },
            critHeal = { 1, 0.84, 0 },
            heal = { 0.9, 0.9, 0.9 },
            petCrit = { 1, 0.6, 0.1 },
            petHit = { 1, 0.8, 0.5 },
        },
        brokerColorSettings = {
            colors = {
                crit = { 1, 0.84, 0 },
                value = { 0.9, 0.9, 0.9 },
            },
        },
        soundSettings = {
            damageNormal = "Heroism Cast",
            damageCrit = "Level Up",
            healNormal = "Heaven",
            healCrit = "Level Up",
            muteAllSounds = false
        },
        social = {
            canSendCritsToParty = true,
            canSendCritsToGuild = false,
            canSendCritsToRaid = true,
            canSendCritsToBattleGrounds = true,
            canSendCritsToEmote = true,
        },
        changeLogPopUp = (LibStub("LibMatic-ChangeLog-1.0", true) and LibStub("LibMatic-ChangeLog-1.0", true):DefaultStyle()) or {
            borderAndBackgroundSettings = {
                backgroundTexture = "Blizzard Parchment 2",
                borderTexture = "Blizzard Achievement Wood",
                borderSize = 15,
            },
            fontSettings = {
                font = "MoK",
                fontColor = { 0, 0, 0 },
                fontOutline = "OUTLINEMONOCHROME",
                fontSize = 15,
            }
        },
        crits = {},
        isCritLogFrameShown = true,
        critLogWidgetPos = {
            anchor = "RIGHT",
            anchor2 = "RIGHT",
            pos_x = -90.8942287109375,
            pos_y = -114.91058349609,
            size_x = 255,
            size_y = 125,
            lock = false
        },
        oldVersion = "0.0.0",
        minimap = { hide = false },
        minimapDamage = { hide = true },
        minimapHealing = { hide = true },
        minimapPets = { hide = true },
    },

}



