

using UnityEngine;

namespace com.al_arcade.shared
{


    public static class SSColorPalette
    {

        public static readonly Color Primary      = new Color32(48, 48, 208, 255);
        public static readonly Color PrimaryDark  = new Color32(32, 32, 168, 255);
        public static readonly Color PrimaryLight = new Color32(80, 80, 220, 255);
        public static readonly Color Accent       = new Color32(254, 215, 0, 255);
        public static readonly Color AccentDark   = new Color32(212, 180, 0, 255);


        public static readonly Color Success      = new Color32(16, 185, 129, 255);
        public static readonly Color SuccessLight = new Color32(209, 250, 229, 255);
        public static readonly Color Danger       = new Color32(239, 68, 68, 255);
        public static readonly Color DangerLight  = new Color32(254, 226, 226, 255);
        public static readonly Color Warning      = new Color32(245, 158, 11, 255);
        public static readonly Color Info         = new Color32(59, 130, 246, 255);


        public static readonly Color Background   = new Color32(238, 240, 248, 255);
        public static readonly Color Card         = Color.white;
        public static readonly Color TextDark     = new Color32(26, 26, 46, 255);
        public static readonly Color TextMuted    = new Color32(107, 114, 128, 255);
        public static readonly Color Border       = new Color32(229, 231, 235, 255);


        public static readonly Color GateCorrect  = new Color32(16, 185, 129, 255);
        public static readonly Color GateWrong    = new Color32(239, 68, 68, 255);
        public static readonly Color GateDefault  = new Color32(80, 80, 220, 255);
        public static readonly Color TrueGreen    = new Color32(34, 197, 94, 255);
        public static readonly Color FalseRed     = new Color32(239, 68, 68, 255);
        public static readonly Color WrongWord    = new Color32(239, 68, 68, 255);
        public static readonly Color CorrectWord  = new Color32(16, 185, 129, 255);
        public static readonly Color NeutralWord  = new Color32(248, 249, 252, 255);


        public static Color WithAlpha(Color c, float a)
        {
            return new Color(c.r, c.g, c.b, a);
        }

        public static Color Lerp3(Color a, Color b, Color c, float t)
        {
            if (t < 0.5f) return Color.Lerp(a, b, t * 2f);
            return Color.Lerp(b, c, (t - 0.5f) * 2f);
        }
    }
}
