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

/// **cyan** — Cockpit cian (default)
///
/// The default factory theme. Matches the visual language of professional
/// marine electronics (Raymarine, Garmin, Simrad). Neon cyan on deep navy.
/// Used for twilight / night operation with ambient lighting.
const AutopilotTheme cyanTheme = AutopilotTheme(
  id: 'cyan',
  displayName: 'Cockpit cian',

  background: Color(0xFF0D1822),
  backgroundMid: Color(0xFF0F172A),
  backgroundDeep: Color(0xFF0A1220),
  backgroundDeepest: Color(0xFF020610),
  backgroundGradient: RadialGradient(
    colors: [Color(0xFF0D1822), Color(0xFF050810)],
    stops: [0.0, 0.7],
  ),

  panelBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xE6142030), Color(0xE608101C)], // rgba(20,32,48,0.9) → rgba(8,16,28,0.9)
  ),
  panelBorder: Color(0x4038BDF8), // rgba(56,189,248,0.25)

  textMain: Color(0xFFE0F2FE),
  textMuted: Color(0xFF64748B),
  textSoft: Color(0xFFCBD5E1),
  textDisabled: Color(0xFF475569),

  accentLight: Color(0xFF7DD3FC),
  accentMid: Color(0xFF0EA5E9),
  accentDark: Color(0xFF0369A1),
  accentGlowRadius: 16.0,
  accentGlowColor: Color(0x9938BDF8), // rgba(56,189,248,0.6)

  setLight: Color(0xFFFBBF24),
  setDark: Color(0xFFA16207),
  setGlow: Color(0x66FBBF24),

  okColor: Color(0xFF4ADE80),
  warnColor: Color(0xFFFBBF24),
  northColor: Color(0xFFF87171),

  disengageBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFFDC2626), Color(0xFF7F1D1D)],
  ),
  disengageText: Color(0xFFFFFFFF),
  disengageBorder: Color(0xFFF87171),
  disengageGlow: Color(0x80DC2626),

  actionButtonBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFF1E4A72), Color(0xFF0C2540)], // improved contrast
  ),
  actionButtonBorder: Color(0xFF38BDF8), // accented border, 1px
  actionButtonText: Color(0xFFE0F2FE),
  actionButtonGlow: Color(0x667DD3FC), // subtle text-shadow
);
