<?php

declare(strict_types=1);

/**
 * Web module translations (en_GB).
 *
 * Key structure: section.subsection.key
 */

return [
    // Common actions
    'actions' => [
        'save' => 'Save',
        'save_changes' => 'Save changes',
        'create' => 'Create',
        'cancel' => 'Cancel',
        'close' => 'Close',
        'delete' => 'Delete',
        'edit' => 'Edit',
        'back' => 'Back',
        'back_to_pages' => 'Back to Pages',
        'preview' => 'Preview',
        'apply' => 'Apply',
        'copy' => 'Copy',
        'copied' => 'Copied',
        'copy_url' => 'Copy URL',
        'link_copied' => 'Link copied to clipboard',
        'duplicate' => 'Duplicate',
        'enable' => 'Enable',
        'disable' => 'Disable',
        'verify' => 'Verify',
        'verify_now' => 'Verify Now',
        'check_dns' => 'Check DNS',
        'regenerate' => 'Regenerate',
        'regenerate_token' => 'Regenerate token',
        'upgrade' => 'Upgrade',
        'upgrade_now' => 'Upgrade Now',
        'unlock' => 'Unlock',
        'add' => 'Add',
        'move' => 'Move',
        'clear' => 'Clear',
        'clear_chat' => 'Clear chat',
        'send' => 'Send',
    ],

    // Common labels
    'labels' => [
        'name' => 'Name',
        'type' => 'Type',
        'status' => 'Status',
        'domain' => 'Domain',
        'url' => 'URL',
        'actions' => 'Actions',
        'created' => 'Created',
        'added' => 'Added',
        'project' => 'Project',
        'colour' => 'Colour',
        'description' => 'Description',
        'required' => 'Required',
        'optional' => 'optional',
        'all' => 'All',
        'none' => 'None',
        'unlimited' => 'Unlimited',
        'filters' => 'Filters',
        'search' => 'Search',
        'loading' => 'Loading...',
    ],

    // Status badges
    'status' => [
        'active' => 'Active',
        'enabled' => 'Enabled',
        'disabled' => 'Disabled',
        'paused' => 'Paused',
        'pending' => 'Pending',
        'verified' => 'Verified',
        'failed' => 'Failed',
        'official' => 'Official',
        'premium' => 'Premium',
        'current_theme' => '(Current theme)',
    ],

    // Domains Manager
    'domains' => [
        'title' => 'Custom Domains',
        'subtitle' => 'Connect your own domains to your pages',
        'add_domain' => 'Add Domain',
        'add_first' => 'Add your first domain',
        'table' => [
            'domain' => 'Domain',
            'status' => 'Status',
            'default_page' => 'Default Page',
            'added' => 'Added',
            'actions' => 'Actions',
        ],
        'empty' => [
            'title' => 'No custom domains',
            'message' => 'Connect your own domain to serve your pages from a custom URL like yourname.com',
        ],
        'modal' => [
            'add_title' => 'Add custom domain',
            'edit_title' => 'Domain Settings',
            'verify_title' => 'Verify :host',
            'domain_label' => 'Domain',
            'domain_placeholder' => 'example.com or links.example.com',
            'domain_hint' => 'Enter the domain without http:// or https://',
            'default_page' => 'Default Page (optional)',
            'default_page_edit' => 'Default Page',
            'no_default' => 'None (use custom URL or 404)',
            'default_hint' => 'Show this page when visitors go to your domain root',
            'custom_index_url' => 'Custom Index URL',
            'custom_index_placeholder' => 'https://example.com',
            'custom_index_hint' => 'Redirect domain root to this URL instead (overrides default page)',
            'custom_404_url' => 'Custom 404 URL',
            'custom_404_placeholder' => 'https://example.com/404',
            'custom_404_hint' => 'Redirect 404 errors to this URL',
        ],
        'verify' => [
            'description' => 'Add one of the following DNS records to verify ownership of your domain.',
            'option_cname' => 'Option 1: CNAME Record (Recommended)',
            'option_cname_hint' => 'Point your domain to our servers. This also routes traffic correctly.',
            'option_txt' => 'Option 2: TXT Record',
            'option_txt_hint' => 'Add a TXT record to verify ownership without changing DNS routing.',
            'dns_type' => 'Type',
            'dns_host' => 'Host/Name',
            'dns_target' => 'Target/Value',
            'dns_value' => 'Value',
            'dns_status' => 'DNS Status',
            'resolves' => 'Resolves:',
            'resolves_yes' => 'Yes',
            'resolves_no' => 'No',
            'dns_propagation' => 'DNS changes can take up to 48 hours to propagate, but usually happen within a few minutes.',
        ],
        'page_not_set' => 'Not set',
        'custom_url' => 'Custom URL',
        'confirm_delete' => 'Are you sure you want to delete this domain? This cannot be undone.',
    ],

    // Short Links
    'short_links' => [
        'title' => 'Short Links',
        'subtitle' => 'Create and manage redirect links',
        'new' => 'New Short Link',
        'create_title' => 'Create Short Link',
        'create_subtitle' => 'Create a shortened URL that redirects to any destination',
        'stats' => [
            'total' => 'Total Links',
            'active' => 'Active',
            'clicks' => 'Total Clicks',
        ],
        'table' => [
            'short_url' => 'Short URL',
            'destination' => 'Destination',
            'clicks' => 'Clicks',
            'status' => 'Status',
            'actions' => 'Actions',
        ],
        'filter' => [
            'project_label' => 'Project:',
            'unassigned' => 'Unassigned',
            'search_placeholder' => 'Search by URL or destination...',
            'status_all' => 'All',
            'status_enabled' => 'Enabled',
            'status_disabled' => 'Disabled',
        ],
        'empty' => [
            'title' => 'No short links yet',
            'message' => 'Create your first short link to start tracking clicks.',
            'action' => 'Create your first short link',
        ],
        'modal' => [
            'title' => 'Create short link',
            'short_url' => 'Short URL',
            'short_url_placeholder' => 'my-link',
            'destination_url' => 'Destination URL',
            'destination_placeholder' => 'https://example.com/your-page',
            'project_optional' => 'Project (optional)',
            'no_project' => 'No project',
        ],
        'form' => [
            'destination_title' => 'Destination',
            'destination_label' => 'Destination URL',
            'destination_hint' => 'The URL visitors will be redirected to when they click your short link.',
            'short_url_title' => 'Short URL',
            'custom_slug' => 'Custom slug',
            'slug_hint' => 'Leave as generated or enter your own custom slug.',
            'preview_label' => 'Your short link will be:',
            'also_available' => 'Also available at:',
            'advanced_options' => 'Advanced options',
            'enable_link' => 'Enable link',
            'enable_hint' => 'When disabled, the link will return a 404 error.',
            'start_date' => 'Start date (optional)',
            'start_date_hint' => 'Link will only work after this date.',
            'end_date' => 'End date (optional)',
            'end_date_hint' => 'Link will stop working after this date.',
            'create_button' => 'Create Short Link',
        ],
        'confirm_delete' => 'Are you sure you want to delete this short link?',
    ],

    // Projects Manager
    'projects' => [
        'title' => 'Projects',
        'subtitle' => 'Organise your pages into folders',
        'new' => 'New Project',
        'create_title' => 'Create new project',
        'edit_title' => 'Edit project',
        'unassigned' => 'Unassigned',
        'unassigned_description' => 'Pages without a project',
        'pages_count' => ':count pages',
        'clicks_count' => ':count clicks',
        'move_to_project' => 'Move to project',
        'view_pages' => 'View pages',
        'created' => 'Created :time',
        'empty' => [
            'title' => 'No projects yet',
            'message' => 'Create a project to organise your pages.',
            'action' => 'Create your first project',
        ],
        'modal' => [
            'name_label' => 'Name',
            'name_placeholder' => 'e.g. Marketing, Personal, Client work',
            'colour_label' => 'Colour',
            'create_button' => 'Create project',
            'save_button' => 'Save changes',
        ],
        'delete' => [
            'title' => 'Delete project',
            'confirm' => 'Are you sure you want to delete :name?',
            'has_pages' => 'This project contains :count pages.',
            'action_label' => 'What should happen to the pages?',
            'keep' => 'Keep pages (move to unassigned)',
            'delete_all' => 'Delete pages permanently',
            'button' => 'Delete project',
        ],
        'move' => [
            'title' => 'Move pages',
            'description' => 'Move all pages from :source to another project.',
            'destination' => 'Destination project',
            'select_placeholder' => 'Select a project...',
            'button' => 'Move pages',
        ],
    ],

    // Pixels Manager
    'pixels' => [
        'title' => 'Tracking Pixels',
        'subtitle' => 'Manage your analytics and conversion tracking pixels',
        'add_pixel' => 'Add Pixel',
        'add_first' => 'Add your first pixel',
        'info' => 'Tracking pixels allow you to monitor visitor behaviour and track conversions on your pages. Create your pixels here, then attach them to individual pages in the editor.',
        'pixel_id' => 'Pixel ID',
        'pages_attached' => ':count :label',
        'empty' => [
            'title' => 'No tracking pixels yet',
            'message' => 'Add your first pixel to start tracking visitor behaviour on your pages.',
        ],
        'modal' => [
            'add_title' => 'Add tracking pixel',
            'edit_title' => 'Edit pixel',
            'type_label' => 'Pixel type',
            'name_label' => 'Name',
            'name_placeholder' => 'e.g. Main website pixel',
            'pixel_id_label' => 'Pixel ID',
            'pixel_id_hint' => 'Find this in your :type dashboard.',
            'add_button' => 'Add pixel',
            'save_button' => 'Save changes',
        ],
        'delete' => [
            'title' => 'Delete pixel',
            'confirm' => 'Are you sure you want to delete :name?',
            'has_pages' => 'This pixel is attached to :count :label and will be removed from all of them.',
            'button' => 'Delete pixel',
        ],
    ],

    // Analytics
    'analytics' => [
        'title' => 'Analytics',
        'period' => [
            '24h' => 'Last 24 hours',
            '7d' => 'Last 7 days',
            '30d' => 'Last 30 days',
            '90d' => 'Last 90 days',
            '1y' => 'Last year',
        ],
        'stats' => [
            'total_clicks' => 'Total Clicks',
            'unique_clicks' => 'Unique Clicks',
        ],
        'chart' => [
            'title' => 'Clicks Over Time',
            'clicks_label' => 'Clicks',
            'unique_label' => 'Unique',
            'empty' => 'No click data for this period',
        ],
        'sections' => [
            'countries' => 'Top Countries',
            'referrers' => 'Top Referrers',
            'devices' => 'Devices',
            'browsers' => 'Browsers',
            'operating_systems' => 'Operating Systems',
            'block_clicks' => 'Clicks by Block',
            'utm_sources' => 'UTM Sources',
            'utm_campaigns' => 'UTM Campaigns',
        ],
        'table' => [
            'block' => 'Block',
            'type' => 'Type',
            'clicks' => 'Clicks',
            'unique' => 'Unique',
        ],
        'empty' => [
            'no_data' => 'No data',
            'no_geographic' => 'No geographic data available',
            'no_referrers' => 'No referrer data available',
            'no_utm_sources' => 'No UTM source data',
            'no_campaigns' => 'No campaign data',
        ],
        'clicks' => 'clicks',
    ],

    // Themes
    'themes' => [
        'title' => 'Theme Gallery',
        'subtitle' => 'Browse and apply themes to your pages',
        'create_theme' => 'Create Theme',
        'create_first' => 'Create your first theme',
        'filter' => [
            'all' => 'All',
            'system' => 'System',
            'premium' => 'Premium',
            'custom' => 'My Themes',
            'search_placeholder' => 'Search themes...',
        ],
        'premium_banner' => [
            'title' => 'Unlock Premium Themes',
            'message' => 'Upgrade to Pro or Ultimate to access all premium themes and create unlimited custom themes.',
        ],
        'sample_button' => 'Sample Button',
        'your_name' => 'Your Name',
        'your_description' => 'Your description goes here',
        'sample_links' => [
            'website' => 'Mod',
            'instagram' => 'Instagram',
            'twitter' => 'Twitter',
        ],
        'empty' => [
            'custom_title' => 'No custom themes yet',
            'custom_message' => 'Create your first custom theme to personalise your pages.',
            'no_themes' => 'No themes found',
            'adjust_filter' => 'Try adjusting your search or filter.',
        ],
        'apply_modal' => [
            'title' => 'Apply ":name"',
            'select_label' => 'Select a page to apply this theme',
            'no_pages' => 'No pages found. Create a page first to apply themes.',
            'apply_selected' => 'Apply to Selected',
            'apply_all' => 'Apply to All',
            'apply_all_confirm' => 'This will apply this theme to all your pages. Continue?',
        ],
        'create_modal' => [
            'title' => 'Create custom theme',
            'name_label' => 'Theme name',
            'name_placeholder' => 'My Custom Theme',
            'hint' => 'This will create a theme with default settings. You can customise it by opening a page and editing the theme from there.',
        ],
        'confirm_delete' => 'Are you sure you want to delete this theme?',
        'apply_theme' => 'Apply Theme',
        'unlock_premium' => 'Unlock Premium',
    ],

    // AI Assistant
    'ai' => [
        'title' => 'AI Assistant',
        'subtitle' => 'Get AI-powered suggestions and improvements for your page',
        'back_to_page' => '← Back to page',
        'credits' => [
            'title' => 'AI Credits',
            'unlimited' => 'Unlimited credits available',
            'remaining' => ':remaining of :limit credits remaining',
            'exhausted' => "You've used all your AI credits this month. Upgrade your plan to continue using AI features.",
        ],
        'quick_actions' => [
            'title' => 'Quick Actions',
        ],
        'chat' => [
            'title' => 'Chat with AI',
            'placeholder' => 'Ask the AI for help...',
            'empty' => 'No messages yet. Try a quick action or send a message.',
        ],
        'help' => [
            'title' => 'How to use the AI Assistant',
            'tips' => [
                'quick_actions' => 'Use quick actions for common tasks like generating page text or improving SEO',
                'credits' => 'Each AI generation uses 1 credit (some actions use more)',
                'reset' => 'Credits reset monthly based on your subscription plan',
                'language' => 'Generated content is in UK English and follows our brand guidelines',
            ],
        ],
    ],

    // Editor
    'editor' => [
        'blocks' => 'Blocks',
        'add_block' => 'Add Block',
        'settings' => 'Settings',
        'theme' => 'Theme',
        'preview' => 'Preview',
        'mobile' => 'Mobile',
        'desktop' => 'Desktop',
        'tablet' => 'Tablet',
        'saving' => 'Saving...',
        'saved' => 'Saved',
        'unsaved_changes' => 'Unsaved changes',
    ],

    // Common confirmations
    'confirm' => [
        'delete_generic' => 'Are you sure you want to delete this?',
        'cannot_undo' => 'This action cannot be undone.',
    ],

    // Tooltips
    'tooltips' => [
        'edit' => 'Edit',
        'delete' => 'Delete',
        'copy_url' => 'Copy URL',
        'qr_code' => 'QR Code',
        'analytics' => 'Analytics',
        'duplicate' => 'Duplicate',
        'verify_domain' => 'Verify domain',
        'edit_settings' => 'Edit settings',
        'actions' => 'Actions',
    ],
];
