import type { DungeonData } from "@/types/dungeon";

export const algetharAcademy: DungeonData = {
  id: "algethar-academy",
  name: "Algeth'ar Academy",
  descriptionHtml: `Linear 4-boss dungeon — pick a Dragonflight stat buff at the start, manage adds throughout`,
  headerImage: "/assets/algethar_academy_header.jpg",
  icon: "/assets/dungeon_algeth_ar_academy.jpg",
  sections: [
    {
      type: "trash",
      data: {
        header: "Academy Grounds — Trash Before Overgrown Ancient",
        content: [
          { type: "quickRef", data: { html: `<strong>Dragonflight Buffs:</strong> Talk to a Dragonflight NPC at the entrance for a free stat buff (5% Crit/Haste/Vers, 85 Mastery, or 10% Healing Taken). One per player, changeable later.` } },
          {
            type: "mob",
            data: {
              name: "Vile Lasher (Immune to CC)",
              nameHtml: `Vile Lasher <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1282244/vile-bite">Vile Bite</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Stacking bleed on you. Use defensives or bleed cleanses to manage stacks.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=390918/detonation-seeds">Detonation Seeds</a> — swirly under every player. Move out.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Aggravated Skitterfly",
              nameHtml: `Aggravated Skitterfly`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=390938/agitation">Agitation</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Stacking enrage buff. Soothe if possible.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=390944/darting-sting">Darting Sting</a> — targets random player. Stay close to the pack for cleave.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 1",
        name: "Overgrown Ancient",
        subtitle: "Add management — stay stacked for Germinate, kill Branch add, pick up Lashers at full energy",
        image: "/assets/overgrown_ancient_boss_fight.jpg",
        abilities: [
          {
            name: "Barkbreaker",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388544/barkbreaker",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Physical damage amp debuff on tank.</li><li><span class="warn">Extremely dangerous if Hungry Lashers are alive — use a big defensive.</span></li></ul>`,
          },
          {
            name: "Burst Forth",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388923/burst-forth",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>At 100 energy, activates dormant Hungry Lashers.</li><li><span style="color: var(--tank-color); font-weight: 600;">Pick up all adds immediately.</span> Use stuns/slows/knockbacks to kite.</li></ul>`,
          },
          {
            name: "Lasher Toxin",
            wowheadUrl: "https://www.wowhead.com/beta/spell=389033/lasher-toxin",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Hungry Lashers apply stacking poison.</li><li><span class="warn">Rotate poison dispels across the group — stacks build fast.</span></li></ul>`,
          },
          {
            name: "Germinate",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388796/germinate",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Channel spawning dormant Lashers at player locations.</li><li><span class="tip">Stay stacked as a group and move together to keep adds in cleave range.</span></li></ul>`,
          },
          {
            name: "Branch Out",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388623/branch-out",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Spawns an Ancient Branch add.</li><li>Stand in the <a href="https://www.wowhead.com/beta/spell=396721/abundance">Abundance</a> circle on death to cleanse <a href="https://www.wowhead.com/beta/spell=396716/splinterbark">Splinterbark</a> bleed.</li></ul>`,
          },
          {
            name: "Healing Touch",
            wowheadUrl: "https://www.wowhead.com/beta/spell=396640/healing-touch",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li>Ancient Branch add casts this.</li><li><span class="warn">Interrupt every cast — swap to the add and kill it quickly.</span></li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Academy Walkways — Trash Before Crawth",
        content: [
          {
            type: "mob",
            data: {
              name: "Guardian Sentry (Immune to CC)",
              nameHtml: `Guardian Sentry <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=377991/storm-slash">Storm Slash</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Hits the tank. Use a defensive if needed.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=378011/deadly-winds">Deadly Winds</a> — spawns tornado on random player. Dodge it.`,
                `<a href="https://www.wowhead.com/beta/spell=377912/expel-intruders">Expel Intruders</a> — AoE. Run out or line of sight.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Territorial Eagle",
              nameHtml: `Territorial Eagle`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=377344/peck">Peck</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Stacking bleed. CC the mob to stop casts, kite, or use bleed cleanse.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Alpha Eagle (Immune to CC)",
              nameHtml: `Alpha Eagle <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=377383/gust">Gust</a> — frontal at random target. Sidestep out.`,
                `<a href="https://www.wowhead.com/beta/spell=377389/raging-screech">Raging Screech</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: AoE + enrage. Use defensives if you have high Peck stacks.</span>`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 2",
        name: "Crawth",
        subtitle: "Score balls into goals at 75% and 45% — Air first, then Fire for a damage window",
        image: "/assets/crawth_boss_fight.jpg",
        abilities: [
          {
            name: "Savage Peck",
            wowheadUrl: "https://www.wowhead.com/beta/spell=376997/savage-peck",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li><span class="warn">Defensive every cast.</span> Hit + DoT on the tank.</li><li><span class="tip">NOT a bleed in Midnight — bleed cleanses won't work.</span></li></ul>`,
          },
          {
            name: "Deafening Screech",
            wowheadUrl: "https://www.wowhead.com/beta/spell=377004/deafening-screech",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Group damage + DoT.</li><li><span class="warn">Use group defensives or healing CDs to keep players healthy through the ticking damage.</span></li></ul>`,
          },
          {
            name: "Overpowering Gust",
            wowheadUrl: "https://www.wowhead.com/beta/spell=377034/overpowering-gust",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Frontal at random target — dodge it.</li><li>Stay loosely spread to avoid splashing <a href="https://www.wowhead.com/beta/spell=377004/deafening-screech">Deafening Screech</a> damage.</li></ul>`,
          },
          {
            name: "Ruinous Winds",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1276752/ruinous-winds",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Cast at 75% and 45% HP — grab 3 balls and score into a goal to interrupt.</li><li><strong>First (75%):</strong> <a href="https://www.wowhead.com/beta/spell=389483/goal-of-the-rushing-winds">Goal Of The Rushing Winds</a> → <a href="https://www.wowhead.com/beta/spell=376467/gale-force">Gale Force</a> (tornadoes + motes).</li><li><strong>Second (45%):</strong> <a href="https://www.wowhead.com/beta/spell=389481/goal-of-the-searing-blaze">Goal Of The Searing Blaze</a> → <a href="https://www.wowhead.com/beta/spell=376448/firestorm">Firestorm</a> (12s damage amp).</li></ul>`,
          },
          {
            name: "Firestorm",
            wowheadUrl: "https://www.wowhead.com/beta/spell=376448/firestorm",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li>12s damage amp on Crawth after scoring on the Fire goal at 45%.</li><li><span class="tip">Save damage CDs and lust for this window.</span></li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Arcane Vaults — Trash Before Vexamus",
        content: [
          {
            type: "mob",
            data: {
              name: "Corrupted Manafiend",
              nameHtml: `Corrupted Manafiend`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=388862/surge">Surge</a> — <span style="color: var(--accent-red);">interrupt this.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=388863/mana-void">Mana Void</a> — targets 2 players. Don't cleave allies, use a defensive if needed.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Spellbound Battleaxe",
              nameHtml: `Spellbound Battleaxe`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=388841/spellbound-weapon">Spellbound Weapon</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Passive bonus arcane damage on melee hits. Be aware of increased intake.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Arcane Ravager",
              nameHtml: `Arcane Ravager`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=388940/vicious-ambush">Vicious Ambush</a> — leaps to furthest player. Stay close for cleave.`,
                `<a href="https://www.wowhead.com/beta/spell=388976/rift-breath">Rift Breath</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Frontal aimed at you after the charge. Sidestep immediately.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Arcane Forager",
              nameHtml: `Arcane Forager`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=389054/vicious-lunge">Vicious Lunge</a> — burst damage on random player. Dangerous with multiple Foragers.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Unruly Textbook",
              nameHtml: `Unruly Textbook`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=388392/monotonous-lecture">Monotonous Lecture</a> — channels on random player. Interrupt, CC, or magic dispel to end it.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 3",
        name: "Vexamus",
        subtitle: "Soak orbs before they reach the boss, face frontal away, dodge circles at full energy",
        image: "/assets/vexamus_boss_fight.jpg",
        abilities: [
          {
            name: "Arcane Expulsion",
            wowheadUrl: "https://www.wowhead.com/beta/spell=385958/arcane-expulsion",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Frontal aimed at tank.</li><li><span class="warn">Face away from group and use a defensive.</span></li></ul>`,
          },
          {
            name: "Oversurge",
            wowheadUrl: "https://www.wowhead.com/beta/spell=391977/oversurge",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Applied to anyone who soaks an <a href="https://www.wowhead.com/beta/spell=387691/arcane-orbs">Arcane Orb</a>.</li><li><span class="warn">Heavy damage on soakers — top them up quickly.</span></li></ul>`,
          },
          {
            name: "Arcane Orbs",
            wowheadUrl: "https://www.wowhead.com/beta/spell=387691/arcane-orbs",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>5 orbs spawn at arena edges and move toward boss.</li><li>Spread out and soak one each — hard to soak more than one without an immunity.</li></ul>`,
          },
          {
            name: "Mana Bombs",
            wowheadUrl: "https://www.wowhead.com/beta/spell=386173/mana-bombs",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Targets 3 players with puddles.</li><li>Move to outer edge to drop them out of the way.</li></ul>`,
          },
          {
            name: "Arcane Fissure",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388537/arcane-fissure",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Full energy cast — pushback + initial hit.</li><li>Dodge 3 circles under your feet.</li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Upper Academy — Trash Before Echo of Doragosa",
        content: [
          {
            type: "mob",
            data: {
              name: "Algeth'ar Echoknight",
              nameHtml: `Algeth'ar Echoknight`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1270349/astral-whirlwind">Astral Whirlwind</a> — AoE under random player. Move out.`,
                `<a href="https://www.wowhead.com/beta/spell=1270356/arcane-smash">Arcane Smash</a> — heavy group hit. Use a defensive if needed.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Spectral Invoker",
              nameHtml: `Spectral Invoker`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1270294/mystic-brand">Mystic Brand</a> — <span style="color: var(--accent-red);">priority interrupt.</span> Debuffs a random player.`,
                `<a href="https://www.wowhead.com/beta/spell=1279627/arcane-bolt">Arcane Bolt</a> — use spare interrupts on this.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 4",
        name: "Echo of Doragosa",
        subtitle: "Manage Arcane Rifts — pull boss to entrance, position carefully at 2 stacks of Overwhelming Power",
        image: "/assets/echo_of_doragosa_boss_fight.jpg",
        abilities: [
          {
            name: "Unleash Energy",
            wowheadUrl: "https://www.wowhead.com/beta/spell=439488/unleash-energy",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li><span class="warn">Cast immediately on pull.</span> Pull boss toward the entrance to drop <a href="https://www.wowhead.com/beta/spell=388901/arcane-rift">Arcane Rifts</a> away from the fight.</li><li>Rifts shoot <a href="https://www.wowhead.com/beta/spell=388951/uncontrolled-energy">Uncontrolled Energy</a> orbs to dodge.</li></ul>`,
          },
          {
            name: "Power Vacuum",
            wowheadUrl: "https://www.wowhead.com/beta/spell=388822/power-vacuum",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Pulls all players to boss.</li><li><span style="color: var(--tank-color); font-weight: 600;">Position boss so players don't get pulled onto a rift.</span> Use movement abilities to escape the AoE.</li></ul>`,
          },
          {
            name: "Astral Blast",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1282251/astral-blast",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Hits the tank — use a defensive.</li><li><span class="warn">If you have 2 stacks of <a href="https://www.wowhead.com/beta/spell=389011/overwhelming-power">Overwhelming Power</a>, position carefully — 3 stacks spawns a rift under you.</span></li></ul>`,
          },
          {
            name: "Arcane Missiles",
            wowheadUrl: "https://www.wowhead.com/beta/spell=373326/arcane-missiles",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Random target hit — can combo with <a href="https://www.wowhead.com/beta/spell=374352/energy-bomb">Energy Bomb</a> for lethal burst.</li><li><span class="warn">Keep group topped — especially before Unleash Energy on pull.</span></li></ul>`,
          },
          {
            name: "Overwhelming Power",
            wowheadUrl: "https://www.wowhead.com/beta/spell=389011/overwhelming-power",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Every ability hit grants a stack. At 3 stacks, an <a href="https://www.wowhead.com/beta/spell=388901/arcane-rift">Arcane Rift</a> spawns under you.</li><li>Place rifts in safe spots away from the group.</li></ul>`,
          },
          {
            name: "Energy Bomb",
            wowheadUrl: "https://www.wowhead.com/beta/spell=374352/energy-bomb",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Targets random player — spread loosely to avoid cleave.</li><li>Use a defensive if overlapping with other damage.</li></ul>`,
          },
        ],
      },
    },
  ],
};
