namespace QRRapidoApp.Models
{
    public class LogoReadabilityInfo
    {
        public bool HasLogo { get; set; }
        public int LogoSizePercent { get; set; }
        public int ReadabilityScore { get; set; } // 0-100
        public string DifficultyLevel { get; set; } = string.Empty; // VeryEasy, Easy, Medium, Hard, VeryHard
        public string UserMessage { get; set; } = string.Empty;
        public List<string> Tips { get; set; } = new();
        public LogoComplexity LogoComplexity { get; set; } = new();
    }

    public class LogoComplexity
    {
        public int Width { get; set; }
        public int Height { get; set; }
        public bool IsSquare { get; set; }
        public bool HasTransparency { get; set; }
        public int DominantColorCount { get; set; }
        public double ContrastRatio { get; set; }
        public string FileFormat { get; set; } = string.Empty;
        public int FileSizeBytes { get; set; }
    }

    public enum ReadabilityLevel
    {
        VeryEasy = 85,  // 85-100
        Easy = 70,      // 70-84
        Medium = 55,    // 55-69
        Hard = 40,      // 40-54
        VeryHard = 0    // 0-39
    }
}