<?php

namespace RistrettoApps\Spawnster\Base;

final class Constants
{
    const SPAWNSTER_OPTION_OPENAPI_KEY = 'spawnster-openai-api-key';
    const SPAWNSTER_ADMIN_URL = 'admin.php?page=spawnster';
    const SPAWNSTER_ADMIN_SETTINGS = self::SPAWNSTER_ADMIN_URL . '&view=settings';
    const SPAWNSTER_ADMIN_SETUP_WEBSITE = self::SPAWNSTER_ADMIN_URL . '&view=setup-your-website';
    const SPAWNSTER_ADMIN_SETUP_PAGES= self::SPAWNSTER_ADMIN_URL . '&view=setup-your-pages';
    const SPAWNSTER_SETUP_YOUR_WEBSITE_KEY = 'spawnster-setup-your-website';
    const SPAWNSTER_SETUP_YOUR_PAGES_KEY = 'spawnster-setup-your-pages-response';
    const SPAWNSTER_PAGE_NAME_REQUEST = 'spawnster-page-name-request';
    const SPAWNSTER_PAGE_DESCRIPTION_REQUEST = 'spawnster-page-description-request';
    const SPAWNSTER_GENERATED_CONTENT_KEY = 'spawnster-generated-content-';
    const SPAWNSTER_GENERATED_HEADING_KEY = 'spawnster-generated-heading-';
    const SPAWNSTER_UPDATED_CONTENT_KEY = 'spawnster-updated-content-';
    const SPAWNSTER_OPTION_DEFAULT_LANGUAGE = 'spawnster-default-language';
    const SPAWNSTER_OPTION_LOGGING_ENABLED = 'spawnster-logging-enabled';
    
    // Logo URL
    const SPAWNSTER_LOGO_URL = 'admin/images/spawnster-logo.png';
    
    // Remote API configuration
    const SPAWNSTER_REMOTE_GOOGLE_API_URL = 'https://sgs.ristrettoapps.com/auth/sdfgnaw2l23.json';
    
    /**
     * Get the complete logo URL - ready to use in templates
     * 
     * @return string Complete logo URL
     */
    public static function logo(): string
    {
        return plugin_dir_url(dirname(dirname(__FILE__))) . self::SPAWNSTER_LOGO_URL;
    }
}