=== BookFolio Core ===
Contributors: bookfolio
Tags: books, author, woocommerce, events, newsletter, ai
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.1
Stable tag: 0.5.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Everything an author needs to go live and sell books in a day: book model, setup wizard, events, newsletter, contact inbox and a guarded AI writing assistant.

== Description ==
BookFolio Core is the companion plugin to the BookFolio theme. It is built for non-technical authors: one setup wizard, one "Add a book" form, plain-language checks.

* 6-step setup wizard: you, your book, the look, getting paid, pages, go live
* Book model on WooCommerce products: formats, sample chapter, retailers, series
* 27 Gutenberg blocks: books panel, single book, read-the-book sample, countdown, testimonials, newsletter, events, map, series, retailer links, author bio and more
* Events: upcoming/past lists, single event pages, archive
* Newsletter: signup block + footer form, double-safe honeypot, CSV export, per-subscriber delete
* Contact form: messages stored in a wp-admin inbox with unread badge, email notification
* AI assistant: OpenRouter (free models, default), OpenAI, Claude, Gemini - bring your own key; keys stored encrypted, server-side only, drafts never auto-publish, fabrication guardrails
* Starter sites: one-click Debut, Series/Catalog and Indie Publisher demo content
* SEO: per-book meta, schema.org Book markup, sitemap-friendly structure
* Privacy: no external calls except your chosen AI provider; no tracking; no keys in the browser

== Installation ==
1. Plugins > Add New > Upload Plugin, choose bookfolio-core.zip and activate.
2. Install WooCommerce when prompted (needed to take payments).
3. Activate the BookFolio theme, then follow Books > Setup guide.

== Frequently Asked Questions ==
= Is the AI assistant required? =
No. Everything works without it. To use it, pick a provider on the AI assistant screen and paste your key. OpenRouter has free models and needs no card.

= Where is my data? =
Books and events are normal WordPress content. Newsletter subscribers and contact messages live in your own database, exportable to CSV any time.

== Changelog ==
= 0.5.7 =
* Privacy page fix applies on any install order.
* Real Privacy Policy page replaces the WordPress placeholder text, written from what the plugin actually does.

= 0.5.4 =
* Accessibility: contact form heading level fixed
= 0.5.2 =
* Corrected demo cover art; journal cards use h2
= 0.5.1 =
* OpenRouter provider added (default, free models)
= 0.5.0 =
* Events CPT + 16 new blocks + starter-site importer

== Free and Pro ==
Free: author setup, WooCommerce book store, all 27 display blocks, events, newsletter capture and CSV export, contact inbox, SEO, pasted text samples and the Debut starter.
Pro: AI drafts using your own provider key (provider charges may apply), PDF/EPUB sample conversion, Series/Catalog and Indie Publisher starter imports. Existing content remains visible if a license changes. Hosted AI credits are not included or available.
The included companion plugin installs or updates from Appearance > Themes in one click after WooCommerce is active. It never downgrades an existing newer companion plugin.

== Current release ==
Free: one store book and 25 email readers. Pro: more books, email sign-ups, new events and writing tools. Existing books, events and subscriber records are kept. Plain-language setup, larger controls and an easy guide: https://bookfolio-demo.pages.dev/guide.html
