"""Configuration package for RateRight application"""

# Import Config from the correct location to avoid circular imports
def _get_config():
    """Lazy import to avoid circular imports"""
    import importlib.util
    import os
    
    # Get the absolute path to the parent config.py file
    config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'config.py')
    
    # Load the config module
    spec = importlib.util.spec_from_file_location("app_config", config_path)
    config_module = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(config_module)
    
    return config_module.Config

Config = _get_config()

from .achievements import (
    ACHIEVEMENTS,
    get_achievement_by_id,
    check_user_achievements,
    get_user_achievement_progress,
    get_rarity_multiplier,
    get_achievements_by_rarity,
    get_achievement_stats
)

__all__ = [
    'Config',
    'ACHIEVEMENTS',
    'get_achievement_by_id',
    'check_user_achievements', 
    'get_user_achievement_progress',
    'get_rarity_multiplier',
    'get_achievements_by_rarity',
    'get_achievement_stats'
]
