/* ============================================================
   CoinLAB 공용 크롬 (chrome.css)
   ------------------------------------------------------------
   탑바(header) · 메뉴 모달(overlay) · 푸터(site-footer)의 '옷(스타일)'.
   화면마다 베껴 두던 걸 한 곳에 모았다 → 한 번 고치면 전 화면 통일.
   골격(HTML)은 chrome.js가 꽂고, 이 파일이 스타일을 입힌다.
   색은 각 화면 :root 변수(--gold/--ink/--muted/--long 등)를 그대로 참조한다.

   이 파일은 각 HTML의 <style> '뒤'에서 불러 옛 인라인 크롬 CSS를 덮어쓴다.
   ============================================================ */

/* ── 탑바 ────────────────────────────────────────────────── */
header {
  position: relative;   /* 아래 골드 라인(::after) 배치 기준 */
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; padding-bottom: 18px;
  border-bottom: none;   /* 회색 보더 끔(각 화면에 또 있어도 덮음) — 라인은 ::after 골드로 */
  gap: 16px;
}
/* 탑바 아래 골드 헤어라인 — 가운데만 은은히 빛나는 골드 그라데이션 */
header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,130,.5), transparent);
}
/* brand는 화면에 따라 <a>(홈 링크) 또는 <div id=brandHome>(새로고침)로 꽂힌다.
   둘 다 클릭 가능해야 하므로 cursor:pointer를 공통으로 보장. */
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; cursor: pointer; transition: opacity .15s ease; }
.brand:hover { opacity: .78; }
.brand-title { font-size: 24px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); line-height: 1; }
.brand-title .lab { color: var(--gold); }
.brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.header-right { display: flex; align-items: center; gap: 10px; }
.clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .5px; color: var(--muted); white-space: nowrap;
}
.menu-btn {
  /* a(Back 등 링크)와 button(Menu)이 태그는 달라도 높이·세로정렬 일치 — 전 화면 공용 기준 */
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 1px; color: var(--muted);
  border: 1px solid var(--glass-edge); border-radius: 10px;
  padding: 9px 16px; background: var(--glass); backdrop-filter: blur(10px);
  cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s;
}
.menu-btn:hover { border-color: rgba(200,168,130,.5); color: var(--text); }

/* ── 메뉴 모달 ───────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,5,9,.55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  width: min(360px, 88vw); padding: 28px 0 18px;
  background: linear-gradient(165deg, rgba(26,27,35,.95), rgba(13,14,20,.97));
  border: 1px solid var(--glass-edge); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.92) translateY(8px); opacity: .4;
  transition: transform .32s cubic-bezier(.65,0,.35,1), opacity .32s ease;
}
.overlay.open .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,130,.6), transparent);
}
.modal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 26px 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 10px;
}
.modal-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 3px; color: var(--gold); text-transform: uppercase;
}
.modal-close {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase;
  background: none; border: none; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--gold-hi); }
.menu-list { padding: 4px 16px; }
.menu-item {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-radius: 11px;
  color: var(--text); text-decoration: none; font-size: 15px; letter-spacing: .2px;
  font-family: 'JetBrains Mono', monospace;
  transition: background .18s, color .18s;
}
.menu-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; border-radius: 2px;
  background: var(--gold); transform: translateY(-50%);
  transition: height .22s cubic-bezier(.65,0,.35,1);
}
.menu-item:hover { background: rgba(200,168,130,.08); color: var(--ink); }
.menu-item:hover::before { height: 18px; }
.menu-item.active { color: var(--gold-hi); }
.menu-item.active::before { height: 22px; }
.menu-item.soon { color: var(--muted); cursor: default; }
.menu-item.soon:hover { background: none; }
.menu-item.soon:hover::before { height: 0; }
.tag-soon {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); opacity: .6;
  border: 1px solid rgba(255,255,255,.1); border-radius: 5px; padding: 2px 7px;
}
.modal-foot {
  margin: 10px 26px 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 1px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--long); box-shadow: 0 0 8px var(--long);
}

/* ── 푸터 ────────────────────────────────────────────────── */
.site-footer {
  position: relative;   /* 위 골드 라인(::before) 배치 기준 */
  margin-top: 48px; padding: 24px 0 0;
  border-top: none;   /* 회색 보더 끔 — 라인은 ::before 골드로 (탑바와 짝) */
  text-align: center;
}
/* 푸터 위 골드 헤어라인 — 탑바 아래 라인과 짝을 이뤄 페이지를 위아래 골드로 감쌈 */
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,130,.5), transparent);
}
.footer-links {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; letter-spacing: .5px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-links a.active { color: var(--gold); }
.footer-links .sep { color: rgba(255,255,255,.18); margin: 0 9px; }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .5px; color: var(--muted);
}
.footer-copy .lab { color: var(--gold); }

/* ── 모바일: 폰에선 태그·시계 숨겨 햄버거 자리 확보 ──────────── */
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .clock { display: none; }
  .menu-btn { flex-shrink: 0; }
}
