=== BZC AI Summary Box ===
Contributors: bzc
Tags: ai, summary, content box, seo, excerpt
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 1.0.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an editable AI summary box to posts and pages. Style colors, border radius and position from the admin panel.

== Description ==

**BZC AI Summary Box** lets you add a beautifully styled summary snippet to any post or page. The box appears before the first H2 heading (or at the very top of the content) and draws readers in with a clear, highlighted overview.

Each post gets its own summary text via a dedicated meta box in the editor. If left empty, no box is shown for that post.

**Features:**

* Customizable accent color, background, border and text color
* Live color preview on the settings page
* Adjustable border radius
* Two display positions: before the first H2, or at the top of content
* Enable the summary box per post type (posts, pages, custom types)
* Custom label text with fallback to the translated default
* Fully translatable — ships with English and Turkish (tr_TR)
* Lightweight — no external dependencies, no JavaScript on the frontend
* Accessible markup (`role="note"`, `aria-label`)

**Usage:**

1. Go to **Settings → BZC AI Summary Box** and configure colors and behavior.
2. Open any post or page in the editor.
3. Find the **AI Summary** meta box and type your summary.
4. Save or publish — the box appears automatically on the frontend.

== Installation ==

1. Upload the `bzc-ai-summary-box` folder to the `/wp-content/plugins/` directory, or install it directly through **Plugins → Add New**.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings → BZC AI Summary Box** to configure colors and options.

== Frequently Asked Questions ==

= Where is the summary displayed? =

By default, the summary box appears just before the first H2 heading in the post content. You can change this to the very top of the content in **Settings → BZC AI Summary Box → Box Position**.

= Can I show the summary on pages as well as posts? =

Yes. Under **Enable on Post Types** you can tick any public post type including Pages and custom post types registered by other plugins or your theme.

= How do I hide the box for a specific post? =

Simply leave the **AI Summary** meta box empty when editing that post. No box will be rendered on the frontend.

= Where is the summary text stored? =

The text is stored as post meta under the key `ai_summary`. You can access it in templates with:

`$summary = get_post_meta( get_the_ID(), 'ai_summary', true );`

= What happens to my data if I uninstall the plugin? =

Uninstalling the plugin will delete the plugin settings (`aisb_options`) and all saved summary texts (`ai_summary` post meta) from the database.

= Can I translate the plugin? =

Yes. The plugin is fully internationalized. Copy `languages/bzc-ai-summary-box-tr_TR.po` to `bzc-ai-summary-box-{locale}.po`, translate the strings, and compile the `.mo` file.

== Screenshots ==

1. The summary box displayed on the frontend before the first H2 heading.
2. The AI Summary meta box in the post editor.
3. The settings page with live color preview.

== Changelog ==

= 1.0.4 =
* Minor styling improvements and code cleanup.

= 1.0.3 =
* Fixed integration with Table of Contents plugins (swallowing issue).
* Improved summary text rendering.

= 1.0.2 =
* Initial release.
