"""
=========================================================
CV6 AI Trading OS
File    : app/core/config.py
Purpose : Global Configuration Manager
Author  : Sasi Kumar
=========================================================
"""

from app.core.settings import settings

# =========================================================
# Application Configuration
# =========================================================

APP_NAME = settings.APP_NAME
APP_VERSION = settings.APP_VERSION
DEBUG = settings.DEBUG

# =========================================================
# Server Configuration
# =========================================================

HOST = settings.HOST
PORT = settings.PORT

# =========================================================
# Security Configuration
# =========================================================

SECRET_KEY = settings.SECRET_KEY

# =========================================================
# Database Configuration
# =========================================================

DATABASE_URL = settings.DATABASE_URL

# =========================================================
# Configuration Dictionary
# =========================================================

CONFIG = {
    "APP_NAME": APP_NAME,
    "APP_VERSION": APP_VERSION,
    "DEBUG": DEBUG,
    "HOST": HOST,
    "PORT": PORT,
    "SECRET_KEY": SECRET_KEY,
    "DATABASE_URL": DATABASE_URL,
}

# =========================================================
# Display Configuration
# =========================================================

def show_config():
    """
    Display the current application configuration.
    (Do not print sensitive values such as SECRET_KEY in production.)
    """

    print("=" * 50)
    print("CV6 AI Trading OS Configuration")
    print("=" * 50)

    print(f"Application : {APP_NAME}")
    print(f"Version     : {APP_VERSION}")
    print(f"Debug       : {DEBUG}")
    print(f"Host        : {HOST}")
    print(f"Port        : {PORT}")
    print(f"Database    : {DATABASE_URL}")

    print("=" * 50)