import SwiftUI

enum Theme {
    static let background = Color(red: 0.97, green: 0.96, blue: 0.94)
    static let textPrimary = Color.black
    static let textSecondary = Color.gray

    static let designShelf = LinearGradient(
        colors: [Color(red: 0.87, green: 0.66, blue: 0.45), Color(red: 0.79, green: 0.55, blue: 0.34)],
        startPoint: .top,
        endPoint: .bottom
    )

    static let psychologyShelf = LinearGradient(
        colors: [Color(red: 0.58, green: 0.67, blue: 0.78), Color(red: 0.45, green: 0.55, blue: 0.66)],
        startPoint: .top,
        endPoint: .bottom
    )

    static let novelsShelf = LinearGradient(
        colors: [Color.white, Color(red: 0.9, green: 0.9, blue: 0.9)],
        startPoint: .top,
        endPoint: .bottom
    )

    static func headerSerif(size: CGFloat) -> Font {
        .custom("NewYork-Regular", size: size, relativeTo: .largeTitle)
    }

    enum Spacing {
        static let xSmall: CGFloat = 6
        static let small: CGFloat = 10
        static let medium: CGFloat = 16
        static let large: CGFloat = 24
    }

    enum Radius {
        static let card: CGFloat = 14
        static let image: CGFloat = 10
        static let pill: CGFloat = 999
    }

    enum Shadow {
        static let card = (color: Color.black.opacity(0.14), radius: CGFloat(8), y: CGFloat(4))
    }
}
