=== Rainz Accessibility ===
Contributors: adir8rainz
Tags: accessibility, a11y, wcag, rtl, toolbar
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.3.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight accessibility toolbar — multilingual (EN/HE/AR/RU), RTL-first, keyboard navigation, stop animations, contrast, text resizing and more.

== Description ==

Rainz Accessibility adds a floating accessibility button and a clean, customizable accessibility menu to your site. Built RTL-first with full LTR support, it works out of the box in English, Hebrew, Arabic and Russian — and follows the page language automatically, including live language switching with GTranslate, WPML or Polylang.

**Features:**

* **"Accessible version" mode** — a prominent switch that adds an `a11y-mode` class to `body` (persisted in localStorage) so developers can attach site-specific CSS/JS adjustments
* **Keyboard navigation** — strong visible focus outline + "skip to content" link
* **Stop animations & flashing** — pauses CSS animations, Swiper/Slick carousels and autoplay videos
* **High contrast** mode
* **Invert colors** and **Grayscale** — implemented with a backdrop-filter layer that keeps fixed headers and popups working (with automatic fallback for older browsers)
* **Text size adjustment** (up to +40% / -20%)
* **Text spacing** — letter, word and line spacing per WCAG 2.1 SC 1.4.12
* **Readable font**
* **Underline links**
* **Highlight headings**
* **Highlight links & buttons**
* **Large cursor** — inline SVG, no external assets
* **Reading guide** — a horizontal bar that follows the pointer
* **Respects `prefers-reduced-motion`** — animations are stopped by default for visitors whose OS requests reduced motion
* **One-click reset** of all settings
* **Accessibility statement & feedback links** (configurable)
* **Custom colors**, button position (left/right), button size, distance from bottom, hide-on-mobile option
* **Per-feature toggles** — enable or disable every feature from the settings screen
* **Multilingual menu**: English / Hebrew / Arabic / Russian with automatic detection from the page language (`html lang`), or a fixed manual language
* **User preferences persist** between visits
* **Anonymous usage counter** — a local daily total of menu opens shown in the settings screen, useful as evidence that the tool is active and in use; no IP addresses, no identifiers, no personal data
* No jQuery, no external requests, no tracking

**Legal note:** this plugin helps make your website more accessible, but it is not a substitute for a professional accessibility audit, and on its own it does not guarantee compliance with any accessibility standard or law (e.g. WCAG 2.1, ADA, EN 301 549, Israeli Standard 5568). Please verify which legal requirements apply to your website.

== Installation ==

1. Upload the `rainz-accessibility` folder to `/wp-content/plugins/`.
2. Activate the plugin through the "Plugins" screen.
3. Go to "Settings → Rainz Accessibility" and configure your accessibility statement and feedback links.

== Frequently Asked Questions ==

= Does the plugin support RTL? =

Yes. The plugin was built RTL-first with full LTR support.

= What does "Accessible version" do? =

The switch adds an `a11y-mode` class to `body` and saves the choice. Developers can attach site-specific CSS/JS fixes to it.

= Which languages does the menu support? =

English, Hebrew, Arabic and Russian. In "automatic" mode the menu follows the page language (`html lang`), including live switching with GTranslate/WPML/Polylang.

= Does this plugin make my site fully compliant with accessibility laws? =

No overlay or toolbar can guarantee that on its own. This plugin provides helpful user-facing adjustments, but a professional accessibility audit is required to assess compliance with the requirements that apply to your website.

= Does the plugin load any external resources or track users? =

No. Everything is served locally from your site, and nothing is sent to any external service. The usage counter stores only an anonymous daily total (a single number per day) in your own database — no IP addresses, no identifiers and no personal data.

== Screenshots ==

1. The floating accessibility button and menu (Hebrew, RTL).
2. The menu in English (LTR).
3. The settings screen.

== Changelog ==

= 1.3.2 =
* Admin settings CSS/JS are now enqueued via wp_add_inline_style()/wp_add_inline_script() instead of inline tags.
* Removed bundled translation files — translations are handled by translate.wordpress.org.
* Removed load_plugin_textdomain() (not needed since WordPress 4.6).

= 1.3.1 =
* Fix: panel header now stays above row switches when the menu is scrolled.
* Fix: text-spacing paragraph margin no longer affects the widget itself.

= 1.3.0 =
* New features: invert colors, grayscale, text spacing (WCAG 2.1 SC 1.4.12), underline links, large cursor, reading guide.
* Anonymous usage counter: a local daily total of menu opens, shown in the settings screen (no IP, no identifiers, no personal data).
* Color filters use a backdrop-filter overlay so position:fixed elements keep working; automatic fallback for older browsers.
* Animations now stop by default for visitors with an OS-level reduced-motion preference (prefers-reduced-motion).
* The menu closes when clicking outside of it.
* All new features are translated (EN/HE/AR/RU) and have per-feature toggles in the settings screen.

= 1.2.0 =
* Internationalized the admin UI (English base, Hebrew translation included; translation-ready for all languages).
* Admin screen direction now follows the WordPress admin locale (RTL/LTR).
* English readme for the WordPress.org directory.

= 1.1.5 =
* Larger icon proportions inside the floating button (all button sizes).
* Removed the front-end credit link; added an About card with a legal disclaimer in the settings screen.

= 1.1.4 =
* New vector accessibility icon.

= 1.1.3 =
* Redesigned settings screen (branded header, cards, color pickers with live hex preview).

= 1.1.0 =
* Multilingual menu: EN/HE/AR/RU with automatic detection and live language-switch tracking.
* New settings: per-feature toggles, button size, distance from bottom, hide on mobile.
* Automatic direction (RTL/LTR) based on the menu language.

= 1.0.0 =
* First release.
