from pydantic_settings import BaseSettings
from typing import List

class Settings(BaseSettings):
    # Service Settings
    SERVICE_NAME: str = "Google Search Service"
    VERSION: str = "1.0.0"
    
    # Kafka Settings
    KAFKA_BOOTSTRAP_SERVERS: List[str] = ["kafka:9092"]
    KAFKA_CONSUMER_GROUP: str = "google-search-group"
    GOOGLE_QUEUE_TOPIC: str = "google-search-queue"
    
    # Search Settings
    MAX_RESULTS_PER_SEARCH: int = 20
    SEARCH_TIMEOUT: int = 30
    
    # Selenium Settings
    HEADLESS_BROWSER: bool = True
    BROWSER_TIMEOUT: int = 30
    
    class Config:
        env_file = ".env"

settings = Settings()
