<?php

namespace Database\Seeders\Pages;

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

/**
 * WhatWeDoPageSeeder
 * Seeds the "What We Do" public page.
 */
class WhatWeDoPageSeeder extends Seeder
{
    public function run(): void
    {
        PublishingPage::updateOrCreate(
            ['slug' => 'what-we-do'],
            [
                'title'            => 'What We Do',
                'slug'             => 'what-we-do',
                'is_published'     => true,
                'published_at'     => now(),
                'layout'           => 'default',
                'show_breadcrumbs' => true,
                'show_sidebar'     => false,
                'seo_meta'         => [
                    'meta_title'       => 'What We Do — SSHIA',
                    'meta_description' => 'Discover the programmes, activities, and initiatives of the South Sudan Health Informatics Association — from conferences and training to policy advocacy and research.',
                    'keywords'         => ['SSHIA activities', 'digital health programmes', 'health informatics training', 'South Sudan'],
                ],
                'theme_colors'     => [
                    'primary'   => '#0f766e',
                    'secondary' => '#16a34a',
                ],
                'content_blocks'   => [

                    // ── Hero ──────────────────────────────────────────────────
                    [
                        'type'             => 'hero',
                        'title'            => 'What We Do',
                        'subtitle'         => 'Driving digital health transformation through action, advocacy, and partnership',
                        'height'           => 'medium',
                        'text_alignment'   => 'center',
                        'background_color' => 'from-teal-700 via-teal-800 to-emerald-900',
                        'overlay'          => true,
                        'overlay_opacity'  => 0.4,
                        'buttons'          => [
                            ['label' => 'Our Mission', 'url' => '/pages/mission', 'style' => 'primary', 'icon' => 'bullseye'],
                            ['label' => 'Join SSHIA', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                        ],
                    ],

                    // ── Intro ─────────────────────────────────────────────────
                    [
                        'type'       => 'text',
                        'title'      => 'Our Commitment to Action',
                        'background' => 'white',
                        'max_width'  => 'default',
                        'text_align' => 'center',
                        'content'    => '<p>At the South Sudan Health Informatics Association, we commit ourselves to delivering concrete, measurable activities that advance digital health across South Sudan. Our work spans nine core activity areas — from convening national conferences to advocating for supportive policies and funding.</p>',
                    ],

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

                    // ── Core Activities ───────────────────────────────────────
                    [
                        'type'       => 'card_section',
                        'title'      => 'Our Core Activities',
                        'subtitle'   => 'Nine areas where SSHIA creates impact',
                        'columns'    => 3,
                        'background' => 'gray',
                        'style'      => 'elevated',
                        'cards'      => [
                            [
                                'title'       => 'Conferences & Meetings',
                                'description' => 'We prepare and organise annual conferences and meetings that bring together health informatics professionals, policymakers, and partners to share knowledge, showcase innovations, and set the national agenda for digital health.',
                                'icon'        => 'calendar-alt',
                                'theme_color' => '#0f766e',
                            ],
                            [
                                'title'       => 'National & International Programmes',
                                'description' => 'We coordinate national and international programmes that connect South Sudan\'s digital health ecosystem with global best practices, funding opportunities, and technical expertise.',
                                'icon'        => 'globe',
                                'theme_color' => '#0284c7',
                            ],
                            [
                                'title'       => 'Governance & Membership',
                                'description' => 'We maintain a strong governing board and actively recruit members from across the health and technology sectors, building a diverse and representative professional community.',
                                'icon'        => 'users-cog',
                                'theme_color' => '#7c3aed',
                            ],
                            [
                                'title'       => 'Workshops & Seminars',
                                'description' => 'We organise workshops, seminars, and conferences on digital health topics — from electronic health records and telemedicine to data analytics and health system interoperability.',
                                'icon'        => 'chalkboard-teacher',
                                'theme_color' => '#d97706',
                            ],
                            [
                                'title'       => 'Standards & Regulation',
                                'description' => 'We develop national guidelines and standards for digital health practices, and work to regulate companies and organisations providing digital solutions in South Sudan\'s health sector.',
                                'icon'        => 'file-contract',
                                'theme_color' => '#be185d',
                            ],
                            [
                                'title'       => 'International Partnerships',
                                'description' => 'We establish and maintain partnerships with international and regional digital health bodies, connecting South Sudan to global networks of expertise, resources, and collaboration.',
                                'icon'        => 'handshake',
                                'theme_color' => '#16a34a',
                            ],
                            [
                                'title'       => 'Capacity Building & Certification',
                                'description' => 'We implement capacity-building programmes and certification courses that equip health professionals and technologists with the skills needed to drive digital health transformation.',
                                'icon'        => 'graduation-cap',
                                'theme_color' => '#1d4ed8',
                            ],
                            [
                                'title'       => 'Policy Advocacy',
                                'description' => 'We advocate for supportive digital health policies and funding at national and international levels, ensuring that the enabling environment for digital health is in place.',
                                'icon'        => 'bullhorn',
                                'theme_color' => '#dc2626',
                            ],
                            [
                                'title'       => 'Fundraising & Investment',
                                'description' => 'We conduct fundraising activities to support SSHIA\'s proposed projects and investments, mobilising resources from members, donors, and partners to sustain our programmes.',
                                'icon'        => 'donate',
                                'theme_color' => '#0f766e',
                            ],
                        ],
                    ],

                    // ── Focus Areas ───────────────────────────────────────────
                    [
                        'type'       => 'heading',
                        'level'      => 'h2',
                        'text'       => 'Our Focus Areas',
                        'description'=> 'The thematic domains where SSHIA concentrates its efforts',
                        'alignment'  => 'center',
                        'style'      => 'underline',
                        'theme_color'=> '#0f766e',
                    ],

                    [
                        'type'       => 'tabs',
                        'style'      => 'pills',
                        'default_tab'=> 0,
                        'tabs'       => [
                            [
                                'label'   => 'Digital Health Systems',
                                'icon'    => 'hospital',
                                'title'   => 'Strengthening Digital Health Systems',
                                'content' => '<p>SSHIA works to strengthen the digital health infrastructure of South Sudan by supporting the implementation of electronic health records (EHR), health management information systems (HMIS), and interoperable data platforms that enable seamless information flow across the health system.</p>
<p>We provide technical assistance, training, and advocacy to ensure that digital health systems are implemented effectively, sustainably, and in alignment with national health priorities.</p>',
                            ],
                            [
                                'label'   => 'Professional Development',
                                'icon'    => 'user-graduate',
                                'title'   => 'Professional Development & Certification',
                                'content' => '<p>A skilled workforce is the foundation of a sustainable digital health ecosystem. SSHIA invests in the professional development of health informatics practitioners through structured training programmes, certification courses, mentorship, and continuing education opportunities.</p>
<p>We also advocate for the inclusion of health informatics in university curricula, working with academic institutions to develop programmes that produce qualified graduates ready to contribute to South Sudan\'s digital health transformation.</p>',
                            ],
                            [
                                'label'   => 'Research & Evidence',
                                'icon'    => 'flask',
                                'title'   => 'Research & Evidence Generation',
                                'content' => '<p>Evidence-based decision-making is central to effective health system strengthening. SSHIA supports and conducts research on digital health solutions, their implementation, and their impact in the South Sudanese context.</p>
<p>We publish findings, share knowledge through our platforms, and use evidence to inform policy advocacy and programme design — ensuring that investments in digital health are guided by data and experience.</p>',
                            ],
                            [
                                'label'   => 'Policy & Advocacy',
                                'icon'    => 'landmark',
                                'title'   => 'Policy Development & Advocacy',
                                'content' => '<p>SSHIA engages with government, regulatory bodies, and international partners to shape the policy environment for digital health in South Sudan. We develop national guidelines and standards, advocate for supportive legislation, and work to ensure that digital health is prioritised in national health plans and budgets.</p>
<p>Our advocacy extends to international forums, where we represent South Sudan\'s interests and connect national priorities with global digital health agendas.</p>',
                            ],
                        ],
                    ],

                    // ── CTA ───────────────────────────────────────────────────
                    [
                        'type'             => 'cta',
                        'style'            => 'split',
                        'background_type'  => 'gradient',
                        'background_color' => '#0f766e',
                        'title'            => 'Get Involved',
                        'content'          => 'There are many ways to contribute to SSHIA\'s work — as a member, partner, volunteer, or supporter. Every contribution helps advance digital health in South Sudan.',
                        'buttons'          => [
                            ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                            ['label' => 'Partner With Us', 'url' => '/pages/support', 'style' => 'outline', 'icon' => 'handshake'],
                        ],
                    ],
                ],
            ]
        );
    }
}
