/** biome-ignore-all lint/suspicious/noUnknownAtRules: tailwind handles it */
@import "./styles.css";
@import "tailwindcss";

/* Tailwind utility surface for Pollinations UI app classes.
   Values stay anchored to package-owned `--polli-*` tokens. */
@theme inline {
    --font-heading:                 var(--polli-font-heading);
    --font-subheading:              var(--polli-font-subheading);
    --font-body:                    var(--polli-font-body);
    --font-pixel:                   var(--polli-font-pixel);
    --text-micro:                   var(--polli-text-micro);
    --text-base:                    var(--polli-text-base);

    --color-theme-text-base:        var(--polli-color-text-base);
    --color-theme-text-strong:      var(--polli-color-text-strong);
    --color-theme-text-soft:        var(--polli-color-text-soft);
    --color-theme-text-muted:       var(--polli-color-text-muted);
    --color-theme-border:           var(--polli-color-border);
    --color-theme-bg-subtle:        var(--polli-color-bg-subtle);
    --color-theme-bg-active:        var(--polli-color-bg-active);
    --color-theme-bg-hover:         var(--polli-color-bg-hover);
    --color-theme-bg-pale:          var(--polli-color-bg-pale);

    --color-intent-danger-bg-light: var(--polli-color-danger-bg-light);
    --color-intent-danger-text:     var(--polli-color-danger-text);
    --color-intent-danger-border:   var(--polli-color-danger-border);
    --color-surface-white:          var(--polli-color-surface-white);
}

@layer base {
    html.polli-ui-root {
        color-scheme: light;
        overflow-x: hidden;
    }

    html.polli-ui-root *,
    html.polli-ui-root ::before,
    html.polli-ui-root ::after {
        box-sizing: border-box;
    }

    html.polli-ui-root * {
        @apply border-gray-800;
    }

    body.polli-ui-body {
        max-width: 800px;
        @apply mx-auto min-h-screen overflow-x-hidden bg-emerald-100 px-4 pt-4 pb-8 font-body font-medium text-base text-green-950 sm:px-6 md:px-8;
    }

    html.polli-ui-shell,
    body.polli-ui-shell {
        max-width: none;
        height: 100dvh;
        @apply m-0 overflow-hidden p-0;
    }

    body.polli-ui-shell #root {
        height: 100dvh;
        min-height: 0;
    }

    body.polli-ui-body h1 {
        @apply font-heading text-5xl;
    }

    body.polli-ui-body h2 {
        @apply font-subheading text-3xl tracking-tight;
    }

    body.polli-ui-body h3 {
        @apply font-subheading text-2xl tracking-tight;
    }

    body.polli-ui-body h4 {
        @apply font-body text-lg font-semibold;
    }

    body.polli-ui-body h5 {
        @apply font-body text-base font-semibold;
    }

    body.polli-ui-body h6 {
        @apply font-body text-sm font-semibold;
    }
}
