<?php

namespace Database\Seeders;

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

class SliderSeeder extends Seeder
{
    public function run(): void
    {
        Slider::firstOrCreate(
            ['title' => 'Temukan Gaya & Teknologi Terkini'],
            [
                'tag' => 'Weekend Promo - Diskon 50%',
                'subtitle' => 'Dapatkan produk berkualitas premium mulai dari kebutuhan fashion terkini hingga gadget berspesifikasi tinggi. Pengiriman cepat dan garansi uang kembali.',
                'image_path' => 'https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&q=80&w=1200',
                'bg_gradient' => 'from-slate-900 via-indigo-950 to-slate-900',
                'button_text' => 'Belanja Sekarang',
                'link_url' => '/products',
                'tag_color' => 'bg-indigo-500/20 text-indigo-300 border-indigo-500/30',
                'accent_text' => 'Teknologi Terkini',
                'accent_gradient' => 'from-indigo-400 via-purple-300 to-emerald-400',
                'order' => 0,
                'is_active' => true
            ]
        );

        Slider::firstOrCreate(
            ['title' => 'Tampil Modis & Elegan Setiap Hari'],
            [
                'tag' => 'Fashion Trend 2026',
                'subtitle' => 'Jelajahi koleksi busana modern pilihan terbaik dengan diskon spesial hingga 30%. Nyaman dipakai, kualitas terjamin.',
                'image_path' => 'https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&q=80&w=1200',
                'bg_gradient' => 'from-emerald-950 via-slate-900 to-indigo-950',
                'button_text' => 'Lihat Koleksi',
                'link_url' => '/products?category_slug=fashion',
                'tag_color' => 'bg-emerald-500/20 text-emerald-300 border-emerald-500/30',
                'accent_text' => 'Gaya Hidup Modern',
                'accent_gradient' => 'from-emerald-400 via-teal-300 to-indigo-400',
                'order' => 1,
                'is_active' => true
            ]
        );

        Slider::firstOrCreate(
            ['title' => 'Upgrade Gadget Impianmu Sekarang'],
            [
                'tag' => 'Promo Gadget Spesial',
                'subtitle' => 'Nikmati potongan langsung hingga 10% untuk berbagai gadget terbaru dan aksesoris pintar terbaik di kelasnya.',
                'image_path' => 'https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&q=80&w=1200',
                'bg_gradient' => 'from-indigo-950 via-slate-900 to-rose-950',
                'button_text' => 'Temukan Gadget',
                'link_url' => '/products?category_slug=electronics',
                'tag_color' => 'bg-rose-500/20 text-rose-300 border-rose-500/30',
                'accent_text' => 'Performa Maksimal',
                'accent_gradient' => 'from-rose-400 via-purple-300 to-amber-400',
                'order' => 2,
                'is_active' => true
            ]
        );
    }
}
