"""
Reddit Growth Engine Configuration — [PRODUCT NAME]
====================================================
Fill in all sections below, then save as config.py in your product's reddit-growth folder.
"""

import os

# ============================================================
# YOUR REDDIT USERNAME
# ============================================================
REDDIT_USERNAME = os.getenv("REDDIT_USERNAME", "Your-Username-Here")

# ============================================================
# BRAND
# ============================================================
BRAND_NAME = "YourProduct"
BRAND_DISCLOSURE = "Disclosure: I work at YourProduct, which also does this."

# ============================================================
# SUBREDDIT TARGETS
# ============================================================
# Tier 1: Core audience — these people have the exact problem you solve
# Tier 2: Adjacent/bridge — related professionals, easier entry
# Tier 3: Karma builders — big general subs for early karma (NEVER brand mention)
# Tier 4: Niche/sleeper — low competition, high relevance

TIER_1_SUBS = [
    # {"name": "yourmainsub", "min_karma": 300, "tone": "professional", "brand_ok": True},
    # {"name": "targetaudience", "min_karma": 200, "tone": "helpful_expert", "brand_ok": True},
]

TIER_2_SUBS = [
    # {"name": "adjacentsub", "min_karma": 100, "tone": "peer_professional", "brand_ok": True},
    # {"name": "relatedsub", "min_karma": 100, "tone": "casual_expert", "brand_ok": False},
]

TIER_3_SUBS = [
    {"name": "AskReddit", "min_karma": 0, "tone": "casual_witty", "brand_ok": False},
    {"name": "NoStupidQuestions", "min_karma": 0, "tone": "helpful", "brand_ok": False},
    {"name": "todayilearned", "min_karma": 0, "tone": "casual", "brand_ok": False},
    {"name": "LifeProTips", "min_karma": 0, "tone": "helpful", "brand_ok": False},
    {"name": "Showerthoughts", "min_karma": 0, "tone": "witty", "brand_ok": False},
]

TIER_4_SUBS = [
    # {"name": "nichesub", "min_karma": 150, "tone": "professional", "brand_ok": True},
]

ALL_SUBS = (
    [{"tier": 1, **s} for s in TIER_1_SUBS] +
    [{"tier": 2, **s} for s in TIER_2_SUBS] +
    [{"tier": 3, **s} for s in TIER_3_SUBS] +
    [{"tier": 4, **s} for s in TIER_4_SUBS]
)

# ============================================================
# PAIN-POINT KEYWORDS
# ============================================================
# High Intent: Actively seeking a solution
HIGH_INTENT_KEYWORDS = [
    # "your software recommendation", "alternative to competitor",
    # "best tool for X", "looking for Y solution",
]

# Medium Intent: Experiencing the pain
MEDIUM_INTENT_KEYWORDS = [
    # "struggling with X", "how do you handle Y",
    # "spreadsheet Z", "manual process",
]

# Low Intent: General topic area
LOW_INTENT_KEYWORDS = [
    # "your industry", "general topic",
]

# ============================================================
# SCORING WEIGHTS (usually don't need to change)
# ============================================================
SCORING = {
    "high_intent_keyword": 30,
    "medium_intent_keyword": 15,
    "low_intent_keyword": 5,
    "is_question": 15,
    "low_comment_count": 10,
    "rising_post": 20,
    "new_post": 10,
    "tier_1_sub": 25,
    "tier_2_sub": 15,
    "tier_3_sub": 5,
    "tier_4_sub": 20,
    "already_commented": -100,
    "competitor_thread": 10,
    "high_comment_count": -10,
    "old_post": -15,
}

# ============================================================
# LIMITS & GUARDRAILS (usually don't need to change)
# ============================================================
DAILY_LIMITS = {
    "max_comments_total": 20,
    "max_brand_mentions": 1,
    "max_comments_per_sub": 4,
    "min_helpful_ratio": 8,
}

COACH = {
    "diversification_warning": 0.4,
    "stale_sub_days": 4,
    "karma_target_day_1": 80,
    "karma_target_day_3": 280,
    "karma_target_day_5": 450,
    "karma_target_day_7": 650,
}

# ============================================================
# STORAGE
# ============================================================
DB_PATH = os.path.expanduser("~/.jarvis/jarvis.db")
