<?php
/**
 * Module Slugs Constants
 *
 * Free build constants only.
 *
 * @package ProRank\SEO\Core\Constants
 * @since   0.1.0
 */

declare(strict_types=1);

namespace ProRank\SEO\Core\Constants;

class ModuleSlugs {
    public const SLUG_DASHBOARD = 'dashboard';
    public const SLUG_ON_PAGE_SEO = 'on-page-seo';
    public const SLUG_TITLES_META = 'titles-meta';
    public const SLUG_BREADCRUMBS = 'breadcrumbs';
    public const SLUG_CONTENT_ANALYSIS = 'content-analysis';
    public const SLUG_SCHEMA_MARKUP = 'schema-markup';
    public const SLUG_INTERNAL_LINKING = 'internal-linking';
    public const SLUG_PERFORMANCE = 'performance';
    public const SLUG_IMAGE_OPTIMIZATION = 'image-optimization';
    public const SLUG_LAZY_LOADING = 'lazy-loading';
    public const SLUG_MINIFICATION = 'minification';
    public const SLUG_TECHNICAL_SEO = 'technical-seo';
    public const SLUG_SITEMAPS = 'sitemaps';
    public const SLUG_REDIRECTS = 'redirects';
    public const SLUG_ROBOTS_TXT = 'robots-txt';
    public const SLUG_SITE_AUDIT = 'site-audit';
    public const SLUG_CRAWL_ERRORS = 'crawl-errors';
    public const SLUG_BROKEN_LINKS = 'broken-links';
    public const SLUG_SECURITY_SCAN = 'security-scan';
    public const SLUG_PERFORMANCE_AUDIT = 'performance-audit';
    public const SLUG_SUPPORT = 'support';

    public const MODULE_DATA = [
        'dashboard' => [
            'name' => 'Dashboard',
            'tier' => 'free',
            'parent' => null,
            'description' => 'SEO overview and insights dashboard',
            'icon_token' => '--pr-icon-dashboard',
        ],
        'on-page-seo' => [
            'name' => 'On-Page SEO',
            'tier' => 'free',
            'parent' => null,
            'description' => 'On-page optimization tools and analysis',
            'icon_token' => '--pr-icon-on-page',
        ],
        'titles-meta' => [
            'name' => 'Titles & Meta',
            'tier' => 'free',
            'parent' => 'on-page-seo',
            'description' => 'Manage page titles and meta descriptions',
            'icon_token' => '--pr-icon-titles-meta',
        ],
        'breadcrumbs' => [
            'name' => 'Breadcrumbs',
            'tier' => 'free',
            'parent' => 'on-page-seo',
            'description' => 'Navigational breadcrumbs with schema markup',
            'icon_token' => '--pr-icon-breadcrumbs',
        ],
        'content-analysis' => [
            'name' => 'Content Analysis',
            'tier' => 'free',
            'parent' => 'on-page-seo',
            'description' => 'Real-time content optimization suggestions',
            'icon_token' => '--pr-icon-content-analysis',
        ],
        'schema-markup' => [
            'name' => 'Schema Markup',
            'tier' => 'free',
            'parent' => 'on-page-seo',
            'description' => 'Structured data and rich snippets',
            'icon_token' => '--pr-icon-schema',
        ],
        'internal-linking' => [
            'name' => 'Internal Linking',
            'tier' => 'free',
            'parent' => 'on-page-seo',
            'description' => 'Internal link suggestions and reports',
            'icon_token' => '--pr-icon-internal-linking',
        ],
        'performance' => [
            'name' => 'Performance',
            'tier' => 'free',
            'parent' => null,
            'description' => 'Site speed and Core Web Vitals optimization',
            'icon_token' => '--pr-icon-performance',
        ],
        'image-optimization' => [
            'name' => 'Image Optimization',
            'tier' => 'free',
            'parent' => 'performance',
            'description' => 'Optimize images for faster loading',
            'icon_token' => '--pr-icon-image-optimize',
        ],
        'lazy-loading' => [
            'name' => 'Lazy Loading',
            'tier' => 'free',
            'parent' => 'performance',
            'description' => 'Defer loading of off-screen content',
            'icon_token' => '--pr-icon-lazy-load',
        ],
        'minification' => [
            'name' => 'Minification',
            'tier' => 'free',
            'parent' => 'performance',
            'description' => 'Minify CSS, JavaScript, and HTML',
            'icon_token' => '--pr-icon-minify',
        ],
        'technical-seo' => [
            'name' => 'Technical SEO',
            'tier' => 'free',
            'parent' => null,
            'description' => 'Technical optimization and site health',
            'icon_token' => '--pr-icon-technical',
        ],
        'sitemaps' => [
            'name' => 'XML Sitemaps',
            'tier' => 'free',
            'parent' => 'technical-seo',
            'description' => 'Automatic XML sitemap generation',
            'icon_token' => '--pr-icon-sitemap',
        ],
        'redirects' => [
            'name' => 'Redirects',
            'tier' => 'free',
            'parent' => 'technical-seo',
            'description' => 'Manage 301 and 302 redirects',
            'icon_token' => '--pr-icon-redirects',
        ],
        'robots-txt' => [
            'name' => 'Robots.txt',
            'tier' => 'free',
            'parent' => 'technical-seo',
            'description' => 'Control crawler directives and indexing rules',
            'icon_token' => '--pr-icon-robots',
        ],
        'site-audit' => [
            'name' => 'Site Audit',
            'tier' => 'free',
            'parent' => null,
            'description' => 'Run local SEO and technical audits',
            'icon_token' => '--pr-icon-audit',
        ],
        'crawl-errors' => [
            'name' => 'Crawl Errors',
            'tier' => 'free',
            'parent' => 'site-audit',
            'description' => 'Review crawl issues discovered by audits',
            'icon_token' => '--pr-icon-crawl-errors',
        ],
        'broken-links' => [
            'name' => 'Broken Links',
            'tier' => 'free',
            'parent' => 'site-audit',
            'description' => 'Track and fix broken internal links',
            'icon_token' => '--pr-icon-broken-links',
        ],
        'security-scan' => [
            'name' => 'Security Scan',
            'tier' => 'free',
            'parent' => 'site-audit',
            'description' => 'Review security-related SEO issues',
            'icon_token' => '--pr-icon-security',
        ],
        'performance-audit' => [
            'name' => 'Performance Audit',
            'tier' => 'free',
            'parent' => 'site-audit',
            'description' => 'Inspect site speed and frontend bottlenecks',
            'icon_token' => '--pr-icon-performance',
        ],
        'support' => [
            'name' => 'Support & Resources',
            'tier' => 'free',
            'parent' => null,
            'description' => 'Documentation, changelog, and diagnostics',
            'icon_token' => '--pr-icon-support',
        ],
    ];
}
