import 'package:flutter/material.dart';

import 'package:asciineverdie/src/features/game/widgets/help/help_section.dart';

/// 스킬 도움말 뷰 (Skills Help View)
class SkillsHelpView extends StatelessWidget {
  const SkillsHelpView({
    super.key,
    required this.isKorean,
    required this.isJapanese,
  });

  final bool isKorean;
  final bool isJapanese;

  @override
  Widget build(BuildContext context) {
    return ListView(
      padding: const EdgeInsets.all(12),
      children: [
        HelpSection(
          icon: '\u2727',
          title: isKorean
              ? '스킬 종류'
              : isJapanese
              ? 'スキル種類'
              : 'Skill Types',
          content: isKorean
              ? '• 공격(Attack): 적에게 직접 피해\n'
                    '• 회복(Heal): HP/MP 회복\n'
                    '• 버프(Buff): 자신에게 유리한 효과\n'
                    '• 디버프(Debuff): 적에게 불리한 효과\n'
                    '• DOT: 시간에 걸쳐 지속 피해'
              : isJapanese
              ? '• 攻撃(Attack): 敵に直接ダメージ\n'
                    '• 回復(Heal): HP/MP回復\n'
                    '• バフ(Buff): 自分に有利な効果\n'
                    '• デバフ(Debuff): 敵に不利な効果\n'
                    '• DOT: 時間経過でダメージ'
              : '• Attack: Deal direct damage\n'
                    '• Heal: Restore HP/MP\n'
                    '• Buff: Beneficial effects on self\n'
                    '• Debuff: Harmful effects on enemies\n'
                    '• DOT: Damage over time',
        ),
        const SizedBox(height: 12),
        HelpSection(
          icon: '\u{1F916}',
          title: isKorean
              ? '자동 스킬 선택'
              : isJapanese
              ? '自動スキル選択'
              : 'Auto Skill Selection',
          content: isKorean
              ? '스킬은 AI가 자동으로 선택합니다:\n'
                    '1. HP 낮음 → 회복 스킬 우선\n'
                    '2. HP/MP 충분 → 버프 스킬 사용\n'
                    '3. 몬스터 HP 높음 → 디버프 적용\n'
                    '4. 공격 스킬로 마무리'
              : isJapanese
              ? 'スキルはAIが自動選択します：\n'
                    '1. HP低い → 回復スキル優先\n'
                    '2. HP/MP十分 → バフスキル使用\n'
                    '3. モンスターHP高い → デバフ適用\n'
                    '4. 攻撃スキルで仕上げ'
              : 'Skills are auto-selected by AI:\n'
                    '1. Low HP → Heal skills priority\n'
                    '2. HP/MP sufficient → Use buff skills\n'
                    '3. Monster HP high → Apply debuffs\n'
                    '4. Finish with attack skills',
        ),
        const SizedBox(height: 12),
        HelpSection(
          icon: '\u2605',
          title: isKorean
              ? '스킬 랭크'
              : isJapanese
              ? 'スキルランク'
              : 'Skill Ranks',
          content: isKorean
              ? '스킬 랭크는 I, II, III... 형태로 표시됩니다. 랭크가 높을수록:\n'
                    '• 데미지/회복량 증가\n'
                    '• MP 소모량 감소\n'
                    '• 쿨타임 감소\n'
                    '레벨업 시 랜덤하게 스킬을 배웁니다.'
              : isJapanese
              ? 'スキルランクはI、II、III...の形式で表示されます。ランクが高いほど：\n'
                    '• ダメージ/回復量増加\n'
                    '• MP消費量減少\n'
                    '• クールタイム減少\n'
                    'レベルアップ時にランダムでスキルを習得します。'
              : 'Skill ranks are displayed as I, II, III... Higher rank means:\n'
                    '• More damage/healing\n'
                    '• Less MP cost\n'
                    '• Shorter cooldown\n'
                    'Learn random skills on level up.',
        ),
      ],
    );
  }
}
