# 45개 블록 BLOCK_SLOTS — design_director.py에 반영 필요
# 다른 쪽 작업 완료 후 교체

BLOCK_SLOTS = {
    # headers/
    "section-title-with-bg": {"required": ["title_ko"], "optional": ["title_en", "breadcrumb", "bg_image"]},
    "section-header-bar": {"required": ["title"], "optional": ["subtitle"]},
    "topic-left-right": {"required": ["title", "description"], "optional": []},
    "topic-center": {"required": ["title"], "optional": ["subtitle", "description"]},
    "topic-numbered": {"required": ["number", "title"], "optional": ["description", "color"]},
    # cards/
    "card-image-3col": {"required": ["cards"], "optional": []},
    "card-text-grid": {"required": ["cards"], "optional": []},
    "card-dark-overlay": {"required": ["cards"], "optional": []},
    "card-tag-image": {"required": ["cards"], "optional": []},
    "card-icon-desc": {"required": ["cards"], "optional": []},
    "card-compare-3col": {"required": ["cards"], "optional": []},
    "card-step-vertical": {"required": ["steps"], "optional": []},
    "card-image-round": {"required": ["cards"], "optional": []},
    "card-stat-number": {"required": ["stats"], "optional": []},
    "card-numbered": {"required": ["items"], "optional": []},
    # tables/
    "compare-3col-badge": {"required": ["headers", "rows"], "optional": []},
    "compare-2col-split": {"required": ["left_title", "right_title", "rows"], "optional": []},
    "table-simple-striped": {"required": ["headers", "rows"], "optional": []},
    # visuals/
    "venn-diagram": {"required": ["center_label", "items"], "optional": ["center_sub", "description"]},
    "circle-gradient": {"required": ["label"], "optional": ["sub_label"]},
    "compare-pill-pair": {"required": ["left_label", "right_label"], "optional": ["left_sub", "right_sub"]},
    "process-horizontal": {"required": ["steps"], "optional": []},
    "flow-arrow-horizontal": {"required": ["steps"], "optional": []},
    "keyword-circle-row": {"required": ["keywords"], "optional": []},
    "layer-diagram": {"required": ["layers"], "optional": ["title"]},
    "timeline-vertical": {"required": ["events"], "optional": []},
    "timeline-horizontal": {"required": ["events"], "optional": []},
    "pyramid-hierarchy": {"required": ["levels"], "optional": []},
    # emphasis/
    "quote-left-border": {"required": ["quote_text"], "optional": ["source"]},
    "quote-big-mark": {"required": ["quote_text"], "optional": ["source"]},
    "quote-question": {"required": ["question"], "optional": ["description"]},
    "conclusion-accent-bar": {"required": ["conclusion_text"], "optional": ["label"]},
    "comparison-2col": {"required": ["left_title", "left_content", "right_title", "right_content"], "optional": ["left_subtitle", "right_subtitle"]},
    "banner-gradient": {"required": ["text"], "optional": ["sub_text"]},
    "dark-bullet-list": {"required": ["bullets"], "optional": ["title"]},
    "highlight-strip": {"required": ["segments"], "optional": []},
    "callout-solution": {"required": ["title", "description"], "optional": ["icon", "source"]},
    "callout-warning": {"required": ["title", "description"], "optional": ["icon"]},
    "tab-label-row": {"required": ["tabs"], "optional": []},
    "divider-text": {"required": ["text"], "optional": []},
    # media/
    "image-row-2col": {"required": ["images"], "optional": []},
    "image-grid-2x2": {"required": ["images"], "optional": []},
    "image-side-text": {"required": ["image_src"], "optional": ["image_alt", "title", "description", "bullets"]},
    "image-full-caption": {"required": ["src"], "optional": ["alt", "caption"]},
    "image-before-after": {"required": ["before_src", "after_src"], "optional": ["before_label", "after_label", "caption"]},
}

# _apply_defaults 용
BLOCK_DEFAULTS = {
    "section-title-with-bg": {"title_ko": "(제목)"},
    "section-header-bar": {"title": "(섹션)"},
    "topic-left-right": {"title": "(소제목)", "description": ""},
    "topic-center": {"title": "(제목)"},
    "topic-numbered": {"number": "1", "title": "(단계)"},
    "card-image-3col": {"cards": []},
    "card-text-grid": {"cards": []},
    "card-dark-overlay": {"cards": []},
    "card-tag-image": {"cards": []},
    "card-icon-desc": {"cards": []},
    "card-compare-3col": {"cards": []},
    "card-step-vertical": {"steps": []},
    "card-image-round": {"cards": []},
    "card-stat-number": {"stats": []},
    "card-numbered": {"items": []},
    "compare-3col-badge": {"headers": [], "rows": []},
    "compare-2col-split": {"left_title": "A", "right_title": "B", "rows": []},
    "table-simple-striped": {"headers": [], "rows": []},
    "venn-diagram": {"center_label": "관계도", "items": [], "center_sub": "", "description": ""},
    "circle-gradient": {"label": "(라벨)"},
    "compare-pill-pair": {"left_label": "A", "right_label": "B"},
    "process-horizontal": {"steps": []},
    "flow-arrow-horizontal": {"steps": []},
    "keyword-circle-row": {"keywords": []},
    "layer-diagram": {"layers": []},
    "timeline-vertical": {"events": []},
    "timeline-horizontal": {"events": []},
    "pyramid-hierarchy": {"levels": []},
    "quote-left-border": {"quote_text": "(인용)"},
    "quote-big-mark": {"quote_text": "(인용)"},
    "quote-question": {"question": "(질문)"},
    "conclusion-accent-bar": {"conclusion_text": "(결론)"},
    "comparison-2col": {"left_title": "A", "left_content": "-", "right_title": "B", "right_content": "-"},
    "banner-gradient": {"text": "(배너)"},
    "dark-bullet-list": {"bullets": []},
    "highlight-strip": {"segments": []},
    "callout-solution": {"title": "(솔루션)", "description": ""},
    "callout-warning": {"title": "(경고)", "description": ""},
    "tab-label-row": {"tabs": []},
    "divider-text": {"text": "구분"},
    "image-row-2col": {"images": []},
    "image-grid-2x2": {"images": []},
    "image-side-text": {"image_src": ""},
    "image-full-caption": {"src": ""},
    "image-before-after": {"before_src": "", "after_src": ""},
}
