<?php

namespace Database\Seeders\Pages;

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

/**
 * MissionPageSeeder
 * Seeds the "Mission" public page.
 */
class MissionPageSeeder extends Seeder
{
    public function run(): void
    {
        PublishingPage::updateOrCreate(
            ['slug' => 'mission'],
            [
                'title'            => 'Our Mission',
                'slug'             => 'mission',
                'is_published'     => true,
                'published_at'     => now(),
                'layout'           => 'boxed',
                'show_breadcrumbs' => true,
                'show_sidebar'     => false,
                'seo_meta'         => [
                    'meta_title'       => 'Our Mission — SSHIA',
                    'meta_description' => 'SSHIA\'s mission is to bring together healthcare professionals, technologists, policymakers, and stakeholders to foster innovation, collaboration, and capacity building in digital health.',
                    'keywords'         => ['SSHIA mission', 'digital health collaboration', 'health informatics South Sudan'],
                ],
                'theme_colors'     => [
                    'primary'   => '#16a34a',
                    'secondary' => '#0284c7',
                ],
                'content_blocks'   => [

                    // ── Hero ──────────────────────────────────────────────────
                    [
                        'type'             => 'hero',
                        'title'            => 'Our Mission',
                        'subtitle'         => 'Uniting professionals to transform healthcare through digital innovation',
                        'height'           => 'medium',
                        'text_alignment'   => 'center',
                        'background_color' => 'from-green-700 via-emerald-800 to-teal-900',
                        'overlay'          => true,
                        'overlay_opacity'  => 0.4,
                        'buttons'          => [
                            ['label' => 'Our Vision', 'url' => '/pages/vision', 'style' => 'primary', 'icon' => 'eye'],
                            ['label' => 'What We Do', 'url' => '/pages/what-we-do', 'style' => 'outline', 'icon' => 'tasks'],
                        ],
                    ],

                    // ── Mission Statement ─────────────────────────────────────
                    [
                        'type'   => 'quote',
                        'style'  => 'centered',
                        'quote'  => 'To bring together healthcare professionals, technologists, policymakers, and stakeholders to foster innovation, collaboration, and capacity building in digital health.',
                        'author' => 'SSHIA Mission Statement',
                        'title'  => 'South Sudan Health Informatics Association',
                        'theme_color' => '#16a34a',
                    ],

                    // ── Divider ───────────────────────────────────────────────
                    [
                        'type'   => 'divider',
                        'style'  => 'colored-gradient',
                        'color'  => '#16a34a',
                        'margin' => 'small',
                    ],

                    // ── Mission Pillars ───────────────────────────────────────
                    [
                        'type'       => 'heading',
                        'level'      => 'h2',
                        'text'       => 'The Four Pillars of Our Mission',
                        'description'=> 'Our mission is built on four interconnected communities working together',
                        'alignment'  => 'center',
                        'style'      => 'underline',
                        'theme_color'=> '#16a34a',
                    ],

                    [
                        'type'       => 'card_section',
                        'columns'    => 2,
                        'background' => 'white',
                        'style'      => 'elevated',
                        'cards'      => [
                            [
                                'title'       => 'Healthcare Professionals',
                                'description' => 'Doctors, nurses, public health officers, HMIS specialists, and M&E experts who are the frontline users and champions of digital health tools in South Sudan.',
                                'icon'        => 'user-md',
                                'theme_color' => '#16a34a',
                            ],
                            [
                                'title'       => 'Technologists',
                                'description' => 'Software engineers, IT professionals, data scientists, and digital health developers who build and maintain the systems that power modern healthcare delivery.',
                                'icon'        => 'laptop-code',
                                'theme_color' => '#0284c7',
                            ],
                            [
                                'title'       => 'Policymakers',
                                'description' => 'Government officials, Ministry of Health leadership, and regulatory bodies who create the enabling environment for digital health to thrive.',
                                'icon'        => 'landmark',
                                'theme_color' => '#7c3aed',
                            ],
                            [
                                'title'       => 'Stakeholders',
                                'description' => 'International partners, NGOs, academic institutions, private sector organisations, and community representatives who contribute resources, expertise, and advocacy.',
                                'icon'        => 'network-wired',
                                'theme_color' => '#d97706',
                            ],
                        ],
                    ],

                    // ── How We Deliver ────────────────────────────────────────
                    [
                        'type'       => 'tabs',
                        'title'      => 'How We Deliver Our Mission',
                        'style'      => 'underline',
                        'default_tab'=> 0,
                        'tabs'       => [
                            [
                                'label'   => 'Innovation',
                                'icon'    => 'lightbulb',
                                'title'   => 'Fostering Innovation',
                                'content' => '<p>SSHIA creates spaces where new ideas in digital health can be explored, tested, and scaled. Through hackathons, innovation challenges, and research grants, we support the development of locally relevant digital health solutions that address South Sudan\'s unique healthcare context.</p>
<p>We connect innovators with the resources, mentorship, and networks they need to turn ideas into impact — from mobile health applications to interoperable health information systems.</p>',
                            ],
                            [
                                'label'   => 'Collaboration',
                                'icon'    => 'handshake',
                                'title'   => 'Building Collaboration',
                                'content' => '<p>No single actor can transform a health system alone. SSHIA serves as the convening platform that brings together the diverse stakeholders needed for systemic change — creating forums, working groups, and partnerships that align efforts and multiply impact.</p>
<p>We facilitate collaboration between the Ministry of Health, academic institutions, international partners, and the private sector to ensure that digital health investments are coordinated, complementary, and sustainable.</p>',
                            ],
                            [
                                'label'   => 'Capacity Building',
                                'icon'    => 'chalkboard-teacher',
                                'title'   => 'Strengthening Capacity',
                                'content' => '<p>A sustainable digital health ecosystem requires a skilled workforce. SSHIA invests in people through training programmes, certification courses, mentorship, and professional development opportunities that equip health informatics professionals with the skills they need.</p>
<p>We advocate for the integration of health informatics into university curricula, ensuring a pipeline of qualified professionals for the future.</p>',
                            ],
                        ],
                    ],

                    // ── CTA ───────────────────────────────────────────────────
                    [
                        'type'             => 'cta',
                        'style'            => 'default',
                        'background_type'  => 'gradient',
                        'background_color' => '#16a34a',
                        'title'            => 'Join Our Mission',
                        'content'          => 'Whether you are a health professional, technologist, policymaker, or supporter — there is a place for you in SSHIA. Together, we can build a digitally empowered health system for South Sudan.',
                        'buttons'          => [
                            ['label' => 'Apply for Membership', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                            ['label' => 'What We Do', 'url' => '/pages/what-we-do', 'style' => 'outline', 'icon' => 'tasks'],
                        ],
                        'trust_indicators' => [
                            ['icon' => 'users', 'text' => 'Growing Community'],
                            ['icon' => 'globe', 'text' => 'International Partnerships'],
                            ['icon' => 'graduation-cap', 'text' => 'Professional Development'],
                        ],
                    ],
                ],
            ]
        );
    }
}
