=== AI Age Text Explainer ===
Contributors: aiage
Donate link: https://ko-fi.com/abdelrahmanelshiekh20
Tags: ai, openai, highlight, text, explain
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 2.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Highlight any text on your page and instantly get AI-powered explanations and insights via the OpenAI API.

== Description ==
AI Age Text Explainer lets your visitors highlight any text on your site and get instant AI-powered explanations using the OpenAI API. No page reload needed.

== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate via the Plugins menu
3. Go to Settings > AI Age Text Explainer and enter your OpenAI API key

== Frequently Asked Questions ==

= Do I need an OpenAI account? =
No. An OpenAI API key is optional. The plugin can work without OpenAI. If you want to use OpenAI, you can create an API key at https://platform.openai.com/api-keys.

= Which model does the plugin use? =
The plugin uses GPT-4o mini by default for fast, cost-effective responses.

= Does it work with any WordPress theme? =
Yes, the plugin works on the frontend of any WordPress theme.

= Is my API key stored securely? =
Your API key is stored in the WordPress database using the standard get_option/update_option functions. We recommend using a key with usage limits set in your OpenAI dashboard.

== External Services ==

This plugin connects to the OpenAI API to generate AI-powered text explanations. When a visitor highlights text on your site, that text and the current page URL are sent to OpenAI's servers to generate a response.

- Service: OpenAI API (https://openai.com)
- Data sent: The highlighted text, the current page URL, and your configured prompt/persona
- When: Only when a visitor highlights text on the frontend and triggers the explainer
- Terms of Service: https://openai.com/terms
- Privacy Policy: https://openai.com/privacy

This plugin is not affiliated with, endorsed by, or sponsored by OpenAI.

== Screenshots ==
1. The highlight tooltip in action
2. The settings page

== Upgrade Notice ==

= 2.1 =
Renamed plugin, moved admin menu under Settings, and improved code standards. Please re-save your settings after updating.

= 2.0 =
Major update with improved UI and settings page.

== Changelog ==
= 2.1 =
* Renamed plugin to "AI Age Text Explainer"
* Moved admin menu under Settings > AI Age Text Explainer
* Extracted inline CSS/JS to properly enqueued files
* Added external service disclosure for OpenAI API

= 2.0 =
* Improved UI and settings page

= 1.0 =
* Initial release
