/* 2026 제4차 초거대AI 빌드업 커뮤니티 — 좌상단 포스터 팝업 */

.buildup-overlay {
  position: fixed;
  top: 64px;
  left: 16px;
  z-index: 1200;
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.buildup-overlay .buildup-dialog {
  pointer-events: auto;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
}

.buildup-dialog {
  --bu-blue: #0088cc;
  width: min(440px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

/* 닫기 버튼은 포스터(QR) 밖 — 상단 바 */
.buildup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.buildup-chrome-label {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.buildup-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.buildup-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

.buildup-poster-wrap {
  line-height: 0;
  background: #f8fafc;
}

.buildup-poster {
  display: block;
  width: 100%;
  height: auto;
  /* 세로 포스터 전체가 보이도록 — 스크롤 없이 맞춤 */
  max-height: min(72vh, 620px);
  object-fit: contain;
  object-position: top center;
}

.buildup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px 10px 10px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.buildup-actions .bu-btn {
  appearance: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.buildup-actions .bu-btn-ghost {
  background: transparent;
  border-color: #cbd5e1;
  color: #475569;
}

.buildup-actions .bu-btn-ghost:hover {
  background: #f8fafc;
}

.buildup-actions .bu-btn-primary {
  background: var(--bu-blue);
  color: #fff;
}

.buildup-actions .bu-btn-primary:hover {
  background: #0074ad;
}

.buildup-page {
  min-height: 100vh;
  margin: 0;
  padding: 24px 16px 40px;
  background: #eef6fb;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

.buildup-page-inner {
  width: min(460px, 100%);
  margin: 0 auto;
}

.buildup-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: #64748b;
}

.buildup-page-toolbar a {
  color: #0088cc;
  font-weight: 650;
  text-decoration: none;
}

.buildup-page .buildup-dialog {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

@media (max-width: 640px) {
  .buildup-overlay {
    top: 56px;
    left: 10px;
    right: 10px;
    width: auto;
  }

  .buildup-poster {
    max-height: min(62vh, 520px);
  }
}
