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/amber.css — warm blobs (gold, coral, honey, teal accent)
val AmberTheme = KaizenThemeSpec(
    id = KaizenThemeId.AMBER,
    label = "Amber",
    light = KaizenAccentScheme(
        primary     = p3(0.811f, 0.608f, 0.126f),  // oklch(0.72 0.14 83)
        primaryDeep = p3(0.680f, 0.480f, 0.050f),  // oklch(0.62 0.15 83) richer gold
        onPrimary   = p3(0.015f, 0.013f, 0.009f),  // oklch(0.10 0.005 83)
        ring        = p3(0.811f, 0.608f, 0.126f),
        blob1       = p3(0.992f, 0.767f, 0.282f),  // oklch(0.85 0.15 83)  gold
        blob2       = p3(1.000f, 0.562f, 0.230f),  // oklch(0.78 0.18 50)  coral
        blob3       = p3(0.917f, 0.853f, 0.471f),  // oklch(0.88 0.12 100) honey
        blob4       = p3(0.461f, 0.885f, 0.908f),  // oklch(0.85 0.10 200) teal accent
    ),
    dark = KaizenAccentScheme(
        primary     = p3(0.862f, 0.658f, 0.201f),  // oklch(0.76 0.14 83)
        primaryDeep = p3(0.811f, 0.608f, 0.126f),
        onPrimary   = p3(0.015f, 0.013f, 0.009f),  // oklch(0.10 0.005 83)
        ring        = p3(0.862f, 0.658f, 0.201f),
        blob1       = p3(0.619f, 0.394f, 0.000f),  // oklch(0.55 0.16 83)  deep gold
        blob2       = p3(0.628f, 0.087f, 0.000f),  // oklch(0.45 0.18 40)  deep coral
        blob3       = p3(0.404f, 0.407f, 0.084f),  // oklch(0.50 0.10 110) olive
        blob4       = p3(0.000f, 0.405f, 0.436f),  // oklch(0.45 0.12 200) deep teal
    ),
)
