import 'package:flutter/material.dart';
import '../../../../core/theme/app_colors.dart';
import '../../../../core/theme/app_text_styles.dart';
import '../../../../core/theme/app_radius.dart';
import '../../../../core/theme/app_gradients.dart';
import '../../../../core/widgets/fs_badge.dart';

class AkinatorBanner extends StatelessWidget {
  const AkinatorBanner({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.fromLTRB(12, 8, 12, 4),
      padding: const EdgeInsets.all(16),
      decoration: BoxDecoration(
        gradient: AppGradients.akinatorBanner,
        border: Border.all(color: AppColors.purple.withOpacity(0.25)),
        borderRadius: AppRadius.mdAll,
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          ShaderMask(
            shaderCallback: (b) => AppGradients.akinatorButton.createShader(b),
            child: Text(
              '🔮 Akinator 2.0',
              style: AppTextStyles.titleLarge.copyWith(
                color: Colors.white,
                fontWeight: FontWeight.w800,
              ),
            ),
          ),
          const SizedBox(height: 6),
          Text(
            '4 expert AI analysts working in parallel — live data, news, risk & strategy.',
            style: AppTextStyles.bodySmall.copyWith(color: AppColors.textSecondary),
          ),
          const SizedBox(height: 10),
          const Wrap(
            spacing: 6,
            runSpacing: 6,
            children: [
              FSBadge(text: '📈 Market Data', variant: FSBadgeVariant.purple),
              FSBadge(text: '📰 News', variant: FSBadgeVariant.blue),
              FSBadge(text: '⚠️ Risk', variant: FSBadgeVariant.orange),
              FSBadge(text: '💼 Strategy', variant: FSBadgeVariant.green),
            ],
          ),
        ],
      ),
    );
  }
}