<?php

namespace Database\Seeders;

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

class HomepageThemeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $themes = [
            [
                'name' => 'modern',
                'label' => 'Modern',
                'description' => 'Modern gradient tasarım, mavi tonlar, animasyonlu geçişler',
                'is_active' => true,
                'sort_order' => 1,
                'hero_bg_gradient' => 'linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #1a3a52 100%)',
                'hero_title_color' => '#ffffff',
                'hero_subtitle_color' => 'rgba(255,255,255,0.85)',
                'primary_color' => '#3b82f6',
                'accent_color' => '#2563eb',
                'background_color' => '#ffffff',
                'text_color' => '#0f172a',
                'border_color' => '#e5e7eb',
                'hero_style' => 'modern',
                'card_style' => 'elevated',
                'button_style' => 'gradient',
                'show_animations' => true,
                'font_family' => 'Inter',
                'custom_css' => null,
                'hero_html_override' => null,
            ],
            [
                'name' => 'classic',
                'label' => 'Classic',
                'description' => 'Klasik beyaz tasarım, temiz ve profesyonel görünüm',
                'is_active' => false,
                'sort_order' => 2,
                'hero_bg_gradient' => 'linear-gradient(180deg, #f8fafc 0%, #ffffff 100%)',
                'hero_title_color' => '#1e293b',
                'hero_subtitle_color' => '#64748b',
                'primary_color' => '#1e293b',
                'accent_color' => '#334155',
                'background_color' => '#ffffff',
                'text_color' => '#1e293b',
                'border_color' => '#e2e8f0',
                'hero_style' => 'classic',
                'card_style' => 'flat',
                'button_style' => 'solid',
                'show_animations' => false,
                'font_family' => 'Georgia',
                'custom_css' => null,
                'hero_html_override' => null,
            ],
            [
                'name' => 'minimal',
                'label' => 'Minimal',
                'description' => 'Minimalist tasarım, az renk, odaklanmış içerik',
                'is_active' => false,
                'sort_order' => 3,
                'hero_bg_gradient' => 'linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%)',
                'hero_title_color' => '#111111',
                'hero_subtitle_color' => '#666666',
                'primary_color' => '#111111',
                'accent_color' => '#333333',
                'background_color' => '#fafafa',
                'text_color' => '#111111',
                'border_color' => '#eeeeee',
                'hero_style' => 'minimal',
                'card_style' => 'outlined',
                'button_style' => 'outlined',
                'show_animations' => false,
                'font_family' => 'system-ui',
                'custom_css' => null,
                'hero_html_override' => null,
            ],
            [
                'name' => 'colorful',
                'label' => 'Colorful',
                'description' => 'Canlı renkler, mor ve turuncu tonlar, enerjik tasarım',
                'is_active' => false,
                'sort_order' => 4,
                'hero_bg_gradient' => 'linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%)',
                'hero_title_color' => '#ffffff',
                'hero_subtitle_color' => 'rgba(255,255,255,0.9)',
                'primary_color' => '#667eea',
                'accent_color' => '#764ba2',
                'background_color' => '#faf5ff',
                'text_color' => '#1a1a2e',
                'border_color' => '#e9d5ff',
                'hero_style' => 'gradient',
                'card_style' => 'elevated',
                'button_style' => 'gradient',
                'show_animations' => true,
                'font_family' => 'Poppins',
                'custom_css' => null,
                'hero_html_override' => null,
            ],
        ];

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