<?php

namespace Database\Seeders;

use App\Models\Theme;
use Illuminate\Database\Seeder;

class ThemeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $themes = [
            [
                'name' => 'Ocean Blue',
                'slug' => 'ocean-blue',
                'description' => 'A calming blue theme inspired by the ocean',
                'is_active' => true,
                'primary_color' => '#0ea5e9',
                'secondary_color' => '#0284c7',
                'accent_color' => '#06b6d4',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1e293b',
                'font_color_heading' => '#0f172a',
                'font_color_link' => '#0ea5e9',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#f8fafc',
                'background_card_hero' => 'linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%)',
                'background_sidebar' => '#0f172a',
                'background_header' => '#ffffff',
                'background_footer' => '#0f172a',
                'scrollbar_track_color' => '#e2e8f0',
                'scrollbar_thumb_color' => '#0ea5e9',
                'scrollbar_width' => '8px',
                'divider_color' => '#e2e8f0',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Forest Green',
                'slug' => 'forest-green',
                'description' => 'A natural green palette inspired by forests',
                'is_active' => false,
                'primary_color' => '#10b981',
                'secondary_color' => '#059669',
                'accent_color' => '#34d399',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#10b981',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#f0fdf4',
                'background_card_hero' => 'linear-gradient(135deg, #10b981 0%, #34d399 100%)',
                'background_sidebar' => '#064e3b',
                'background_header' => '#ffffff',
                'background_footer' => '#064e3b',
                'scrollbar_track_color' => '#d1fae5',
                'scrollbar_thumb_color' => '#10b981',
                'scrollbar_width' => '8px',
                'divider_color' => '#d1fae5',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Sunset Orange',
                'slug' => 'sunset-orange',
                'description' => 'Warm orange and red tones inspired by sunsets',
                'is_active' => false,
                'primary_color' => '#f97316',
                'secondary_color' => '#ea580c',
                'accent_color' => '#fb923c',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#f97316',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#fff7ed',
                'background_card_hero' => 'linear-gradient(135deg, #f97316 0%, #fb923c 100%)',
                'background_sidebar' => '#7c2d12',
                'background_header' => '#ffffff',
                'background_footer' => '#7c2d12',
                'scrollbar_track_color' => '#fed7aa',
                'scrollbar_thumb_color' => '#f97316',
                'scrollbar_width' => '8px',
                'divider_color' => '#fed7aa',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Royal Purple',
                'slug' => 'royal-purple',
                'description' => 'Elegant purple shades for a regal appearance',
                'is_active' => false,
                'primary_color' => '#8b5cf6',
                'secondary_color' => '#7c3aed',
                'accent_color' => '#a78bfa',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#8b5cf6',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#faf5ff',
                'background_card_hero' => 'linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%)',
                'background_sidebar' => '#4c1d95',
                'background_header' => '#ffffff',
                'background_footer' => '#4c1d95',
                'scrollbar_track_color' => '#e9d5ff',
                'scrollbar_thumb_color' => '#8b5cf6',
                'scrollbar_width' => '8px',
                'divider_color' => '#e9d5ff',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Midnight Dark',
                'slug' => 'midnight-dark',
                'description' => 'Dark mode with deep blues for night owls',
                'is_active' => false,
                'primary_color' => '#3b82f6',
                'secondary_color' => '#2563eb',
                'accent_color' => '#60a5fa',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#e5e7eb',
                'font_color_heading' => '#f9fafb',
                'font_color_link' => '#60a5fa',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#111827',
                'background_card' => '#1f2937',
                'background_card_hero' => 'linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%)',
                'background_sidebar' => '#0f172a',
                'background_header' => '#1f2937',
                'background_footer' => '#0f172a',
                'scrollbar_track_color' => '#374151',
                'scrollbar_thumb_color' => '#3b82f6',
                'scrollbar_width' => '8px',
                'divider_color' => '#374151',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Corporate Gray',
                'slug' => 'corporate-gray',
                'description' => 'Professional gray scale for business environments',
                'is_active' => false,
                'primary_color' => '#64748b',
                'secondary_color' => '#475569',
                'accent_color' => '#94a3b8',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1e293b',
                'font_color_heading' => '#0f172a',
                'font_color_link' => '#64748b',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#f8fafc',
                'background_card_hero' => 'linear-gradient(135deg, #64748b 0%, #94a3b8 100%)',
                'background_sidebar' => '#1e293b',
                'background_header' => '#ffffff',
                'background_footer' => '#1e293b',
                'scrollbar_track_color' => '#e2e8f0',
                'scrollbar_thumb_color' => '#64748b',
                'scrollbar_width' => '8px',
                'divider_color' => '#e2e8f0',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Cherry Blossom',
                'slug' => 'cherry-blossom',
                'description' => 'Soft pink and white inspired by cherry blossoms',
                'is_active' => false,
                'primary_color' => '#ec4899',
                'secondary_color' => '#db2777',
                'accent_color' => '#f472b6',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#ec4899',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#fdf2f8',
                'background_card_hero' => 'linear-gradient(135deg, #ec4899 0%, #f472b6 100%)',
                'background_sidebar' => '#831843',
                'background_header' => '#ffffff',
                'background_footer' => '#831843',
                'scrollbar_track_color' => '#fce7f3',
                'scrollbar_thumb_color' => '#ec4899',
                'scrollbar_width' => '8px',
                'divider_color' => '#fce7f3',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Desert Sand',
                'slug' => 'desert-sand',
                'description' => 'Warm earth tones inspired by desert landscapes',
                'is_active' => false,
                'primary_color' => '#d97706',
                'secondary_color' => '#b45309',
                'accent_color' => '#f59e0b',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#d97706',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#fffbeb',
                'background_card_hero' => 'linear-gradient(135deg, #d97706 0%, #f59e0b 100%)',
                'background_sidebar' => '#78350f',
                'background_header' => '#ffffff',
                'background_footer' => '#78350f',
                'scrollbar_track_color' => '#fef3c7',
                'scrollbar_thumb_color' => '#d97706',
                'scrollbar_width' => '8px',
                'divider_color' => '#fef3c7',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Arctic White',
                'slug' => 'arctic-white',
                'description' => 'Clean minimal white theme for simplicity',
                'is_active' => false,
                'primary_color' => '#3b82f6',
                'secondary_color' => '#2563eb',
                'accent_color' => '#60a5fa',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#374151',
                'font_color_heading' => '#111827',
                'font_color_link' => '#3b82f6',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#f9fafb',
                'background_card_hero' => 'linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)',
                'background_sidebar' => '#f9fafb',
                'background_header' => '#ffffff',
                'background_footer' => '#f9fafb',
                'scrollbar_track_color' => '#f3f4f6',
                'scrollbar_thumb_color' => '#9ca3af',
                'scrollbar_width' => '8px',
                'divider_color' => '#e5e7eb',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
            [
                'name' => 'Crimson Red',
                'slug' => 'crimson-red',
                'description' => 'Bold red accents for a striking appearance',
                'is_active' => false,
                'primary_color' => '#dc2626',
                'secondary_color' => '#b91c1c',
                'accent_color' => '#ef4444',
                'font_family_body' => 'Inter, sans-serif',
                'font_family_heading' => 'Poppins, sans-serif',
                'font_color_body' => '#1f2937',
                'font_color_heading' => '#111827',
                'font_color_link' => '#dc2626',
                'heading_size_scale' => [
                    'h1' => '2.5rem',
                    'h2' => '2rem',
                    'h3' => '1.75rem',
                    'h4' => '1.5rem',
                    'h5' => '1.25rem',
                    'h6' => '1rem',
                ],
                'heading_weight' => '600',
                'heading_spacing' => '0.05em',
                'background_body' => '#ffffff',
                'background_card' => '#fef2f2',
                'background_card_hero' => 'linear-gradient(135deg, #dc2626 0%, #ef4444 100%)',
                'background_sidebar' => '#7f1d1d',
                'background_header' => '#ffffff',
                'background_footer' => '#7f1d1d',
                'scrollbar_track_color' => '#fee2e2',
                'scrollbar_thumb_color' => '#dc2626',
                'scrollbar_width' => '8px',
                'divider_color' => '#fee2e2',
                'divider_style' => 'solid',
                'divider_width' => '1px',
            ],
        ];

        foreach ($themes as $theme) {
            Theme::updateOrCreate(
                ['slug' => $theme['slug']],
                $theme
            );
        }
    }
}
