local addon, ns = ...

-- ============================================================
--  rOrbs – Localization  (enUS / default)
-- ============================================================

local L = {}
ns.L = L

-- ---- General -----------------------------------------------
L["ADDON_NAME"]               = "rOrbs"
L["SETTINGS_TITLE"]           = "rOrbs"
L["SETTINGS_RESET"]           = "Reset All Settings"
L["SETTINGS_RESET_CONFIRM"]   = "All settings will be reset to defaults. Continue?"
L["SETTINGS_SAVED"]           = "Settings saved."
L["SETTINGS_CLOSE"]           = "Close"

-- ---- Tabs --------------------------------------------------
L["TAB_GENERAL"]              = "General"
L["TAB_HEALTH_ORB"]           = "Health Orb"
L["TAB_POWER_ORB"]            = "Power Orb"
L["TAB_TARGET_ORB"]           = "Target Orb"
L["TAB_COMMANDS"]             = "Slash Commands"
L["TAB_TARGET_ORB"]           = "Target Orb"
L["TAB_TOT_ORB"]              = "ToT Orb"

-- ---- General tab -------------------------------------------
L["GEN_MINIMAP"]              = "Show Minimap Icon"
L["GEN_MINIMAP_TIP"]          = "Toggle the rOrbs minimap button."
L["GEN_DEBUG"]                = "Developer Debug Mode"
L["GEN_DEBUG_TIP"]            = "Enables verbose debug output in the chat window."

-- ---- Orb settings (shared labels) -------------------------
L["ORB_TEXTURE"]              = "Orb Texture"
L["ORB_TEXTURE_TIP"]          = "Choose the filling texture for this orb."
L["ORB_COLOR"]                = "Orb Color"
L["ORB_COLOR_TIP"]            = "Set a custom color for the orb fill."
L["ORB_COLOR_CLASS"]          = "Use Class Color"
L["ORB_COLOR_CLASS_TIP"]      = "Automatically color the orb using your class color."
L["ORB_COLOR_AUTO"]           = "Use Power Color"
L["ORB_COLOR_AUTO_TIP"]       = "Automatically color the orb based on power type."
L["TEXT_SECTION"]             = "Text Settings"
L["ORB_TEXT_SHOW"]            = "Show Text Values"
L["ORB_TEXT_SHOW_TIP"]        = "Display HP / power numbers on the orb."
L["ORB_TEXT_ALPHA"]           = "Text Opacity"
L["ORB_TEXT_ALPHA_TIP"]       = "Opacity of the text values displayed on the orb."
L["ORB_FONT"]                 = "Font"
L["ORB_FONT_TIP"]             = "Select the font used for orb text values."
L["ORB_FONT_SCALE"]           = "Font Size"
L["ORB_FONT_SCALE_TIP"]       = "Adjust the font size of the orb text values."
L["ORB_GALAXIES_ALPHA"]       = "Galaxy Opacity"
L["ORB_GALAXIES_ALPHA_TIP"]   = "Opacity of the rotating galaxy effect inside the orb."
L["ORB_BUBBLES_ALPHA"]        = "Bubbles Opacity"
L["ORB_BUBBLES_ALPHA_TIP"]    = "Opacity of the bubble animation inside the orb."
L["ORB_SPARK_ALPHA"]          = "Spark Opacity"
L["ORB_SPARK_ALPHA_TIP"]      = "Opacity of the spark at the top of the orb fill."
L["ORB_HIGHLIGHT_ALPHA"]      = "Gloss Opacity"
L["ORB_HIGHLIGHT_ALPHA_TIP"]  = "Opacity of the gloss/highlight overlay."

-- ---- Target Orb specific -----------------------------------
L["TARGET_MODEL_SHOW"]        = "Show 3D Model on Target Orb"
L["TARGET_MODEL_SHOW_TIP"]    = "Toggle the animated 3D model displayed inside the target health orb."
L["TARGET_MODEL_ALPHA"]       = "Model Opacity"
L["TARGET_MODEL_ALPHA_TIP"]   = "Opacity of the 3D model inside the target health orb."
L["TARGET_PORTRAIT_SHOW"]     = "Show Target Portrait Orb"
L["TARGET_PORTRAIT_SHOW_TIP"] = "Toggle the separate floating 3D portrait orb that shows your target."
L["TARGET_NAME_SHOW"]         = "Show Target Name"
L["TARGET_NAME_SHOW_TIP"]     = "Display the target's name above the target health orb."
L["TARGET_NAME_FONTSIZE"]     = "Name Font Size"
L["TARGET_NAME_FONTSIZE_TIP"] = "Adjust the font size of the target name text."
L["TARGET_NAME_POS"]          = "Name Position"
L["TARGET_NAME_POS_TIP"]      = "Display the target name above or below the orb."
L["TARGET_NAME_CLASSCOLOR"]   = "Use Class Color"
L["TARGET_NAME_CLASSCOLOR_TIP"] = "Color the target name by class color for player targets."
L["TARGET_NAME_OFFY"]         = "Name Y-Offset"
L["TARGET_NAME_OFFY_TIP"]     = "Fine-tune the vertical distance of the name from the orb edge."
L["ORB_ENABLE"]               = "Enable this Orb"
L["ORB_ENABLE_TIP"]           = "Toggle this orb on or off. Requires a UI reload."
L["ORB_MODEL_SHOW"]           = "Show 3D Model"
L["ORB_MODEL_SHOW_TIP"]       = "Toggle the animated 3D model displayed inside this orb."
L["ORB_MODEL_ALPHA"]          = "Model Opacity"
L["ORB_MODEL_ALPHA_TIP"]      = "Opacity of the 3D model inside this orb."

-- ---- Commands tab ------------------------------------------
L["CMD_TITLE"]                = "Available Slash Commands"
L["CMD_RORBS"]                = "/rorbs – Open the settings panel"
L["CMD_RORBS_SHOW"]           = "/rorbs show – Show orb frames"
L["CMD_RORBS_HIDE"]           = "/rorbs hide – Hide orb frames"
L["CMD_RORBS_RESET"]          = "/rorbs reset – Reset all settings to defaults"
L["CMD_RORBS_DEBUG"]          = "/rorbs debug – Toggle debug mode"
L["CMD_RORBSDEBUG"]           = "/rorbsdebug [1-10|info] – Toggle individual orb layers"

-- ---- Chat messages -----------------------------------------
L["CHAT_PREFIX"]              = "|cff6699FFrOrbs|r: "
L["CHAT_MINIMAP_SHOW"]        = "Minimap icon |cff00ff00shown|r."
L["CHAT_MINIMAP_HIDE"]        = "Minimap icon |cffff4444hidden|r."
L["CHAT_DEBUG_ON"]            = "Debug mode |cff00ff00enabled|r."
L["CHAT_DEBUG_OFF"]           = "Debug mode |cffff4444disabled|r."
L["CHAT_RESET_DONE"]          = "All settings reset to defaults. Reloading UI…"
L["CHAT_TEXTURE_CHANGED"]     = "Orb texture changed to |cffffff00%s|r."
L["CHAT_COLOR_CHANGED"]       = "Orb color updated."
L["CHAT_FONT_CHANGED"]        = "Font changed to |cffffff00%s|r."
L["CHAT_TEXT_SHOWN"]          = "Orb text |cff00ff00shown|r."
L["CHAT_TEXT_HIDDEN"]         = "Orb text |cffff4444hidden|r."
L["CHAT_FRAMES_SHOWN"]        = "Orb frames |cff00ff00shown|r."
L["CHAT_FRAMES_HIDDEN"]       = "Orb frames |cffff4444hidden|r."
L["CHAT_SIZE_CHANGED"]        = "Orb size set to |cffffff00%d|r."
L["CHAT_POS_CHANGED"]         = "Position updated."
L["CHAT_UNKNOWN_CMD"]         = "Unknown command. Type |cffffff00/rorbs|r for help."
L["CHAT_HELP"]                = "Usage: |cffffff00/rorbs|r [show|hide|reset|debug]"

-- ---- Error / Debug -----------------------------------------
L["DEBUG_PREFIX"]             = "|cffff9900[rOrbs Debug]|r "
L["ERR_FRAME_NOT_FOUND"]      = "Frame not found: "

-- ---- Smooth Bar Animation ----------------------------------
L["SMOOTH_SECTION"]           = "Smooth Bar Animation"
L["SMOOTH_ENABLE"]            = "Enable smooth fill animation"
L["SMOOTH_ENABLE_TIP"]        = "Smoothly animate the orb fill level instead of jumping instantly."
L["SMOOTH_SPEED"]             = "Animation Speed"
L["SMOOTH_SPEED_TIP"]         = "How fast the orb fill animates. 1 = very slow, 10 = nearly instant."

-- ---- Character Profiles ------------------------------------
L["PROFILE_SECTION"]          = "Character Profiles"
L["PROFILE_SECTION_TIP"]      = "Profiles let you save all orb and display settings and load them on any character."
L["PROFILE_ACTIVE"]           = "Active Profile:"
L["PROFILE_NONE"]             = "-- none --"
L["PROFILE_SELECT"]           = "Load Profile"
L["PROFILE_SELECT_TIP"]       = "Switch to this profile. Settings will be applied and the UI will reload."
L["PROFILE_SAVE"]             = "Save as…"
L["PROFILE_SAVE_TIP"]         = "Save current settings to a new or existing profile."
L["PROFILE_COPY"]             = "Copy from…"
L["PROFILE_COPY_TIP"]         = "Duplicate an existing profile under a new name."
L["PROFILE_DELETE"]           = "Delete Profile"
L["PROFILE_DELETE_TIP"]       = "Permanently delete the selected profile."
L["PROFILE_DELETE_CONFIRM"]   = "Delete profile \"%s\"? This cannot be undone."
L["PROFILE_NAME_PROMPT"]      = "Enter profile name:"
L["PROFILE_NAME_EXISTS"]      = "A profile with that name already exists. Overwrite?"
L["PROFILE_COPY_NEW"]         = "Name for the new profile copy:"
L["PROFILE_LOAD_CONFIRM"]     = "Load profile \"%s\"? Settings will be applied and the UI reloads."
L["CHAT_PROFILE_SAVED"]       = "Profile |cffffff00%s|r saved."
L["CHAT_PROFILE_LOADED"]      = "Profile |cffffff00%s|r loaded."
L["CHAT_PROFILE_DELETED"]     = "Profile |cffffff00%s|r deleted."

-- ---- Orb Templates -----------------------------------------
L["TEMPLATE_SECTION"]         = "Orb Template (3D Model Preset)"
L["TEMPLATE_DROPDOWN"]        = "Template"
L["TEMPLATE_DROPDOWN_TIP"]    = "Choose a preset 3D model with matching fill texture and colors."
L["TEMPLATE_APPLY_COLORS"]    = "Also apply fill color & texture"
L["TEMPLATE_APPLY_COLORS_TIP"]= "When enabled, the template also sets the orb's fill color, texture and spark color."

-- ---- Custom Template Creator --------------------------------
L["CUSTOM_TMPL_SECTION"]       = "Custom Template Creator"
L["CUSTOM_TMPL_ID_LABEL"]      = "DisplayInfo ID"
L["CUSTOM_TMPL_ID_TIP"]        = "Enter a WoW CreatureDisplayInfo ID to preview."
L["CUSTOM_TMPL_PREVIEW"]       = "Preview"
L["CUSTOM_TMPL_STOP"]          = "Stop"
L["CUSTOM_TMPL_SAVE"]          = "Save Template"
L["CUSTOM_TMPL_NAME_PROMPT"]   = "Enter a name for this template:"
L["CUSTOM_TMPL_SAVED"]         = "Custom template saved: "
L["CUSTOM_TMPL_DROPDOWN"]      = "My Templates"
L["CUSTOM_TMPL_DROPDOWN_TIP"]  = "Choose from your saved custom templates."
L["CUSTOM_TMPL_DELETE"]        = "Delete"
L["CUSTOM_TMPL_DELETE_CONFIRM"]= "Delete custom template '%s'?"
L["CUSTOM_TMPL_DELETED"]       = "Custom template deleted: "
L["CUSTOM_TMPL_CAMSCALE"]      = "Preview CamScale"
L["CUSTOM_TMPL_CAMSCALE_TIP"]  = "Camera distance for preview. Adjusts how zoomed the 3D model appears."
L["CUSTOM_TMPL_APPLY_POSZ"]    = "Apply Position"
L["CUSTOM_TMPL_APPLY_POSZ_TIP"]= "Commits the current Offset Z as the saved vertical position for this template. The preview offset becomes permanent."

-- ---- Model Viewer tab ----------------------------------------
L["TAB_MODELS"]               = "Model Viewer"
L["MODELS_INFO"]              = "Browse WoW 3D models by Display ID. |cffffff00Left-click|r a model to open the overlay. |cffffff00Shift+Left-drag|r to orbit camera. |cffffff00Right-drag|r to rotate. |cffffff00Mouse wheel|r to zoom. |cffffff00Click Send ID|r to transfer to a Custom Template Creator."
L["MODELS_DISPLAY_ID"]        = "Display ID"
L["MODELS_PAGE"]              = "Page"
L["MODELS_SIZE_MINUS"]        = "- Size"
L["MODELS_SIZE_PLUS"]         = "+ Size"
L["MODELS_PREV"]              = "< Prev"
L["MODELS_NEXT"]              = "Next >"
L["MODELS_SEND_ID"]           = "Send ID to Template"
L["MODELS_SEND_ID_TIP"]       = "Transfer this model's Display ID to the Custom Template Creator on the selected orb tab."

-- ---- Cast Ring ----------------------------------------------
L["CASTRING_SECTION"]             = "Cast Ring"
L["CASTRING_SELFLEARN_INFO"]      = "|cffffd700How Cast Ring Timing Works:|r\n" ..
    "WoW 12.x restricts addons from reading cast durations or spell names for enemy targets (secret values). " ..
    "The Cast Ring uses |cff00d0ffGetTime()|r to measure elapsed time from the moment a cast begins, " ..
    "combined with a |cff00d0ffself-learning duration estimate|r that improves over time.\n\n" ..
    "|cffffd700Duration priority:|r\n" ..
    "1. |cff80ff80C_Spell.GetSpellInfo|r — spell base duration from WoW client data, scaled by your Haste.\n" ..
    "   (Safe API, not affected by secret value restrictions)\n" ..
    "2. |cff80ff80Learned duration|r — measured from previous casts of the same type (cast or channel). " ..
    "Saved between sessions via SavedVariables. Improves with each completed cast using a weighted average.\n" ..
    "3. |cff80ff80Fallback|r — 3.0 sec default used only on first ever cast.\n\n" ..
    "|cffffd700All spell types supported:|r Normal casts, channeled spells (Mage, Warlock, Priest, Druid, Hunter) and Evoker empowers all use the same system. " ..
    "The ring direction is automatically flipped for channels (counts down)."
L["CASTRING_ENABLE"]              = "Show Cast Ring"
L["CASTRING_ENABLE_TIP"]          = "Shows an animated ring around the target orb while the target is casting or channeling."
L["CASTRING_RELOAD_TEXT"]         = "Cast Ring %s.\nA |cffffd700Reload|r is required for this change to take effect."
L["CASTRING_RELOAD_ON"]           = "enabled"
L["CASTRING_RELOAD_OFF"]          = "disabled"
L["CASTRING_SHOW_BG"]             = "Show Compass Rose"
L["CASTRING_SHOW_BG_TIP"]         = "Fades in the compass-rose background texture while the target is casting, and fades it out when done."
L["CASTRING_BG_ALPHA"]            = "Compass Rose Opacity"
L["CASTRING_BG_ALPHA_TIP"]        = "Maximum opacity when the Compass Rose fades in (0 = invisible, 1 = fully visible)."
L["CASTRING_BG_COLOR"]            = "Compass Rose Color"
L["CASTRING_BG_COLOR_TIP"]        = "Tint color applied to the Compass Rose texture."
L["CASTRING_BG_CLASSCOLOR"]       = "Compass Rose = Class Color"
L["CASTRING_BG_CLASSCOLOR_TIP"]   = "Automatically tint the Compass Rose with the target's class color. Falls back to the manual color for NPCs."
L["CASTRING_FADE_SPEED"]          = "Fade Speed"
L["CASTRING_FADE_SPEED_TIP"]      = "How fast the Compass Rose fades in and out (seconds). 0.1 = very fast, 1.5 = slow."
L["CASTRING_RING_SCALE"]          = "Ring Thickness"
L["CASTRING_RING_SCALE_TIP"]      = "Scale of the animated cast ring. 1.0 = default, >1.0 = thicker/larger, <1.0 = thinner."
L["CASTRING_USE_CLASSCOLOR"]      = "Cast Color = Target Class Color"
L["CASTRING_USE_CLASSCOLOR_TIP"]  = "Ring color automatically matches the target's class color. Falls back to Cast Color for NPCs."
L["CASTRING_CAST_COLOR"]          = "Cast Color (Fallback)"
L["CASTRING_CAST_COLOR_TIP"]      = "Ring color used for regular casts (and as fallback when class color is unavailable)."
L["CASTRING_CHANNEL_COLOR"]       = "Channel Color"
L["CASTRING_CHANNEL_COLOR_TIP"]   = "Ring color used for channeled spells."
