package com.realnet.OpenAi.Renders;

import java.util.Map;

public class HtmlRenderer {

	private static final String COMMON_CSS = "<style>\n" + "/* ✅ Your centralized CSS */\n"
			+ ".navbar-1 { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; }\n"
			+ ".logo-1 { width: 100px; height: 30px; background: #ccc; }\n"
			+ ".nav-1 { display: flex; gap: 20px; list-style: none; }\n"
			+ ".join-btn { background: black; color: white; padding: 8px 16px; border: none; border-radius: 4px; }\n"
			+ "/* ...more... */\n" + "</style>\n";

	public static String render(String sectionType, Map<String, Object> json) {
		// 🔁 Delegate to SectionRenderFactory
		String sectionHtml = SectionRenderFactory.renderSection(sectionType, json);

		// ✅ Inject centralized CSS
//		return COMMON_CSS + sectionHtml;
		return sectionHtml;

	}
}
