import React, { useState } from 'react'; import { Palette, Copy, Check, Sun, Smile, CheckCircle2, Brush } from 'lucide-react'; import { COLOR_PALETTE, ART_DIRECTION_GUIDE, CHARACTERS } from '../data/storyData'; import { soundManager } from '../utils/audio'; interface ArtDirectionViewProps { isBedtimeMode: boolean; } export const ArtDirectionView: React.FC = ({ isBedtimeMode }) => { const [copiedHex, setCopiedHex] = useState(null); const [customStyle, setCustomStyle] = useState('digital-gouache'); const [customSubject, setCustomSubject] = useState('Pip holding his willow brush looking at Caelum'); const [customMood, setCustomMood] = useState('Warm golden twilight'); const handleCopyHex = (hex: string) => { soundManager.playPop(); navigator.clipboard.writeText(hex); setCopiedHex(hex); setTimeout(() => setCopiedHex(null), 2000); }; const generatedCustomPrompt = `Whimsical children's picture book illustration of ${customSubject}. ${customMood}, in ${customStyle === 'digital-gouache' ? 'soft digital gouache and textured watercolor' : customStyle === 'classic-pastel' ? 'classic soft oil pastel with hand-drawn colored pencil contours' : 'dreamy storybook gouache with visible paper tooth grain'}. Color palette featuring ${COLOR_PALETTE.map(c => c.name).slice(0, 3).join(', ')}. Friendly character expressions, gentle magical atmosphere, heartwarming children's literature style.`; return (
{/* Header */}
Art & Visual Direction Bible {ART_DIRECTION_GUIDE.styleName}

Color Palette, Expressions & Artistic Philosophy

Detailed art notes crafted so that any illustrator or AI visual model can render consistent, heartwarming, award-winning storybook spreads.

{/* Master Color Palette Section */}

Master Storybook Color Palette

Click any swatch to copy Hex
{COLOR_PALETTE.map((swatch) => (
handleCopyHex(swatch.hex)} className="p-4 rounded-2xl border border-stone-200 dark:border-indigo-800 bg-stone-50 dark:bg-indigo-950/40 hover:shadow-md cursor-pointer transition-all group" >

{swatch.name}

{swatch.hex} {copiedHex === swatch.hex ? ( ) : ( )}

Usage: {swatch.usage}

Mood: {swatch.mood}

))}
{/* Character Expression & Anatomy Guidelines */}

Character Expression & Visual Identity Rules

{CHARACTERS.map((char) => (
{char.avatarEmoji}

{char.name}

{char.role}
{char.species}

Key Visual Markers: {char.appearance}

Signature Gesture / Quirk: {char.quirk}

Emotional Color Transition: {char.name === 'Pip' ? 'Quills ripple like grass when inspired; scarf flaps cheerfully.' : char.name === 'Caelum' ? 'Shifts from misty slate-gray (timid) to soft lavender (shy) to radiant sunset gold and rosé (confident).' : char.name === 'Barnaby' ? 'Eyes crinkle warmly into crescents; spectacles catch amber rim-light.' : 'Wings flutter in excited loops; chest puffs with sky-blue pride.'}

))}
{/* Golden Rules Box */}
Core Principles for the Children's Illustrator
No Harsh Black Outlines: Use deep sepia, indigo, or forest bark for line work.
Tactile Paper Texture: Retain visible rag-paper tooth and watercolor bloom edges.
Gentle Scale & Proximity: Caelum hovers close to the grass to invite cuddles.
{/* Lighting Keys Across The Story */}

Lighting & Atmospheric Keys Across Acts

{ART_DIRECTION_GUIDE.lightingKeys.map((key, idx) => (
{key.scene} {key.colorTemp}

{key.mood}

{key.description}

))}
{/* Interactive Storybook Prompt Builder */}

Interactive Illustration Prompt Builder

Generate new children's book scene prompts matching this art bible

setCustomSubject(e.target.value)} className="w-full px-3 py-2 text-sm rounded-xl border border-stone-300 dark:border-indigo-700 bg-stone-50 dark:bg-indigo-950 text-stone-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-amber-500" />
Generated Artist / AI Prompt:

"{generatedCustomPrompt}"

); };