import 'dart:ui';
import 'package:flutter/material.dart';

class AppShadows {
  AppShadows._();

  static List<BoxShadow> get elevation1 => [
    BoxShadow(color: Colors.black.withValues(alpha: 0.4), blurRadius: 30, offset: const Offset(0, 4)),
  ];
  static List<BoxShadow> get elevation2 => [
    BoxShadow(color: Colors.black.withValues(alpha: 0.55), blurRadius: 50, offset: const Offset(0, 12)),
  ];
  static List<BoxShadow> get elevation3 => [
    BoxShadow(color: Colors.black.withValues(alpha: 0.7), blurRadius: 80, offset: const Offset(0, 24)),
  ];
  static List<BoxShadow> get glowBlue => [
    BoxShadow(color: const Color(0xFF3366FF).withValues(alpha: 0.35), blurRadius: 40),
  ];
  static List<BoxShadow> get glowGold => [
    BoxShadow(color: const Color(0xFFD4AF37).withValues(alpha: 0.3), blurRadius: 30),
  ];
}

class GlassDecoration {
  GlassDecoration._();

  static BoxDecoration card({double borderRadius = 20, bool highlighted = false}) {
    return BoxDecoration(
      color: Colors.white.withValues(alpha: 0.07),
      borderRadius: BorderRadius.circular(borderRadius),
      border: Border.all(
        color: highlighted
            ? const Color(0xFFC9A84C).withValues(alpha: 0.35)
            : const Color(0xFF648CFF).withValues(alpha: 0.15),
      ),
      boxShadow: AppShadows.elevation1,
    );
  }

  static BoxDecoration navBar() {
    return BoxDecoration(
      color: const Color(0xFF0A1628).withValues(alpha: 0.85),
      borderRadius: BorderRadius.circular(24),
      border: Border.all(color: const Color(0xFF648CFF).withValues(alpha: 0.15)),
      boxShadow: AppShadows.elevation2,
    );
  }
}
