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

/// **wine** — Vinotinto
///
/// Premium yacht / aesthetic preference palette. Deep crimson backgrounds
/// with rose accent. IMPORTANT: DISENGAGE switches from red to amber-gold
/// because red blends into the wine cockpit and loses its emergency signal.
/// The amber still carries the "caution/critical action" cognitive association.
const AutopilotTheme wineTheme = AutopilotTheme(
  id: 'wine',
  displayName: 'Vinotinto',

  background: Color(0xFF2A0A14),
  backgroundMid: Color(0xFF2A0A14),
  backgroundDeep: Color(0xFF1A0610),
  backgroundDeepest: Color(0xFF080205),
  backgroundGradient: RadialGradient(
    colors: [Color(0xFF2A0A14), Color(0xFF0F0408)],
    stops: [0.0, 0.7],
  ),

  panelBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xE630121C), Color(0xE614080E)], // rgba(48,18,28,0.9) → rgba(20,8,14,0.9)
  ),
  panelBorder: Color(0x4DBE1746), // rgba(190,23,70,0.3)

  textMain: Color(0xFFFDE0E7),
  textMuted: Color(0xFF8A5560),
  textSoft: Color(0xFFF9A8B8),
  textDisabled: Color(0xFF6A3848),

  accentLight: Color(0xFFFB7185),
  accentMid: Color(0xFFE11D48),
  accentDark: Color(0xFF881337),
  accentGlowRadius: 18.0,
  accentGlowColor: Color(0xB3E11D48), // rgba(225,29,72,0.7)

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

  okColor: Color(0xFFFBBF24),  // gold not green — keeps warm palette
  warnColor: Color(0xFFFBBF24),
  northColor: Color(0xFFFDE047), // yellow not red — red is lost on wine background

  // DISENGAGE: amber-gold instead of red — highest contrast on wine cockpit
  disengageBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFFFBBF24), Color(0xFFB45309)],
  ),
  disengageText: Color(0xFF1C0A02), // near-black — maximum contrast on amber
  disengageBorder: Color(0xFFFDE047),
  disengageGlow: Color(0x99FBBF24),

  actionButtonBackground: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xFF7A1F3A), Color(0xFF3A0E1C)], // improved contrast
  ),
  actionButtonBorder: Color(0xFFFB7185), // vivid rose border
  actionButtonText: Color(0xFFFDE0E7),
  actionButtonGlow: Color(0x66FB7185),
);
