name: Bug Report
about: Report a bug or unexpected behavior
title: "[Bug]: "
labels:
  - type/bug
  - status/backlog
body:
  - type: markdown
    attributes:
      value: |
        ## Bug Report
        Use this template to report bugs. Provide as much detail as possible to help reproduce the issue.

  - type: dropdown
    id: platform
    attributes:
      label: Platform
      description: Where did you encounter this bug?
      options:
        - Mobile (iOS)
        - Mobile (Android)
        - Desktop (Chrome)
        - Desktop (Firefox)
        - Desktop (Safari)
        - Desktop (Edge)
        - Multiple platforms
    validations:
      required: true

  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: What went wrong? Be specific.
      placeholder: "When I click X, I expected Y to happen, but instead Z happened."
    validations:
      required: true

  - type: textarea
    id: steps
    attributes:
      label: Steps to Reproduce
      description: How can we reproduce this bug?
      placeholder: |
        1. Navigate to '...'
        2. Click on '...'
        3. Scroll down to '...'
        4. See error
    validations:
      required: true

  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What should have happened?
    validations:
      required: true

  - type: textarea
    id: actual
    attributes:
      label: Actual Behavior
      description: What actually happened?
    validations:
      required: true

  - type: textarea
    id: context
    attributes:
      label: Additional Context
      description: Screenshots, error messages, console logs, etc.
    validations:
      required: false

  - type: textarea
    id: fix-hints
    attributes:
      label: Fix Hints (if known)
      description: Any ideas on what might be causing this or how to fix it?
      placeholder: |
        - Might be related to: [file or component]
        - Similar issue in: [other feature]
    validations:
      required: false
