=== Dlogix Smart Reading Bar ===
Contributors:      shoaibhassan12
Tags:              reading progress, progress bar, scroll indicator, reading time, scroll bar
Requires at least: 5.8
Tested up to:      7.0
Requires PHP:      7.2
Stable tag:        1.0.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, smooth reading progress bar that shows users how far they have scrolled through a page or post.

== Description ==

**Dlogix Smart Reading Bar** adds a thin, animated progress bar to the top (or bottom) of every page on your WordPress site, giving readers a visual indicator of how far they have scrolled.

**Features:**

* Choose any bar color with the native color picker — no extra library needed.
* Position the bar at the top or bottom of the screen.
* Set bar thickness from 1 px to 20 px.
* Live preview in the settings page before saving.
* Buttery-smooth animation via `requestAnimationFrame` and passive scroll listeners.
* Zero dependencies — no jQuery, no external libraries, no CDN calls.
* Fully accessible: ARIA `role="progressbar"` with live `aria-valuenow` updates.
* Multisite compatible.
* Clean uninstall — removes all plugin data when deleted.
* PHP 7.2+ compatible.

== Installation ==

1. Upload the `dlogix-smart-reading-bar` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress Admin.
3. Go to **Settings → Smart Progress Bar** to customise the bar color, position, and thickness.

== Frequently Asked Questions ==

= Does the plugin slow down my site? =

No. The plugin enqueues one tiny CSS file and one tiny JS file (each under 2 KB), uses a passive scroll listener, and throttles updates with `requestAnimationFrame`. There are no external HTTP requests.

= Which pages show the progress bar? =

By default the bar appears on all public-facing pages. It is automatically hidden in the admin area, feeds, embeds, and REST API responses.

= Is the plugin compatible with block themes and FSE? =

Yes. The plugin hooks into `wp_body_open` for modern themes, with an automatic fallback via `the_content` for older themes that do not call that hook.

= Does it work with page builders? =

Yes — the bar is injected into the page regardless of which page builder you use, as long as the theme properly calls WordPress template hooks.

= Will my data be deleted if I uninstall the plugin? =

Yes. All plugin settings are removed from the database when you delete (not just deactivate) the plugin. This works on both single-site and multisite installs.

== Screenshots ==

1. The progress bar displayed at the top of a post.
2. The settings page with live preview.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial public release.
