/**
 * Content Management Utilities
 * 
 * Functions for loading and managing brand content
 */

export interface BrandContent {
  tagline: string
  mission: string
  values: string[]
  promise: string
}

/**
 * Load brand content
 * In production, this could load from CMS, API, or database
 */
export async function loadBrandContent(): Promise<BrandContent> {
  // For now, return static content
  // In production, this would fetch from API, CMS, or database
  return {
    tagline: 'The sovereign cloud born of fire and ancestral wisdom.',
    mission: 'Sankofa Phoenix exists to build the world\'s first sovereign AI cloud infrastructure that honors ancestral wisdom, reflects cultural identity, serves global sovereignty, and transforms through the power of rebirth and return. Sankofa Phoenix is part of the Sankofa ecosystem.',
    values: [
      'Remember: Where we came from',
      'Retrieve: What was essential',
      'Restore: Identity and sovereignty',
      'Rise: Forward with purpose',
    ],
    promise: 'We promise infrastructure that remembers its origins, retrieves ancestral wisdom, restores identity and sovereignty, and rises forward with purpose.',
  }
}

/**
 * Get product name by category
 */
export function getProductName(category: string, index: number): string {
  const productNames: Record<string, string[]> = {
    compute: [
      'PhoenixCore Compute',
      'SankofaEdge Nodes',
      'AkanFire VM Engine',
    ],
    storage: [
      'OkraVault Storage',
      'Nananom Archive',
      'Egg of the Phoenix Object Store',
    ],
    networking: [
      'SankofaGrid Global Mesh',
      'AkanSphere Edge Routing',
      'PhoenixFlight Network Fabric',
    ],
    ai: [
      'Firebird AI Engine',
      'Sankofa Memory Model',
      'Ancestral Neural Fabric',
    ],
    security: [
      'Aegis of Akan Shield',
      'PhoenixGuard IAM',
      'Nsamankom Sentinel',
    ],
    identity: [
      'OkraID',
      'AkanAuth Sovereign Identity Plane',
    ],
  }

  return productNames[category.toLowerCase()]?.[index] || 'Unknown Product'
}

/**
 * Get product description
 */
export function getProductDescription(category: string, index: number): string {
  const descriptions: Record<string, string[]> = {
    compute: [
      'Core compute engine powered by Phoenix fire',
      'Edge nodes that remember and return data',
      'High-performance VMs with Akan heritage',
    ],
    storage: [
      'Storage for the soul of your data',
      'Long-term archival with ancestral memory',
      'Object storage for transformation',
    ],
    networking: [
      'Global network mesh that remembers',
      'Edge routing with cultural intelligence',
      'High-performance network fabric',
    ],
    ai: [
      'AI that transforms like fire',
      'AI models that remember and learn',
      'Distributed AI with ancestral patterns',
    ],
    security: [
      'Comprehensive security platform',
      'Identity and access management',
      'Security monitoring with ancestral protection',
    ],
    identity: [
      'Soul-powered identity framework',
      'Sovereign authentication platform',
    ],
  }

  return descriptions[category.toLowerCase()]?.[index] || 'Product description'
}

