/**
 * Pet Presence POD - Shared Design Tokens
 *
 * Single source of truth for brand colors, typography, spacing, radii
 * and motion. Aligned with the public Mocha homepage (public/homepage.html).
 *
 * Any stylesheet that needs to render branded UI should @import or
 * wp_enqueue_style this file as a dependency.
 */

:root {
    /* Color — primary brand */
    --pp-primary:            #006496;
    --pp-primary-hover:      #005a7a;
    --pp-primary-soft:       rgba(0, 100, 150, 0.08);
    --pp-primary-container:  #e8f0f7;

    /* Color — secondary / tertiary (matching homepage palette) */
    --pp-secondary:          #725c00;
    --pp-secondary-container:#fed33a;
    --pp-tertiary:           #006b54;
    --pp-tertiary-container: #47cea8;

    /* Color — surface */
    --pp-background:         #f8f9fa;
    --pp-surface:            #ffffff;
    --pp-surface-low:        #f3f4f5;
    --pp-surface-high:       #e7e8e9;
    --pp-on-surface:         #191c1d;
    --pp-on-surface-variant: #40484f;
    --pp-on-primary:         #ffffff;
    --pp-outline:            #707880;

    /* Color — semantic */
    --pp-error:              #ba1a1a;
    --pp-error-soft:         rgba(186, 26, 26, 0.08);
    --pp-success:            var(--pp-tertiary);
    --pp-memorial:           #8b6f47;
    --pp-memorial-light:     #f7f3ed;
    --pp-gift-light:         #eaf5f0;

    /* Shadow */
    --pp-shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.08);
    --pp-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --pp-shadow-md: 0 6px 24px rgba(0, 100, 150, 0.3);
    --pp-shadow-lg: 0 24px 80px -20px rgba(116, 192, 252, 0.35);

    /* Radius */
    --pp-radius-sm:   12px;
    --pp-radius-md:   20px;
    --pp-radius-lg:   24px;
    --pp-radius-pill: 9999px;

    /* Spacing scale (8-pt aligned) */
    --pp-space-1: 4px;
    --pp-space-2: 8px;
    --pp-space-3: 12px;
    --pp-space-4: 16px;
    --pp-space-5: 20px;
    --pp-space-6: 24px;
    --pp-space-7: 32px;
    --pp-space-8: 40px;

    /* Typography */
    --pp-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pp-font-body:    'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pp-font-icon:    'Material Symbols Outlined';

    /* Motion */
    --pp-ease:    cubic-bezier(0.2, 0.8, 0.2, 1);
    --pp-dur-sm:  0.2s;
    --pp-dur-md:  0.3s;
}

/* Material Symbols — default stylistic settings so all .material-symbols-outlined
 * inherit a consistent weight/fill across the plugin. */
.material-symbols-outlined {
    font-family: var(--pp-font-icon);
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Brand font application — applied to branded surfaces.
 * The plugin only applies these to elements inside .pet-presence-modal and
 * .pet-presence-card to avoid clobbering the host theme. */
.pet-presence-modal,
.pet-presence-card,
.pet-presence-button {
    font-family: var(--pp-font-body);
    color: var(--pp-on-surface);
}

.pet-presence-modal h1,
.pet-presence-modal h2,
.pet-presence-modal h3,
.pet-presence-modal h4,
.pet-presence-card-title {
    font-family: var(--pp-font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pp-on-surface);
}
