<?php

return [
    // AI Configuration
    'ai' => [
        'provider' => env('AI_PROVIDER', 'openai'),
    ],

    'openai' => [
        'api_key' => env('OPENAI_API_KEY'),
        'model' => env('OPENAI_MODEL', 'gpt-4o-mini'),
        'temperature' => env('OPENAI_TEMPERATURE', 0.3),
        'max_tokens' => env('OPENAI_MAX_TOKENS', 500),
        'rate_limit_ms' => env('OPENAI_RATE_LIMIT_MS', 50),
    ],

    'openrouter' => [
        'api_key' => env('OPENROUTER_API_KEY'),
        'model' => env('OPENROUTER_MODEL', 'openai/gpt-4o-mini'),
    ],

    // DataForSEO Configuration
    'dataforseo' => [
        'login' => env('DATAFORSEO_LOGIN'),
        'password' => env('DATAFORSEO_PASSWORD'),
        'enabled' => env('DATAFORSEO_ENABLED', false),
        'rate_limit_ms' => env('DATAFORSEO_RATE_LIMIT_MS', 50),
        'cache_days' => env('METRICS_CACHE_DAYS', 7),
    ],

    // Jina.ai Configuration
    'jina' => [
        'api_key' => env('JINA_API_KEY'),
        'rate_limit_ms' => env('JINA_RATE_LIMIT_MS', 100),
        'cache_days' => env('JINA_CACHE_DAYS', 30),
    ],

    // SEO Tool Settings
    'seo' => [
        'min_search_volume' => env('MIN_SEARCH_VOLUME', 50),
        'default_location_code' => env('DEFAULT_LOCATION_CODE', 2840),
        'default_language' => env('DEFAULT_LANGUAGE', 'en'),
        'batch_size' => env('BATCH_SIZE', 10),
        'max_keywords_per_page' => env('MAX_KEYWORDS_PER_PAGE', 20),
        'max_content_length' => env('MAX_CONTENT_LENGTH', 1000),
    ],

    // Excel Export Settings
    'excel' => [
        'temp_path' => env('EXCEL_TEMP_PATH', 'storage/app/exports'),
        'retention_days' => env('EXCEL_RETENTION_DAYS', 7),
    ],
];
