=== Smart Reading Time ===
Contributors: yourname
Tags: reading time, blog, posts, content, seo
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically displays estimated reading time on your posts and pages — with badge styles, shortcode support, and a REST API endpoint.

== Description ==

**Smart Reading Time** is a lightweight, zero-dependency WordPress plugin that calculates and displays estimated reading time for your posts and pages.

= Features =
* Auto-injects reading time before or after post content
* 3 built-in visual styles: Badge, Minimal, and Line
* Customizable label with `%s` placeholder
* Adjustable Words Per Minute (WPM) speed
* Works with any public post type (posts, pages, custom types)
* Shortcode: `[reading_time]` or `[reading_time wpm="150"]`
* REST API endpoint for headless WordPress setups
* No jQuery, no external assets — pure PHP + inline CSS

== Installation ==

1. Upload the `smart-reading-time` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** menu in WordPress
3. Go to **Settings → Reading Time** to configure

== Frequently Asked Questions ==

= How is reading time calculated? =
Word count is divided by the Words Per Minute setting (default: 200 wpm). The result is always rounded up to at least 1 minute.

= Can I display reading time manually? =
Yes! Use the shortcode `[reading_time]` anywhere in your content or template.

= Does it work with page builders? =
Yes, as long as the page builder outputs standard WordPress post content through `the_content` filter.

= Is there a REST API? =
Yes: `GET /wp-json/srt/v1/reading-time/{post_id}` returns JSON with minutes and label.

== Changelog ==

= 1.0.0 =
* Initial release
