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

/// **light** — Claro (día)
///
/// Daytime operation under direct sunlight. Navy-blue accent on cream white.
/// No glow effects — bloom is invisible and distracting in bright ambient light.
const AutopilotTheme lightTheme = AutopilotTheme(
  id: 'light',
  displayName: 'Claro (día)',

  background: Color(0xFFF5F4EE),
  backgroundMid: Color(0xFFFFFFFF),
  backgroundDeep: Color(0xFFF1EFE8),
  backgroundDeepest: Color(0xFFE8E6DD),
  backgroundGradient: null, // solid background — no gradient in light mode

  panelBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFFFFFFFF), Color(0xFFFFFFFF)],
  ),
  panelBorder: Color(0x1F000000), // rgba(0,0,0,0.12)

  textMain: Color(0xFF2C2C2A),
  textMuted: Color(0xFF6B6862),
  textSoft: Color(0xFF2C2C2A),
  textDisabled: Color(0xFFB4B2A9),

  accentLight: Color(0xFF378ADD),
  accentMid: Color(0xFF185FA5),
  accentDark: Color(0xFF0C447C),
  accentGlowRadius: 0.0, // no glow in daytime mode
  accentGlowColor: Colors.transparent,

  setLight: Color(0xFFCA8A04),
  setDark: Color(0xFF854F0B),
  setGlow: Color(0x33CA8A04),

  okColor: Color(0xFF15803D),
  warnColor: Color(0xFFCA8A04),
  northColor: Color(0xFFB91C1C),

  disengageBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFFDC2626), Color(0xFF991B1B)],
  ),
  disengageText: Color(0xFFFFFFFF),
  disengageBorder: Color(0xFFEF4444),
  disengageGlow: Color(0x4DDC2626),

  actionButtonBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFFFFFFFF), Color(0xFFF1EFE8)],
  ),
  actionButtonBorder: Color(0x33000000), // 0.2 alpha — more visible than 0.12
  actionButtonText: Color(0xFF2C2C2A),
  actionButtonGlow: Colors.transparent,
);
