import SwiftUI

struct WidgetPreviewCard: View {
    let variant: WidgetVariant
    var layoutScale: CGFloat = 1

    var body: some View {
        let size = variant.previewCardSize
        let scale = max(0.01, layoutScale)
        DesktopWidgetView(variant: variant, isPreview: true)
            .frame(width: size.width, height: size.height)
            .scaleEffect(scale)
            .frame(width: size.width * scale, height: size.height * scale)
            .clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
            .overlay(
                RoundedRectangle(cornerRadius: 18, style: .continuous)
                    .stroke(Color.white.opacity(0.12), lineWidth: 1)
            )
    }
}
