=== TunerPro Gains & Booking Widget ===
Contributors: tunerpro
Tags: booking, tuning, remap, appointments, widget
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Vehicle gains lookup with live appointment booking, on any page. Type [gainsAPI] — the widget appears there.

== Description ==

Visitors pick their exact car, see genuine stock and tuned power figures, then book a real slot in the workshop's live diary — days and times come from the diary itself, full slots grey out, and every booking lands with the workshop instantly, tagged with your website.

* One shortcode: `[gainsAPI]` anywhere on any page or post
* Real figures for 190+ makes and 10,000+ engines
* Live diary: no double bookings, ever
* Showcase frame: a dark presentation panel with your own headline, accent colour and a LIVE badge — switch it off for the bare widget
* Test button: prove your key and portal work before anything goes public
* Live preview right on the settings page — the real widget with your key
* Dark and light look; language follows your site automatically (or pin it)
* No accounts for your visitors, no cookies set by the widget

You need an API key and a portal address from your tuning supplier — one key per website.

== Installation ==

1. Upload the plugin and activate it.
2. Go to Settings → TunerPro Widget, paste your API key and portal address, save.
3. Edit any page and type `[gainsAPI]` where the widget should appear (Shortcode block in the block editor).

== Frequently Asked Questions ==

= Where do the bookings go? =
Straight into the workshop's live diary, with the customer's name, contact, car and requested work — you'll be contacted to confirm.

= Can I show figures without taking bookings? =
Yes — untick "Take bookings" in the settings, or use `[gainsAPI bookings="0"]` on that page.

= Can I have it on more than one page? =
Yes, the shortcode works on any number of pages. Per-page overrides: `[gainsAPI theme="light"]`.

= Can I make it match my site's branding? =
Yes — pick your accent colour, write your own headline and sub-line, or switch the showcase frame off entirely (`[gainsAPI design="0"]`) and style the bare widget from your theme.

== Changelog ==

= 1.1.0 =
* Showcase frame: presentation panel around the widget (headline, sub-line, accent colour, LIVE badge) — on/off per site or per page.
* Redesigned settings page with step-by-step cards and toggle switches.
* "Test the connection" button — verifies your key, your domain lock and whether the live diary is on, before you publish.
* Live preview of the real widget on the settings page.
* After activation you land straight in the settings.
* Language can follow the site's own language automatically.

= 1.0.0 =
* First release: gains lookup + live diary booking via one shortcode.
