package dev.kaizen.app.ui.theme.themes

import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.colorspace.ColorSpaces

private fun p3(r: Float, g: Float, b: Float): Color =
    Color(red = r, green = g, blue = b, colorSpace = ColorSpaces.DisplayP3)

// Derived from kaizen/app/themes/blue.css — cool blobs (sky, cyan, indigo, warm peach accent)
val BlauTheme = KaizenThemeSpec(
    id = KaizenThemeId.BLAU,
    label = "Blau",
    light = KaizenAccentScheme(
        primary     = p3(0.168f, 0.513f, 0.962f),  // oklch(0.62 0.19 257)
        primaryDeep = p3(0.090f, 0.380f, 0.820f),  // oklch(0.52 0.20 257) deeper blue
        onPrimary   = p3(0.971f, 0.989f, 1.000f),  // oklch(0.99 0.01 257)
        ring        = p3(0.168f, 0.513f, 0.962f),
        blob1       = p3(0.464f, 0.725f, 1.000f),  // oklch(0.78 0.15 257) sky
        blob2       = p3(0.000f, 0.766f, 0.953f),  // oklch(0.75 0.16 220) cyan
        blob3       = p3(0.648f, 0.551f, 1.000f),  // oklch(0.72 0.18 290) indigo
        blob4       = p3(0.973f, 0.763f, 0.519f),  // oklch(0.85 0.10 70)  peach accent
    ),
    dark = KaizenAccentScheme(
        primary     = p3(0.276f, 0.592f, 1.000f),  // oklch(0.68 0.18 257)
        primaryDeep = p3(0.168f, 0.513f, 0.962f),
        onPrimary   = p3(0.010f, 0.023f, 0.051f),  // oklch(0.12 0.02 257)
        ring        = p3(0.276f, 0.592f, 1.000f),
        blob1       = p3(0.000f, 0.307f, 0.713f),  // oklch(0.45 0.18 257) deep sky
        blob2       = p3(0.000f, 0.360f, 0.533f),  // oklch(0.42 0.16 220) deep cyan
        blob3       = p3(0.305f, 0.111f, 0.660f),  // oklch(0.40 0.20 290) deep indigo
        blob4       = p3(0.580f, 0.315f, 0.000f),  // oklch(0.50 0.14 70)  amber accent
    ),
)
