=== Mevabi – Daily Word Puzzle ===
Contributors:      mevabien22
Tags:              word puzzle, word game, daily puzzle, wordle game, wordle today
Requires at least: 6.0
Tested up to:      7.0
Requires PHP:      7.4
Stable tag:        1.0.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Embed customisable daily word puzzle games via shortcode or Gutenberg block.

== Description ==

**Mevabi – Daily Word Puzzle** lets you embed a classic letter-guessing puzzle game anywhere on your WordPress site, inspired by the popular wordle game and wordle today formats.

* **Shortcode:** `[mevabiwd 1="HOUSE" correct="#6aaa64" present="#c9b458" absent="#787c7e"]`
* **Gutenberg block:** "Mevabi Daily Word Puzzle" — configure everything from the sidebar.
* **Admin panel:** *Daily Word Puzzle → Shortcode Generator* — choose your word and colour scheme, then copy the ready-made shortcode.

**Rules:**

* Words up to **5 letters**.
* Up to **6 attempts**.
* 🟩 Correct position · 🟨 Wrong position · ⬛ Not in word.

**Features:**

* Fully accessible — ARIA live regions, keyboard navigation, on-screen keyboard.
* Dark-mode aware via `prefers-color-scheme`.
* Custom tile colours per puzzle.
* Vanilla JS front-end, no jQuery dependency.
* Physical keyboard and touch support.
* Multiple independent puzzles on the same page.
* Internationalisation-ready (`.pot` included).

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via **Plugins → Add New**.
2. Activate the plugin.
3. Go to **Daily Word Puzzle → Shortcode Generator** to build your first shortcode.
4. Copy the shortcode and paste it into any post, page, or widget.

== Frequently Asked Questions ==

= How long can the word be? =
Maximum **5 letters**.

= How many guesses does the player get? =
**6 attempts**.

= Can I use accented characters? =
Yes — letters from the extended Latin range (À–ÿ) are supported.

= Can I change the tile colours? =
Yes. Use the `correct`, `present`, and `absent` shortcode attributes, or configure them in the Shortcode Generator using the colour pickers.

= Can I embed multiple puzzles on the same page? =
Yes — each shortcode or block instance is fully independent.

= Is the word visible in the page source? =
Yes — the word is stored in a `data-word` attribute. This plugin is designed for **educational and entertainment** purposes.

== Screenshots ==

1. Front-end word puzzle game — default colours.
2. Admin panel — shortcode generator with colour pickers.
3. Gutenberg block — sidebar settings and editor preview.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.