import SwiftUI
import Combine

struct EmptyChat: View {
    let isAuraVisible: Bool

    var body: some View {
        ZStack {
            // Base background color (always visible)
            ChatConstants.Colors.Background.primary
                .ignoresSafeArea()
            
            // ChatThermal shader background - fades out when chat has responses
            ChatThermalShader(isVisible: isAuraVisible)
                .ignoresSafeArea()

            // Floating artworks with gyroscope parallax effect and centered headline
            FloatingArtworksBackground()
                .frame(maxWidth: .infinity, maxHeight: .infinity)
                .ignoresSafeArea()
        }
    }
}

#Preview {
    EmptyChat(isAuraVisible: true)
        .background(ChatConstants.Colors.Background.primary)
        .frame(maxWidth: .infinity, maxHeight: .infinity)
}