diff --git a/public/app.js b/public/app.js
new file mode 100644
index 0000000..a5d7302
--- /dev/null
+++ b/public/app.js
@@ -0,0 +1,385 @@
+/* AI DEV 포털 — 클라이언트 상호작용 (프레임워크 없음, 점진적 향상).
+ * JS 가 없어도 폼 POST 로 동작하고, 있으면 여기서 즉시 반영/모달/이펙트를 더한다.
+ *
+ * DOM 계약 (대시보드 EJS 가 맞춰 렌더):
+ * - 카드: ...
+ * - 반응 버튼:
+ * … …
+ * 19
+ * - 상세 모달 내용 저장소:
…
+ * - 답글 버튼:
+ * - 토스트/이펙트 신호: body[data-toast], body[data-egg]
+ */
+(function () {
+ "use strict";
+ var $ = function (s, r) { return (r || document).querySelector(s); };
+ var $$ = function (s, r) { return Array.prototype.slice.call((r || document).querySelectorAll(s)); };
+ var EGGS_ON = true;
+
+ /* ---------------- 테마 ---------------- */
+ function applyTheme(t) { document.documentElement.setAttribute("data-aidev-theme", t); }
+ function initTheme() {
+ var btn = $("#themeToggle");
+ if (!btn) return;
+ btn.addEventListener("click", function () {
+ var cur = document.documentElement.getAttribute("data-aidev-theme") === "dark" ? "dark" : "light";
+ var next = cur === "dark" ? "light" : "dark";
+ applyTheme(next);
+ try { localStorage.setItem("aidev-theme", next); } catch (e) {}
+ });
+ }
+
+ /* ---------------- 사용자 메뉴 ---------------- */
+ function initUserMenu() {
+ var btn = $("#userMenuBtn"), pop = $("#userMenuPop");
+ if (!btn || !pop) return;
+ btn.addEventListener("click", function (e) {
+ e.stopPropagation();
+ var open = pop.hidden;
+ pop.hidden = !open;
+ btn.setAttribute("aria-expanded", open ? "true" : "false");
+ });
+ document.addEventListener("click", function (e) {
+ if (!pop.hidden && !pop.contains(e.target) && !btn.contains(e.target)) {
+ pop.hidden = true; btn.setAttribute("aria-expanded", "false");
+ }
+ });
+ }
+
+ /* ---------------- 토스트 ---------------- */
+ var toastTimer = null;
+ function toast(msg) {
+ if (!msg) return;
+ var old = $(".toast"); if (old) old.remove();
+ var t = document.createElement("div");
+ t.className = "toast";
+ t.innerHTML = '' + CHECK_SVG + " ";
+ t.appendChild(document.createTextNode(msg));
+ document.body.appendChild(t);
+ if (toastTimer) clearTimeout(toastTimer);
+ toastTimer = setTimeout(function () { if (t.parentNode) t.remove(); }, 2700);
+ }
+ var CHECK_SVG = ' ';
+
+ /* ---------------- 이스터에그 (이모지 날리기) ---------------- */
+ var flyId = 0;
+ function flyLayer() {
+ var l = $(".flyers");
+ if (!l) { l = document.createElement("div"); l.className = "flyers"; document.body.appendChild(l); }
+ return l;
+ }
+ function addFlyer(content, style, ttl) {
+ var span = document.createElement("span");
+ span.className = "flyer"; span.textContent = content;
+ Object.keys(style).forEach(function (k) { span.style[k] = style[k]; });
+ var l = flyLayer(); l.appendChild(span);
+ var id = ++flyId; span._id = id;
+ setTimeout(function () { if (span.parentNode) span.remove(); }, ttl);
+ }
+ function burstThumbs() {
+ if (!EGGS_ON) return;
+ var cx = window.innerWidth / 2;
+ for (var i = 0; i < 6; i++) {
+ var dx = (Math.random() - 0.5) * 180;
+ addFlyer("👍", {
+ left: (cx + dx) + "px", top: (window.innerHeight * 0.62) + "px",
+ fontSize: (22 + Math.random() * 14) + "px",
+ animation: "aidev-flyup " + (0.9 + Math.random() * 0.3) + "s ease-out " + (i * 60) + "ms forwards",
+ opacity: 0,
+ }, 1500);
+ }
+ }
+ function burstRocket() {
+ if (!EGGS_ON) return;
+ addFlyer("🚀", {
+ left: "-40px", top: (window.innerHeight * (0.18 + Math.random() * 0.2)) + "px",
+ fontSize: "34px", animation: "aidev-rocket 1.1s ease-in forwards",
+ }, 1300);
+ }
+ function burstSparkle(x, y) {
+ if (!EGGS_ON) return;
+ var chars = ["✨", "⭐", "💫"];
+ for (var i = 0; i < 7; i++) {
+ var dx = (Math.random() - 0.5) * 90, dy = (Math.random() - 0.5) * 90;
+ addFlyer(chars[i % 3], {
+ left: (x + dx) + "px", top: (y + dy) + "px",
+ fontSize: (12 + Math.random() * 12) + "px",
+ animation: "aidev-sparkle " + (0.5 + Math.random() * 0.3) + "s ease-out forwards",
+ }, 900);
+ }
+ }
+
+ /* 로고 이스터에그: 4번 빠르게 클릭하면 흔들림 + 👍 (단일 클릭은 홈 이동) */
+ function initLogoEgg() {
+ var logo = $("#brandLink");
+ if (!logo) return;
+ var clicks = 0, timer = null, navTimer = null;
+ var mark = $(".brand-mark", logo);
+ logo.addEventListener("click", function (e) {
+ e.preventDefault();
+ clicks++;
+ clearTimeout(timer);
+ timer = setTimeout(function () { clicks = 0; }, 700);
+ if (navTimer) clearTimeout(navTimer);
+ if (clicks >= 4) {
+ clicks = 0;
+ if (mark) {
+ mark.style.animation = "aidev-shake .5s ease";
+ var old = mark.style.filter;
+ mark.style.filter = "hue-rotate(180deg) saturate(1.5)";
+ setTimeout(function () { mark.style.animation = ""; mark.style.filter = old; }, 520);
+ }
+ burstThumbs();
+ toast('🌈 git commit -m "found an easter egg"');
+ return;
+ }
+ // 추가 클릭이 없으면 잠시 뒤 홈으로 이동
+ navTimer = setTimeout(function () { window.location.href = logo.getAttribute("href") || "/"; }, 320);
+ });
+ }
+
+ /* ---------------- 반응(❤️/⭐) fetch 토글 ---------------- */
+ function initReactions() {
+ document.addEventListener("click", function (e) {
+ var btn = e.target.closest("[data-react]");
+ if (!btn) return;
+ e.preventDefault();
+ e.stopPropagation();
+ var id = btn.getAttribute("data-id");
+ var kind = btn.getAttribute("data-kind"); // heart | star
+ // 별 빠르게 4탭 → 반짝
+ if (kind === "star") {
+ starTaps = (starTaps || []).filter(function (t) { return Date.now() - t < 1400; });
+ starTaps.push(Date.now());
+ if (starTaps.length >= 4) burstSparkle(e.clientX, e.clientY);
+ }
+ fetch("/projects/" + id + "/" + kind, {
+ method: "POST",
+ headers: { "X-Requested-With": "fetch", "Accept": "application/json" },
+ })
+ .then(function (r) { return r.ok ? r.json() : Promise.reject(r.status); })
+ .then(function (data) { syncReaction(id, kind, data.on, data.count); })
+ .catch(function () { toast("처리에 실패했습니다. 다시 시도해 주세요."); });
+ });
+ }
+ var starTaps = [];
+ function syncReaction(id, kind, on, count) {
+ $$('[data-react][data-id="' + id + '"][data-kind="' + kind + '"]').forEach(function (b) {
+ b.classList.toggle("on", !!on);
+ var c = $(".count", b);
+ if (c) c.textContent = count;
+ });
+ }
+
+ /* ---------------- 상세 모달 ---------------- */
+ function openDetail(id) {
+ var tpl = $('#detailStore template[data-detail-id="' + id + '"]');
+ var overlay = $("#detailModal");
+ if (!tpl || !overlay) { window.location.href = "/projects/" + id; return; }
+ var mount = $(".modal", overlay) || overlay;
+ mount.innerHTML = tpl.innerHTML;
+ overlay.hidden = false;
+ document.body.style.overflow = "hidden";
+ overlay.setAttribute("data-open-id", id);
+ var ta = $(".comment-input", overlay);
+ if (ta) ta.focus();
+ }
+ function closeDetail() {
+ var overlay = $("#detailModal");
+ if (!overlay || overlay.hidden) return;
+ overlay.hidden = true;
+ overlay.removeAttribute("data-open-id");
+ document.body.style.overflow = "";
+ }
+ function initDetailModal() {
+ document.addEventListener("click", function (e) {
+ var opener = e.target.closest("[data-open-id]");
+ if (opener && !e.target.closest("[data-react]") && !e.target.closest("a") && !e.target.closest("[data-stop]")) {
+ e.preventDefault();
+ openDetail(opener.getAttribute("data-open-id"));
+ return;
+ }
+ if (e.target.closest("[data-close-detail]")) { e.preventDefault(); closeDetail(); return; }
+ var overlay = $("#detailModal");
+ if (overlay && !overlay.hidden && e.target === overlay) closeDetail();
+ });
+ document.addEventListener("keydown", function (e) { if (e.key === "Escape") { closeDetail(); closeShare(); } });
+ }
+
+ /* ---------------- 댓글: 답글 타깃 / Enter 등록 / 삭제 확인 ---------------- */
+ function initComments() {
+ document.addEventListener("click", function (e) {
+ var rb = e.target.closest("[data-reply-to]");
+ if (rb) {
+ e.preventDefault();
+ var scope = rb.closest(".modal") || document;
+ var parentInput = $('input[name="parent_id"]', scope);
+ var banner = $(".reply-banner", scope);
+ var ta = $(".comment-input", scope);
+ if (parentInput) parentInput.value = rb.getAttribute("data-reply-to");
+ if (banner) {
+ banner.hidden = false;
+ var who = $(".reply-banner-name", banner);
+ if (who) who.textContent = rb.getAttribute("data-reply-name") || "";
+ }
+ if (ta) { ta.placeholder = "답글을 입력하세요…"; ta.focus(); }
+ return;
+ }
+ if (e.target.closest("[data-cancel-reply]")) {
+ e.preventDefault();
+ var scope2 = e.target.closest(".modal") || document;
+ var pi = $('input[name="parent_id"]', scope2); if (pi) pi.value = "";
+ var bn = $(".reply-banner", scope2); if (bn) bn.hidden = true;
+ var ta2 = $(".comment-input", scope2); if (ta2) ta2.placeholder = "댓글을 입력하세요…";
+ return;
+ }
+ var del = e.target.closest("[data-confirm]");
+ if (del) {
+ if (!window.confirm(del.getAttribute("data-confirm"))) e.preventDefault();
+ }
+ });
+ // Enter 등록 / Shift+Enter 줄바꿈
+ document.addEventListener("keydown", function (e) {
+ var ta = e.target;
+ if (ta && ta.classList && ta.classList.contains("comment-input") && e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ var form = ta.closest("form");
+ if (form && ta.value.trim()) form.submit();
+ }
+ });
+ }
+
+ /* ---------------- 공유(등록) 모달 ---------------- */
+ function openShare() {
+ var m = $("#shareModal"); if (!m) return;
+ m.hidden = false; document.body.style.overflow = "hidden";
+ var t = $('input[name="title"]', m); if (t) t.focus();
+ }
+ function closeShare() {
+ var m = $("#shareModal"); if (!m || m.hidden) return;
+ m.hidden = true; document.body.style.overflow = "";
+ }
+ function initShare() {
+ document.addEventListener("click", function (e) {
+ if (e.target.closest("[data-open-share]")) { e.preventDefault(); openShare(); return; }
+ if (e.target.closest("[data-close-share]")) { e.preventDefault(); closeShare(); return; }
+ var m = $("#shareModal");
+ if (m && !m.hidden && e.target === m) closeShare();
+ // 공개/비공개 토글
+ var vo = e.target.closest("[data-vis]");
+ if (vo && m) {
+ var val = vo.getAttribute("data-vis");
+ var input = $('input[name="is_public"]', m);
+ if (input) input.value = val === "public" ? "1" : "0";
+ $$("[data-vis]", m).forEach(function (b) {
+ var pub = b.getAttribute("data-vis") === "public";
+ b.classList.toggle("on-public", pub && val === "public");
+ b.classList.toggle("on-private", !pub && val === "private");
+ });
+ var hint = $(".share-vishint", m);
+ if (hint) hint.textContent = val === "public" ? "피드에 공개되어 동료가 볼 수 있어요" : "나만 볼 수 있어요 · 언제든 공유로 전환 가능";
+ }
+ });
+ }
+
+ /* ---------------- 검색 / 정렬 / 필터 (클라이언트, 피드 대상) ---------------- */
+ function applyFeed() {
+ var grid = $("#feedGrid"); if (!grid) return;
+ var q = ($("#feedSearch") && $("#feedSearch").value || "").trim().toLowerCase();
+ var starOnly = $("#feedStarFilter") && $("#feedStarFilter").classList.contains("on");
+ var cards = $$(".fcard", grid);
+ var visible = 0;
+ cards.forEach(function (c) {
+ var hit = !q || (c.getAttribute("data-search") || "").indexOf(q) >= 0;
+ var st = !starOnly || c.getAttribute("data-starred") === "true";
+ var show = hit && st;
+ c.style.display = show ? "" : "none";
+ if (show) visible++;
+ });
+ var empty = $("#feedEmpty");
+ if (empty) {
+ empty.hidden = visible !== 0;
+ empty.textContent = starOnly && visible === 0
+ ? "아직 즐겨찾기한 프로젝트가 없어요 · 카드의 ⭐ 버튼으로 추가하세요"
+ : "“" + ($("#feedSearch") && $("#feedSearch").value || "") + "” 와 일치하는 프로젝트가 없습니다.";
+ }
+ }
+ function sortFeed(mode) {
+ var grid = $("#feedGrid"); if (!grid) return;
+ var cards = $$(".fcard", grid);
+ cards.sort(function (a, b) {
+ if (mode === "popular") {
+ return (+b.getAttribute("data-pop") || 0) - (+a.getAttribute("data-pop") || 0)
+ || (b.getAttribute("data-created") || "").localeCompare(a.getAttribute("data-created") || "");
+ }
+ return (b.getAttribute("data-created") || "").localeCompare(a.getAttribute("data-created") || "");
+ });
+ cards.forEach(function (c) { grid.appendChild(c); });
+ }
+ function initFeedControls() {
+ var search = $("#feedSearch");
+ if (search) search.addEventListener("input", applyFeed);
+ var sl = $("#sortLatest"), sp = $("#sortPopular");
+ if (sl) sl.addEventListener("click", function () { sl.classList.add("on"); if (sp) sp.classList.remove("on"); sortFeed("latest"); });
+ if (sp) sp.addEventListener("click", function () { sp.classList.add("on"); if (sl) sl.classList.remove("on"); sortFeed("popular"); });
+ var sf = $("#feedStarFilter");
+ if (sf) sf.addEventListener("click", function () { sf.classList.toggle("on"); applyFeed(); });
+ }
+
+ /* ---------------- 내 프로젝트 필터 (전체/공개/비공개) ---------------- */
+ function initMyFilter() {
+ var tabs = $$("[data-myfilter]");
+ if (!tabs.length) return;
+ tabs.forEach(function (tab) {
+ tab.addEventListener("click", function () {
+ var f = tab.getAttribute("data-myfilter"); // all | public | private
+ tabs.forEach(function (t) { t.classList.toggle("on", t === tab); });
+ $$("#myProjGrid .pcard").forEach(function (c) {
+ var vis = c.getAttribute("data-vis");
+ c.style.display = (f === "all" || vis === f) ? "" : "none";
+ });
+ var add = $("#addCard");
+ if (add) add.style.display = f === "all" ? "" : "none";
+ });
+ });
+ }
+
+ /* ---------------- 시작 신호 처리 (서버가 body 속성으로 전달) ---------------- */
+ function initSignals() {
+ var b = document.body;
+ if (b.getAttribute("data-toast")) toast(b.getAttribute("data-toast"));
+ var egg = b.getAttribute("data-egg");
+ if (egg === "lgtm") { burstThumbs(); toast("LGTM 👍 — Looks Good To Me!"); }
+ else if (egg === "rocket") burstRocket();
+ var open = b.getAttribute("data-open-modal");
+ if (open) openDetail(open);
+ }
+
+ /* ---------------- 콘솔 이스터에그 ---------------- */
+ function consoleArt() {
+ if (!EGGS_ON) return;
+ try {
+ var art = [" ___ ____ ____ _______ __", " / | / _/ / __ \\/ ____/ | / /", " / /| | / / / / / / __/ | | / / ", "/ ___ |_/ / / /_/ / /___ | |/ / ", "/_/ |_/___/ /_____/_____/ |___/ "].join("\n");
+ console.log("%c" + art, "color:#0969da;font-family:monospace;font-size:11px;line-height:1.1");
+ console.log("%c👀 코드 구경 왔어요? 환영합니다.", "color:#1f883d;font-size:13px;font-weight:bold");
+ console.log("%c사내 개발팀은 늘 동료를 찾고 있어요 — git blame 하지 말고 git praise 합시다. 🙇", "color:#656d76;font-size:12px");
+ console.log("%cps. 댓글에 LGTM 한 번 쳐보세요.", "color:#8b949e;font-size:11px");
+ } catch (e) {}
+ }
+
+ document.addEventListener("DOMContentLoaded", function () {
+ initTheme();
+ initUserMenu();
+ initLogoEgg();
+ initReactions();
+ initDetailModal();
+ initComments();
+ initShare();
+ initFeedControls();
+ initMyFilter();
+ initSignals();
+ consoleArt();
+ });
+})();
diff --git a/public/style.css b/public/style.css
index a0de808..6a57402 100644
--- a/public/style.css
+++ b/public/style.css
@@ -1,136 +1,399 @@
-/* GitHub 감성 (Primer 팔레트 근사). 라이트 테마. */
-:root {
- --canvas: #ffffff;
- --canvas-subtle: #f6f8fa;
- --border: #d0d7de;
- --border-muted: #d8dee4;
- --fg: #1f2328;
- --fg-muted: #656d76;
- --accent: #0969da;
- --accent-emphasis: #0969da;
- --success: #1a7f37;
- --btn-primary: #1f883d;
- --btn-primary-hover: #1a7f37;
- --header-bg: #24292f;
- --star: #9a6700;
-}
+/* AI DEV 포털 — 단일 스타일시트. (디자인 레퍼런스 GitHub 감성 / 라이트·다크)
+ 빌드 없음: CSS 변수 + 클래스만. 다크는 html[data-aidev-theme="dark"] 로 전환. */
+
* { box-sizing: border-box; }
+html, body { margin: 0; padding: 0; }
+
+:root {
+ color-scheme: light;
+ --bg:#ffffff; --panel:#f6f8fa; --card:#ffffff; --tile:#f3f5f8; --tile-bd:#e1e6eb;
+ --inset:#ffffff; --bg-soft:#fbfcfd;
+ --border:#d0d7de; --border-soft:#d8dee4; --divider:#eaecef;
+ --fg:#1f2328; --fg2:#656d76; --fg3:#8b949e;
+ --link:#0969da; --accent-bg:#ddf4ff; --accent-bd:#b6e3ff; --accent-fg:#0969da; --accent-strong:#0a3069;
+ --success:#1f883d; --success-hover:#1a7f37; --success-bg:#dafbe1; --success-bd:#b7ebc4; --success-bd2:#4ac26b; --success-fg:#1a7f37;
+ --attn:#d4a72c; --attn-fg:#9a6700; --attn-bg:#fff8e6; --attn-bd:#eac54f;
+ --admin:#8250df; --admin-fg:#8250df; --admin-bg:#f3effc; --admin-bd:#e7defb;
+ --avatar-bg:#eaeef2; --overlay:rgba(31,35,40,.42);
+ --shadow:rgba(31,35,40,.08); --shadow-hover:rgba(31,35,40,.12); --shadow-strong:rgba(31,35,40,.22);
+ --btn-bg:#f6f8fa; --btn-bd:#d0d7de; --btn-hover:#eef1f4;
+ --tab-underline:#fd8c73; --focus-ring:rgba(9,105,218,.12); --danger:#cf222e;
+ --heart:#bf3989; --heart-fg:#bf3989; --heart-bg:#ffeff5; --heart-bd:#ffc1da;
+ --hbg:#24292f; --hfg:#ffffff; --hfg2:#b9c0c9; --hbd:#444c56; --hsearch-bg:#383f47; --hsearch-bd:#565b62; --hsearch-fg:#cdd3da;
+}
+html[data-aidev-theme="dark"] {
+ color-scheme: dark;
+ --bg:#0d1117; --panel:#161b22; --card:#1c2128; --tile:#2d333b; --tile-bd:#373e47;
+ --inset:#0d1117; --bg-soft:#161b22;
+ --border:#30363d; --border-soft:#373e47; --divider:#262c34;
+ --fg:#e6edf3; --fg2:#9198a1; --fg3:#6e7681;
+ --link:#4493f8; --accent-bg:rgba(56,139,253,.15); --accent-bd:rgba(56,139,253,.4); --accent-fg:#4493f8; --accent-strong:#a5d6ff;
+ --success:#238636; --success-hover:#2ea043; --success-bg:rgba(46,160,67,.15); --success-bd:rgba(46,160,67,.4); --success-bd2:rgba(63,185,80,.6); --success-fg:#3fb950;
+ --attn:#e3b341; --attn-fg:#e3b341; --attn-bg:rgba(227,179,65,.12); --attn-bd:rgba(187,128,9,.6);
+ --admin:#bc8cff; --admin-fg:#bc8cff; --admin-bg:rgba(163,113,247,.15); --admin-bd:rgba(163,113,247,.4);
+ --avatar-bg:#2d333b; --overlay:rgba(1,4,9,.7);
+ --shadow:rgba(1,4,9,.4); --shadow-hover:rgba(1,4,9,.55); --shadow-strong:rgba(1,4,9,.6);
+ --btn-bg:#21262d; --btn-bd:#30363d; --btn-hover:#30363d;
+ --tab-underline:#f78166; --focus-ring:rgba(56,139,253,.3); --danger:#f85149;
+ --heart:#db61a2; --heart-fg:#db61a2; --heart-bg:rgba(219,97,162,.15); --heart-bd:rgba(219,97,162,.4);
+ --hbg:#010409; --hfg:#e6edf3; --hfg2:#9198a1; --hbd:#21262d; --hsearch-bg:#0d1117; --hsearch-bd:#30363d; --hsearch-fg:#9198a1;
+}
+
+html, body { background: var(--bg); color: var(--fg); }
body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Helvetica, Arial, sans-serif;
- color: var(--fg);
- background: var(--canvas-subtle);
- font-size: 14px;
- line-height: 1.5;
+ font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', 'Malgun Gothic', sans-serif;
+ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
+ transition: background-color .25s ease, color .2s ease;
}
-a { color: var(--accent); text-decoration: none; }
-a:hover { text-decoration: underline; }
+::selection { background: color-mix(in srgb, var(--link) 22%, transparent); }
+::placeholder { color: var(--fg3); }
+a { color: inherit; text-decoration: none; }
+svg { display: block; }
+.tabnum { font-variant-numeric: tabular-nums; }
-/* 헤더 */
-.header {
- background: var(--header-bg);
- color: #fff;
- padding: 0 16px;
- height: 56px;
- display: flex;
- align-items: center;
- gap: 16px;
-}
-.header .brand { font-weight: 600; font-size: 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
-.header .brand:hover { text-decoration: none; }
-.header .spacer { flex: 1; }
-.header .who { color: #d1d9e0; font-size: 13px; }
-.header a.navlink { color: #fff; font-size: 14px; }
-
-/* 컨테이너 */
-.container { max-width: 1012px; margin: 24px auto; padding: 0 16px; }
-.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
-@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }
-
-/* 카드 */
-.box {
- background: var(--canvas);
- border: 1px solid var(--border);
- border-radius: 6px;
-}
-.box-header {
- padding: 12px 16px;
- border-bottom: 1px solid var(--border);
- font-weight: 600;
- background: var(--canvas-subtle);
- border-radius: 6px 6px 0 0;
-}
-.box-body { padding: 16px; }
-.box-row {
- padding: 12px 16px;
- border-bottom: 1px solid var(--border-muted);
- display: flex;
- align-items: center;
- gap: 12px;
-}
-.box-row:last-child { border-bottom: 0; }
-
-/* 사이트 그리드 */
-.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
-@media (max-width: 540px) { .site-grid { grid-template-columns: 1fr; } }
-.site-card {
- display: flex; gap: 12px; align-items: flex-start;
- border: 1px solid var(--border); border-radius: 6px;
- padding: 12px; background: var(--canvas);
-}
-.site-card:hover { border-color: var(--accent); text-decoration: none; }
-.site-card .ico { font-size: 22px; line-height: 1; }
-.site-card .name { font-weight: 600; color: var(--fg); }
-.site-card .desc { color: var(--fg-muted); font-size: 12px; }
-.sso-badge { display: inline-block; font-size: 10px; font-weight: 600; color: #1a7f37; background: #dafbe1; border: 1px solid #aceebb; border-radius: 999px; padding: 1px 7px; vertical-align: middle; margin-left: 4px; }
-.group-title { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
-
-/* 버튼 */
-.btn {
- display: inline-block; padding: 5px 16px; font-size: 14px; font-weight: 500;
- border: 1px solid var(--border); border-radius: 6px; background: var(--canvas-subtle);
- color: var(--fg); cursor: pointer;
-}
-.btn:hover { background: #f3f4f6; text-decoration: none; }
-.btn-primary { background: var(--btn-primary); border-color: rgba(31,35,40,.15); color: #fff; }
-.btn-primary:hover { background: var(--btn-primary-hover); color: #fff; }
-.btn-sm { padding: 3px 12px; font-size: 12px; }
-
-/* 폼 */
-input[type=text], textarea, input[type=url] {
- width: 100%; padding: 6px 12px; border: 1px solid var(--border);
- border-radius: 6px; font-size: 14px; font-family: inherit;
-}
-textarea { min-height: 80px; resize: vertical; }
-label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 13px; }
-
-/* 프로젝트 리스트 */
-.proj-item { padding: 16px; border-bottom: 1px solid var(--border-muted); }
-.proj-item:last-child { border-bottom: 0; }
-.proj-title { font-size: 16px; font-weight: 600; }
-.proj-meta { color: var(--fg-muted); font-size: 12px; margin-top: 4px; }
-.tag {
- display: inline-block; background: #ddf4ff; color: var(--accent);
- border-radius: 2em; padding: 0 8px; font-size: 12px; margin-right: 4px;
-}
-.counter { color: var(--fg-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
-
-/* 아바타 */
+/* 공통 아바타 래퍼 (identicon 헬퍼가 사용) */
.avatar {
- width: 28px; height: 28px; border-radius: 50%;
- background: var(--accent); color: #fff; display: inline-flex;
- align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
+ display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
+ overflow: hidden; background: var(--avatar-bg);
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
}
-/* 코멘트 */
-.comment { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; }
-.comment-head { background: var(--canvas-subtle); padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
-.comment-body { padding: 12px; white-space: pre-wrap; }
+/* ===================== 헤더 ===================== */
+.hdr { position: sticky; top: 0; z-index: 300; background: var(--hbg); border-bottom: 1px solid var(--hbd); }
+.hdr-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 16px; }
+.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; flex: 0 0 auto; }
+.brand-mark { display: inline-flex; color: var(--hfg); transition: transform .2s ease, filter .2s ease; }
+.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .13em; color: var(--hfg); }
+.brand-sub { font-size: 11px; color: var(--hfg2); font-weight: 500; border-left: 1px solid var(--hbd); padding-left: 10px; margin-left: 2px; white-space: nowrap; }
-/* 로그인 */
-.login-wrap { max-width: 340px; margin: 80px auto; text-align: center; }
-.login-card { padding: 32px 24px; }
-.login-logo { font-size: 40px; }
-.login-title { font-size: 24px; font-weight: 300; margin: 12px 0 24px; }
-.alert { background: #ffebe9; border: 1px solid #ff818266; color: #cf222e; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
-.muted { color: var(--fg-muted); font-size: 12px; }
+.hdr-search { flex: 1; max-width: 300px; position: relative; display: flex; align-items: center; }
+.hdr-search-ico { position: absolute; left: 10px; display: inline-flex; color: var(--hfg2); pointer-events: none; }
+.hdr-search input {
+ width: 100%; font-family: inherit; font-size: 13px; color: var(--hfg);
+ background: var(--hsearch-bg); border: 1px solid var(--hsearch-bd); border-radius: 7px;
+ padding: 6px 10px 6px 32px; outline: none;
+}
+.hdr-search input:focus { border-color: var(--link); background: var(--bg); color: var(--fg); }
+.hdr-search input::-webkit-search-cancel-button { filter: invert(.5); }
+
+.hdr-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
+.icon-btn {
+ width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--hbd); background: transparent;
+ cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--hfg2);
+ transition: background .14s ease, color .14s ease;
+}
+.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--hfg); }
+.theme-ico-sun { display: none; }
+html[data-aidev-theme="dark"] .theme-ico-moon { display: none; }
+html[data-aidev-theme="dark"] .theme-ico-sun { display: inline-flex; }
+
+.admin-pill {
+ display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
+ color: #fff; background: color-mix(in srgb, var(--admin) 80%, transparent);
+ border: 1px solid var(--hbd); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
+}
+
+.usermenu { position: relative; }
+.usermenu-btn {
+ display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent;
+ border-radius: 8px; padding: 4px 6px 4px 8px; cursor: pointer; font-family: inherit;
+}
+.usermenu-btn:hover { background: rgba(255,255,255,.08); }
+.usermenu-btn .who { font-size: 13px; font-weight: 600; color: var(--hfg); font-variant-numeric: tabular-nums; }
+.usermenu-btn .caret { display: inline-flex; color: var(--hfg2); }
+.usermenu-pop {
+ position: absolute; top: 46px; right: 0; width: 212px; background: var(--card); border: 1px solid var(--border);
+ border-radius: 10px; box-shadow: 0 8px 24px var(--shadow-strong); padding: 6px; z-index: 320; animation: aidev-pop .14s ease-out;
+}
+.usermenu-pop[hidden] { display: none; }
+.usermenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--divider); margin-bottom: 6px; }
+.usermenu-label { font-size: 12px; color: var(--fg2); }
+.usermenu-sabun { font-size: 13.5px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
+.usermenu-role { font-size: 11.5px; color: var(--fg2); margin-top: 2px; }
+.usermenu-item { width: 100%; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--fg); display: flex; align-items: center; gap: 8px; }
+.usermenu-item:hover { background: var(--panel); }
+.usermenu-ico { display: inline-flex; color: var(--fg2); }
+
+/* ===================== 레이아웃 / 섹션 ===================== */
+.main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
+.section { margin-bottom: 40px; }
+.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
+.section-titlewrap { display: flex; align-items: baseline; gap: 10px; }
+.section-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
+.section-sub { font-size: 13px; color: var(--fg2); }
+
+/* ===================== ① 개발 도구 ===================== */
+.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
+.tool-card {
+ position: relative; text-align: left; background: var(--card); border: 1px solid var(--border-soft);
+ border-radius: 12px; padding: 16px; cursor: pointer; font-family: inherit; display: block;
+ transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
+}
+.tool-card:hover { border-color: var(--link); box-shadow: 0 6px 18px var(--shadow-hover); transform: translateY(-3px); }
+.tool-card.admin { border-color: var(--admin-bd); }
+.tool-icon {
+ width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
+ font-size: 24px; background: var(--tile); border: 1px solid var(--tile-bd);
+}
+.tool-card.admin .tool-icon { background: var(--admin-bg); border-color: var(--admin-bd); }
+.tool-name { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--fg); }
+.tool-desc { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fg2); line-height: 1.45; }
+.sso-badge {
+ position: absolute; top: 13px; right: 13px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
+ color: var(--accent-fg); background: var(--accent-bg); border: 1px solid var(--accent-bd); border-radius: 4px; padding: 2px 6px;
+}
+.tool-admin-badge {
+ display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 11px; font-weight: 600;
+ color: var(--admin-fg); background: var(--admin-bg); border: 1px solid var(--admin-bd); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
+}
+
+/* ===================== ② 내 프로젝트 ===================== */
+.myproj { position: relative; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 22px 22px 24px; }
+.myproj-accent { position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--link); }
+.myproj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-left: 8px; flex-wrap: wrap; }
+.myproj-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
+.filter-tabs { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
+.filter-tab {
+ display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; border-radius: 6px; padding: 5px 11px;
+ cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--fg2); white-space: nowrap;
+ transition: background .14s ease, color .14s ease;
+}
+.filter-tab.on { background: var(--panel); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
+.new-proj-btn {
+ display: inline-flex; align-items: center; gap: 6px; background: var(--success);
+ border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 8px; padding: 7px 13px;
+ cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; transition: background .14s ease;
+}
+.new-proj-btn:hover { background: var(--success-hover); }
+.myproj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-left: 8px; }
+
+/* 프로젝트 카드 (내 프로젝트 / 피드 공용 베이스) */
+.pcard {
+ background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 15px 16px 14px;
+ cursor: pointer; transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; display: flex; flex-direction: column;
+}
+.pcard:hover { border-color: var(--link); box-shadow: 0 6px 18px var(--shadow); transform: translateY(-2px); }
+.pcard.private { background: var(--bg); border: 1.5px dashed var(--border); }
+.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
+.pcard-titlewrap { display: flex; align-items: center; gap: 7px; min-width: 0; }
+.pcard-repoico { display: inline-flex; color: var(--fg2); flex: 0 0 auto; }
+.pcard-title { font-size: 14px; font-weight: 700; color: var(--link); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.pcard-desc { margin-top: 8px; font-size: 12.5px; color: var(--fg2); line-height: 1.5; flex: 1; }
+.pcard-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
+.pcard-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
+.pcard-stats { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--fg2); }
+.pcard-stats .stat { display: inline-flex; align-items: center; gap: 4px; }
+.lang-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
+.ico-heart { display: inline-flex; color: var(--heart); }
+.ico-star { display: inline-flex; color: var(--attn); }
+.ico-comment { display: inline-flex; color: var(--fg2); }
+.vis-badge {
+ display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 11px; font-weight: 600;
+ border-radius: 999px; padding: 1px 8px 1px 7px; white-space: nowrap;
+}
+.vis-badge.public { color: var(--success-fg); background: var(--success-bg); border: 1px solid var(--success-bd); }
+.vis-badge.private { color: var(--fg2); background: var(--panel); border: 1px solid var(--border); }
+.toggle-share-btn { background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--fg3); white-space: nowrap; }
+.toggle-share-btn:hover { color: var(--fg); }
+.private-note { font-size: 11.5px; color: var(--fg3); }
+.share-mini-btn {
+ display: inline-flex; align-items: center; gap: 5px; background: var(--success);
+ border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 7px; padding: 4px 10px;
+ cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; transition: background .14s ease;
+}
+.share-mini-btn:hover { background: var(--success-hover); }
+.add-card {
+ background: transparent; border: 1.5px dashed var(--border); border-radius: 12px; padding: 16px; cursor: pointer; font-family: inherit;
+ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fg2); min-height: 158px; width: 100%;
+ transition: border-color .16s ease, color .16s ease, background .16s ease;
+}
+.add-card:hover { border-color: var(--success); color: var(--success); background: var(--card); }
+.add-card-plus { width: 38px; height: 38px; border-radius: 50%; background: var(--success-bg); border: 1px solid var(--success-bd); display: inline-flex; align-items: center; justify-content: center; color: var(--success); }
+.add-card-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
+.add-card-sub { font-size: 11.5px; text-align: center; line-height: 1.4; }
+.empty { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--fg2); font-size: 13px; border: 1px dashed var(--border); border-radius: 12px; }
+
+/* ===================== ③ 공유 피드 ===================== */
+.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
+.feed-head .section-titlewrap { padding-bottom: 14px; }
+.feed-head-right { display: flex; align-items: flex-end; gap: 14px; }
+.feed-star-btn {
+ display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--btn-bd); border-radius: 7px;
+ padding: 6px 12px; margin-bottom: 8px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--fg2); white-space: nowrap;
+ transition: background .14s ease, border-color .14s ease, color .14s ease;
+}
+.feed-star-btn:hover { border-color: var(--attn-bd); color: var(--attn-fg); }
+.feed-star-btn.on { background: var(--attn-bg); border-color: var(--attn-bd); color: var(--attn-fg); }
+.feed-star-btn .ico { display: inline-flex; }
+.sort-tabs { display: flex; gap: 2px; }
+.sort-tab { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px 14px; color: var(--fg2); transition: color .14s ease; }
+.sort-tab.on { color: var(--fg); box-shadow: inset 0 -2px 0 var(--tab-underline); }
+.feed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
+
+.fcard { background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px; cursor: pointer; transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; display: flex; flex-direction: column; }
+.fcard:hover { border-color: var(--link); box-shadow: 0 6px 18px var(--shadow); transform: translateY(-2px); }
+.fcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
+.fcard-titlewrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
+.fcard-title { font-size: 15px; font-weight: 700; color: var(--link); line-height: 1.3; }
+.react-btns { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
+.react-btn {
+ display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; background: var(--btn-bg); border: 1px solid var(--btn-bd);
+ border-radius: 7px; padding: 4px 9px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--fg);
+ transition: background .14s ease, border-color .14s ease, color .14s ease;
+}
+.react-btn .count { font-variant-numeric: tabular-nums; }
+.react-btn.heart.on { background: var(--heart-bg); border-color: var(--heart-bd); color: var(--heart-fg); }
+.react-btn.star.on { background: var(--attn-bg); border-color: var(--attn-bd); color: var(--attn-fg); }
+/* 채움(on) / 외곽선(off) 아이콘 토글 — JS 가 .on 클래스만 바꾸면 됨 */
+.react-btn .ico, .modal-action .ico { display: inline-flex; }
+.react-btn .ico-on, .modal-action .ico-on { display: none; }
+.react-btn.on .ico-on, .modal-action.on .ico-on { display: inline-flex; }
+.react-btn.on .ico-off, .modal-action.on .ico-off { display: none; }
+.fcard-desc { margin-top: 8px; font-size: 13px; color: var(--fg2); line-height: 1.55; }
+.fcard-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
+.fcard-foot { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
+.fcard-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
+.fcard-author .sabun { font-size: 12.5px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
+.fcard-author .date { font-size: 11.5px; color: var(--fg3); }
+.fcard-meta { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--fg2); }
+.fcard-meta .stat { display: inline-flex; align-items: center; gap: 5px; }
+.bara-link { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--link); white-space: nowrap; }
+
+.tag { font-size: 11px; font-weight: 500; color: var(--accent-fg); background: var(--accent-bg); border-radius: 999px; padding: 1px 9px; }
+
+/* ===================== 상세 모달 ===================== */
+.modal-overlay { position: fixed; inset: 0; z-index: 500; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; overflow-y: auto; animation: aidev-fade .16s ease-out; }
+.modal-overlay[hidden] { display: none; }
+.modal { width: 100%; max-width: 640px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px var(--shadow-strong); overflow: hidden; animation: aidev-pop .18s ease-out; }
+.modal-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--divider); }
+.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
+.modal-titlewrap { min-width: 0; }
+.modal-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
+.modal-repoico { display: inline-flex; color: var(--fg2); }
+.modal-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--link); line-height: 1.3; letter-spacing: -.01em; }
+.modal-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
+.modal-meta .sabun { font-size: 13px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
+.modal-meta .date { font-size: 12px; color: var(--fg3); }
+.modal-meta .lang { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg2); margin-left: 4px; }
+.modal-close { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--fg2); }
+.modal-close:hover { background: var(--panel); border-color: var(--border-soft); }
+.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
+.modal-desc { margin: 14px 0 0; font-size: 14px; color: var(--fg); line-height: 1.65; white-space: pre-wrap; }
+.modal-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
+.modal-action {
+ display: inline-flex; align-items: center; gap: 7px; background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 8px;
+ padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--fg);
+ transition: background .14s ease, border-color .14s ease, color .14s ease;
+}
+.modal-action .count { font-variant-numeric: tabular-nums; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--border); }
+.modal-action.heart.on { background: var(--heart-bg); border-color: var(--heart-bd); color: var(--heart-fg); }
+.modal-action.star.on { background: var(--attn-bg); border-color: var(--attn-bd); color: var(--attn-fg); }
+.modal-action.primary { background: var(--success); border-color: color-mix(in srgb, var(--fg) 12%, transparent); color: #fff; }
+.modal-action.primary:hover { background: var(--success-hover); }
+.modal-action.ghost:hover { background: var(--btn-hover); }
+
+/* 댓글 스레드 */
+.modal-body { padding: 18px 24px 4px; }
+.comments-title { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
+.comments-count { font-weight: 600; color: var(--fg2); background: var(--panel); border: 1px solid var(--border-soft); border-radius: 999px; padding: 0 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
+.comment-list { display: flex; flex-direction: column; gap: 4px; }
+.comment { display: flex; gap: 11px; padding: 11px 0; }
+.comment-main { min-width: 0; flex: 1; }
+.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
+.comment-author { font-size: 13px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
+.comment-time { font-size: 11.5px; color: var(--fg3); }
+.lgtm { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--success-fg); background: var(--success-bg); border: 1px solid var(--success-bd2); border-radius: 5px; padding: 1px 7px; animation: aidev-stamp .42s cubic-bezier(.2,.8,.3,1.2); }
+.comment-text { margin-top: 3px; font-size: 13.5px; color: var(--fg); line-height: 1.6; white-space: pre-wrap; }
+.comment-actions { margin-top: 5px; display: flex; align-items: center; gap: 12px; }
+.comment-link { background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--fg2); display: inline-flex; align-items: center; gap: 5px; }
+.comment-link:hover { color: var(--link); }
+.comment-del:hover { color: var(--danger); }
+.replies { margin-left: 21px; padding-left: 18px; border-left: 2px solid var(--divider); display: flex; flex-direction: column; }
+.reply { display: flex; gap: 10px; padding: 10px 0; }
+.reply .comment-author { font-size: 12.5px; }
+.reply .comment-text { font-size: 13px; }
+
+.modal-foot { padding: 14px 24px 22px; border-top: 1px solid var(--divider); margin-top: 6px; background: var(--bg-soft); }
+.reply-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; background: var(--accent-bg); border: 1px solid var(--accent-bd); border-radius: 7px; padding: 6px 10px; }
+.reply-banner span { font-size: 12px; color: var(--accent-strong); }
+.reply-banner button { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--link); }
+.comment-form { display: flex; gap: 10px; align-items: flex-end; }
+.comment-input { flex: 1; resize: none; font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--fg); background: var(--inset); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; outline: none; min-height: 40px; }
+.comment-input:focus { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus-ring); }
+.submit-btn { flex: 0 0 auto; background: var(--success); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-radius: 9px; padding: 10px 16px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #fff; align-self: stretch; white-space: nowrap; transition: background .14s ease; }
+.submit-btn:hover { background: var(--success-hover); }
+.comment-hint { margin-top: 7px; font-size: 11px; color: var(--fg3); padding-left: 38px; }
+
+/* ===================== 공유(등록) 모달 ===================== */
+.share-modal { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px var(--shadow-strong); overflow: hidden; animation: aidev-pop .18s ease-out; }
+.share-head { padding: 20px 24px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
+.share-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--fg); }
+.share-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 15px; }
+.share-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
+.share-label .req { color: var(--danger); }
+.share-label .hint { font-weight: 500; color: var(--fg3); }
+.share-input { width: 100%; font-family: inherit; font-size: 14px; color: var(--fg); background: var(--inset); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; outline: none; }
+.share-input.mono { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 13px; }
+.share-input:focus { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus-ring); }
+.vis-toggle { display: inline-flex; background: var(--inset); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 3px; }
+.vis-opt { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; border-radius: 6px; padding: 6px 16px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--fg2); white-space: nowrap; transition: background .14s ease, color .14s ease; }
+.vis-opt.on-public { background: var(--success-bg); color: var(--success-fg); box-shadow: inset 0 0 0 1px var(--success-bd); }
+.vis-opt.on-private { background: var(--panel); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
+.share-vishint { margin-top: 7px; font-size: 11.5px; color: var(--fg3); }
+.modal-foot-actions { padding: 16px 24px; border-top: 1px solid var(--divider); background: var(--bg-soft); display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
+
+/* ===================== 토스트 / 날아다니는 이모지 ===================== */
+.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 600; background: #1f2328; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(1,4,9,.4); display: flex; align-items: center; gap: 9px; max-width: 90vw; animation: aidev-toast 2.6s ease forwards; }
+.toast .toast-ico { display: inline-flex; color: #3fb950; }
+.flyers { position: fixed; inset: 0; z-index: 650; pointer-events: none; overflow: hidden; }
+.flyer { position: fixed; pointer-events: none; user-select: none; will-change: transform, opacity; }
+
+/* ===================== 푸터 ===================== */
+.footer { border-top: 1px solid var(--border-soft); }
+.footer-inner { max-width: 1180px; margin: 0 auto; padding: 20px 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
+.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--fg3); font-size: 12px; }
+.footer-tech { font-size: 11.5px; color: var(--fg3); font-family: 'SF Mono', ui-monospace, Menlo, monospace; }
+
+/* ===================== 버튼/태그 공용 (단독 페이지·로그인) ===================== */
+.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg); transition: background .14s ease; }
+.btn:hover { background: var(--btn-hover); }
+.btn-sm { padding: 6px 11px; font-size: 12.5px; }
+.btn-primary { background: var(--link); border-color: color-mix(in srgb, var(--fg) 12%, transparent); color: #fff; }
+.btn-primary:hover { filter: brightness(1.06); }
+.btn-success { background: var(--success); border-color: color-mix(in srgb, var(--fg) 12%, transparent); color: #fff; }
+.btn-success:hover { background: var(--success-hover); }
+.muted { color: var(--fg2); }
+.back-link { font-size: 13px; color: var(--fg2); }
+.back-link:hover { color: var(--link); }
+
+/* ===================== 로그인 폴백 페이지 ===================== */
+.login-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 24px; }
+.login-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px var(--shadow); padding: 32px 28px; text-align: center; }
+.login-logo { margin-bottom: 12px; }
+.login-title { font-size: 20px; font-weight: 800; letter-spacing: .06em; margin-bottom: 18px; }
+.alert { background: var(--attn-bg); border: 1px solid var(--attn-bd); color: var(--attn-fg); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
+
+/* ===================== 단독 상세 페이지(project.ejs) ===================== */
+.detail-wrap { max-width: 760px; margin: 0 auto; padding: 28px 24px 64px; }
+
+/* ===================== 애니메이션 키프레임 ===================== */
+@keyframes aidev-flyup { 0%{transform:translateY(0) scale(.5);opacity:0} 12%{opacity:1} 100%{transform:translateY(-180px) scale(1.15);opacity:0} }
+@keyframes aidev-sparkle { 0%{transform:scale(0) rotate(0);opacity:1} 100%{transform:scale(1.5) rotate(120deg);opacity:0} }
+@keyframes aidev-rocket { 0%{transform:translateX(-40px) rotate(-12deg);opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{transform:translateX(calc(100vw + 60px)) rotate(-12deg);opacity:0} }
+@keyframes aidev-shake { 10%,90%{transform:translateX(-1px) rotate(-1deg)} 20%,80%{transform:translateX(2px) rotate(1.5deg)} 30%,50%,70%{transform:translateX(-4px) rotate(-2deg)} 40%,60%{transform:translateX(4px) rotate(2deg)} }
+@keyframes aidev-stamp { 0%{transform:scale(2.4) rotate(-22deg);opacity:0} 55%{transform:scale(.86) rotate(-11deg);opacity:1} 100%{transform:scale(1) rotate(-11deg);opacity:1} }
+@keyframes aidev-pop { 0%{transform:scale(.96) translateY(6px);opacity:0} 100%{transform:scale(1) translateY(0);opacity:1} }
+@keyframes aidev-fade { from{opacity:0} to{opacity:1} }
+@keyframes aidev-toast { 0%{transform:translateX(-50%) translateY(12px);opacity:0} 12%{transform:translateX(-50%) translateY(0);opacity:1} 88%{transform:translateX(-50%) translateY(0);opacity:1} 100%{transform:translateX(-50%) translateY(8px);opacity:0} }
+
+/* ===================== 반응형 ===================== */
+@media (max-width: 900px) {
+ .tools-grid { grid-template-columns: repeat(2, 1fr); }
+ .myproj-grid { grid-template-columns: repeat(2, 1fr); }
+ .feed-grid { grid-template-columns: 1fr; }
+ .brand-sub { display: none; }
+}
+@media (max-width: 560px) {
+ .tools-grid, .myproj-grid { grid-template-columns: 1fr; }
+ .hdr-search { display: none; }
+}
diff --git a/src/helpers.js b/src/helpers.js
new file mode 100644
index 0000000..531d662
--- /dev/null
+++ b/src/helpers.js
@@ -0,0 +1,98 @@
+// 뷰 헬퍼 — 빌드/프런트 프레임워크 없이 서버에서 SVG 를 직접 만들어 EJS 로 출력한다.
+// (디자인 레퍼런스의 Octicon 패스 / identicon 알고리즘 / 언어색을 그대로 포팅)
+// res.locals 에 실어 모든 뷰에서 icon()/identicon()/langColor() 로 사용.
+
+// GitHub Octicon 16x16 패스 모음.
+const OCTICONS = {
+ code: ' ',
+ search: ' ',
+ sun: ' ',
+ moon: ' ',
+ caret: ' ',
+ signout: ' ',
+ lock: ' ',
+ globe: ' ',
+ repo: ' ',
+ starFill: ' ',
+ star: ' ',
+ heart: ' ',
+ heartFill: ' ',
+ comment: ' ',
+ plus: ' ',
+ x: ' ',
+ reply: ' ',
+ check: ' ',
+ ext: ' ',
+ trash: ' ',
+};
+
+// 인라인 SVG 아이콘 문자열. fill 기본은 currentColor(부모 색 상속).
+export function icon(name, opts = {}) {
+ const size = opts.size || 16;
+ const fill = opts.fill || "currentColor";
+ const path = OCTICONS[name] || OCTICONS.repo;
+ return (
+ `${path} `
+ );
+}
+
+// 언어 → 색(카드의 언어 점).
+const LANG_COLORS = {
+ Python: "#3572A5", TypeScript: "#3178c6", JavaScript: "#f1e05a",
+ Go: "#00ADD8", Rust: "#dea584", Shell: "#89e051", Java: "#b07219",
+};
+export function langColor(lang) {
+ return LANG_COLORS[lang] || "#8b949e";
+}
+
+// 태그에서 대표 언어 추론(프로젝트 등록 시 lang 저장용).
+export function langFromTags(tags) {
+ const t = (tags || []).map((x) => String(x).toLowerCase());
+ if (t.includes("fastapi") || t.includes("python") || t.includes("django")) return "Python";
+ if (t.includes("react") || t.includes("ts") || t.includes("typescript") || t.includes("next")) return "TypeScript";
+ if (t.includes("go") || t.includes("golang")) return "Go";
+ if (t.includes("rust")) return "Rust";
+ if (t.includes("node") || t.includes("js")) return "JavaScript";
+ return "TypeScript";
+}
+
+// 문자열 → 결정적 해시(아바타/색 시드).
+function hashSeed(seed) {
+ let h = 0;
+ const s = String(seed);
+ for (let i = 0; i < s.length; i++) h = (h * 31 + s.charCodeAt(i)) >>> 0;
+ return h;
+}
+
+// 사번 기반 identicon 아바타(5x5 대칭 격자). 디자인과 동일한 시각.
+export function identicon(seed, size = 28) {
+ const h = hashSeed(seed);
+ const hue = h % 360;
+ const sat = 48 + (h % 22);
+ const color = `hsl(${hue},${sat}%,52%)`;
+ const grid = 5;
+ const on = new Array(25).fill(false);
+ for (let col = 0; col < 3; col++) {
+ for (let row = 0; row < 5; row++) {
+ const bit = (h >> (col * 5 + row)) & 1;
+ on[row * 5 + col] = !!bit;
+ on[row * 5 + (4 - col)] = !!bit;
+ }
+ }
+ const inner = Math.round(size * 0.74);
+ const cell = inner / grid;
+ let rects = "";
+ for (let r = 0; r < grid; r++) {
+ for (let c = 0; c < grid; c++) {
+ if (on[r * grid + c]) {
+ rects += ` `;
+ }
+ }
+ }
+ const radius = Math.max(5, Math.round(size * 0.2));
+ const svg = `${rects} `;
+ return (
+ `${svg} `
+ );
+}
diff --git a/views/_header.ejs b/views/_header.ejs
index 20eb123..98887e5 100644
--- a/views/_header.ejs
+++ b/views/_header.ejs
@@ -1,17 +1,61 @@
-
+
<%= brand %>
+
-
+