/* Trinity Quick Menu — netlify 원본(global-ui.css) 디자인 1:1 이식
 * 원본: https://effulgent-sunflower-06653c.netlify.app/global-ui.css
 * 원본 클래스(tg-pc-quick / tg-quick-btn / tg-mobile-bar) 구조를 그대로 사용.
 * 원본의 body[data-tg-ui] 게이팅 및 var(--tg-*) 변수만 제거/인라인함. */

:root {
  --tg-green: #3e522d;
  --tg-green-dark: #2d3b1a;
  --tg-naver: #03c75a;
  --tg-kakao: #fee500;
  --tg-text: #1a1f16;
  --tg-border: #e9e4db;
}

/* 기존 퀵메뉴 마크업 숨김 (common.css의 #quick-menu 등) */
#quick-menu,
#quick-menu-mobile {
  display: none !important;
}

/* ===== PC Quick Menu (원본 .tg-pc-quick) ===== */
.tg-pc-quick {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 10001;
  flex-direction: column;
  gap: 12px;
  font-family: "Pretendard", "Noto Sans KR", "NanumSquare", -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (min-width: 1280px) {
  .tg-pc-quick { display: flex; }
}

.tg-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 16px;
  width: 180px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--tg-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--tg-text);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.tg-quick-btn:hover {
  width: 190px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateX(-4px);
}
.tg-quick-btn span {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tg-quick-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tg-quick-btn__icon svg { width: 20px; height: 20px; }

.tg-quick-btn--naver { border-color: rgba(3, 199, 90, 0.2); }
.tg-quick-btn--naver .tg-quick-btn__icon { background: var(--tg-naver); color: #fff; font-weight: 900; font-size: 14px; }

.tg-quick-btn--kakao .tg-quick-btn__icon { background: var(--tg-kakao); color: #3c1e1e; }

.tg-quick-btn--dark .tg-quick-btn__icon { background: var(--tg-text); color: #fff; }

.tg-quick-btn--green {
  background: var(--tg-green);
  border-color: var(--tg-green);
  color: #fff;
  margin-top: 4px;
}
.tg-quick-btn--green .tg-quick-btn__icon { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ===== Mobile bottom bar (원본 .tg-mobile-bar) ===== */
.tg-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  grid-template-columns: repeat(4, 1fr);
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--tg-border);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom, 0);
  font-family: "Pretendard", "Noto Sans KR", "NanumSquare", -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (max-width: 1023px) {
  .tg-mobile-bar { display: grid; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)); }
}
.tg-mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  color: var(--tg-text);
  border-right: 1px solid rgba(233, 228, 219, 0.5);
}
.tg-mobile-bar a:last-child { border-right: none; }
.tg-mobile-bar a:active { background: #f9f9f9; }
.tg-mobile-bar a.tg-mbar-phone {
  background: var(--tg-green);
  color: #fff;
}
.tg-mobile-bar a.tg-mbar-phone:active { background: var(--tg-green-dark); }
.tg-mobile-bar__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-mobile-bar__naver {
  font-size: 18px;
  font-weight: 900;
  color: var(--tg-naver);
  line-height: 1;
}
.tg-mobile-bar__kakao {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--tg-kakao);
  color: #3c1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-mobile-bar__kakao svg {
  width: 14px;
  height: 14px;
}
