package com.horrortv.app.util

object Constants {
    const val OMDB_API_KEY = "5854c81e"
    const val OMDB_BASE_URL = "https://www.omdbapi.com/"
    
    val HORROR_CATEGORIES = listOf(
        "Scream",
        "Halloween",
        "Conjuring",
        "Exorcist",
        "Nightmare",
        "Insidious",
        "Terrifier",
        "Hereditary",
        "It",
        "Poltergeist",
        "Saw",
        "Paranormal"
    )
    
    val IMDB_ID_PATTERN = Regex("^tt\\d{7,8}$")
    
    object Network {
        const val CONNECT_TIMEOUT_SECONDS = 15L
        const val READ_TIMEOUT_SECONDS = 30L
        const val WRITE_TIMEOUT_SECONDS = 30L
        const val CACHE_SIZE_BYTES = 10 * 1024 * 1024L
        const val MAX_RETRIES = 2
        const val RETRY_DELAY_MS = 1000L
    }
    
    object Cache {
        const val CATEGORY_CACHE_HOURS = 12L
        const val SEARCH_CACHE_HOURS = 4L
        const val DETAIL_CACHE_HOURS = 24L
        const val CATEGORY_CACHE_SIZE = 20
        const val SEARCH_CACHE_SIZE = 50
        const val DETAIL_CACHE_SIZE = 100
    }
}