/**
 * Visual Booker — design tokens.
 *
 * Admin / plugin chrome brand lives here (`--ggb-brand` mint).
 * Frontend booking CTAs use Layout Colors → Submit button
 * (`color_form_book_now` → CSS `--brand`), default #221c24 — not the plugin mint.
 *
 * HTML contract: every plugin UI surface opens with a root node:
 *   <div class="ggb-root" data-ggb-context="settings|builder|frontend"> … </div>
 *
 * Tokens are exposed on `body.ggb-admin` (WP admin screens) and on
 * `.ggb-root` (shortcode / any front-end embed) so `var(--ggb-*)` resolves in both
 * environments without leaking variables site-wide when only the shortcode loads.
 *
 * @see admin/partials/view_settings.php
 * @see admin/partials/view_layout.php
 * @see public/class-public.php (shortcode outer wrapper)
 */

body.ggb-admin,
.ggb-root {
    /* Plugin brand (admin chrome, builder CTAs) — not the public booking button */
    --ggb-brand: #79fed1;
    --ggb-brand-hover: #5ff0c6;
    --ggb-brand-on: #111111;
    /* Readable brand tint for text/links on light surfaces */
    --ggb-brand-ink: #0f766e;
    /* Neutral accent — chrome, focus rings, secondary UI */
    --ggb-accent: #717171;
    --ggb-accent-hover: #475569;

    /* Dark shell (settings rail / glass panels) */
    --ggb-bg-dark: #1a1d21;
    --ggb-bg-glass: rgba(26, 29, 33, 0.85);
    --ggb-border: rgba(255, 255, 255, 0.1);
    --ggb-text: #e4e4e4;
    --ggb-text-muted: #a8a8a8;
    --ggb-shadow-deep: 0 12px 32px rgba(0, 0, 0, 0.4);

    /* Layout rhythm */
    --ggb-radius-lg: 12px;
    --ggb-radius-md: 8px;
    --ggb-radius-sm: 6px;
    --ggb-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Builder transform handles — dark for contrast on light canvas */
    --ggb-handle-fill: #221c24;
    --ggb-handle-fill-hover: #111111;
    --ggb-handle-fill-active: #000000;
    --ggb-handle-stroke: rgba(255, 255, 255, 0.92);
    --ggb-handle-stroke-hover: #ffffff;
    --ggb-handle-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.28);
    --ggb-handle-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 0 1px #ffffff,
        0 0 0 2px rgba(34, 28, 36, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.28);
    --ggb-handle-size: 8px;
    --ggb-handle-radius: 2px;
    --ggb-handle-hover-scale: 1.06;
    --ggb-bbox-outline: rgba(71, 85, 105, 0.45);

    /* WP-admin light form controls (settings + shared inputs) */
    --ggb-settings-input-bg: #fff;
    --ggb-settings-input-border: #c5ccd6;
    --ggb-settings-input-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(15, 23, 42, 0.04);
    --ggb-settings-input-color: #1e293b;
    --ggb-settings-input-radius: 6px;
    --ggb-settings-input-font-size: 12px;
    --ggb-settings-input-focus-ring: inset 0 1px 2px rgba(15, 23, 42, 0.1), 0 0 0 2px rgba(71, 85, 105, 0.28);

    /* ——— Warm pastel system (shared with landing; 20 tones) ——— */
    --ggb-p-01: #f5f0e8;
    --ggb-p-02: #f7f2ea;
    --ggb-p-03: #f3ebe1;
    --ggb-p-04: #efe6d8;
    --ggb-p-05: #f8ebe3;
    --ggb-p-06: #f5e0d4;
    --ggb-p-07: #f7e8eb;
    --ggb-p-08: #fce7f0;
    --ggb-p-09: #f7f0de;
    --ggb-p-10: #f5edd0;
    --ggb-p-11: #eef7f3;
    --ggb-p-12: #e6f5ef;
    --ggb-p-13: #dcefe8;
    --ggb-p-14: #e8f4f2;
    --ggb-p-15: #eceaf8;
    --ggb-p-16: #e8e4f5;
    --ggb-p-17: #e4e9f7;
    --ggb-p-18: #e8eef5;
    --ggb-p-19: #e6e8ef;
    --ggb-p-20: #ebe7e2;

    --ggb-ico-lavender-bg: #ebe9fe;
    --ggb-ico-lavender-fg: #4338ca;
    --ggb-ico-mint-bg: #d1fae5;
    --ggb-ico-mint-fg: #047857;
    --ggb-ico-peach-bg: #ffedd5;
    --ggb-ico-peach-fg: #c2410c;
    --ggb-ico-amber-bg: #fef3c7;
    --ggb-ico-amber-fg: #b45309;
    --ggb-ico-rose-bg: #ffe4e6;
    --ggb-ico-rose-fg: #be123c;
}

/* Root shell: predictable box model for all descendants */
.ggb-root {
    box-sizing: border-box;
    max-width: 100%;
}
