/* 모든 스타일은 #bch-header 범위 안에서만 동작 */
#bch-header {
  --bch-bg: #0b0f14;
  --bch-card: #111723;
  --bch-muted: #0e141e;
  --bch-primary: #47c3ff;
  --bch-accent: #9cff57;
  --bch-text: #e8ecf2;
  --bch-sub: #a8b0bd;
  --bch-border: #2a3446;
  --bch-radius: 16px;
  --bch-shadow: 0 10px 30px rgba(0,0,0,.25);
  --bch-brand1: #47c3ff;
  --bch-brand2: #9cff57;
  --bch-brand3: #ff8ad6;
}

/* 레이아웃 공통 (헤더 범위 한정) */
#bch-header .bch-container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
#bch-header .bch-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(8px);
  background:#000 !important;
  background-image:none !important; /* 기존 그라데이션 제거 */
  border-bottom: 1px solid var(--bch-border);
}

#bch-header .bch-container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: nowrap;
}

/* Logo */
#bch-header .bch-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

#bch-header .bch-logo-text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial,
               "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC",
               "Noto Sans Arabic", "Noto Sans Devanagari", sans-serif !important;
  font-weight: 800;
  letter-spacing: 0;
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  position: relative;
  top: 1px; /* baseline 맞춤 */
}

#bch-header .bch-logo-text span { display: inline; }
#bch-header .bch-brand-blockchain { color: var(--bch-brand1); }
#bch-header .bch-brand-casino { color: var(--bch-brand2); }
#bch-header .bch-brand-hub { color: var(--bch-brand3); }
#bch-header .bch-brand-dotcom { color: #fff; }

/* Right area (menu + language) */
#bch-header .bch-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

#bch-header .bch-nav-links {
  display: flex;
  gap: 24px;
  color: var(--bch-sub);
}

#bch-header .bch-nav-links a {
  color: var(--bch-sub);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(0.9rem, 0.75rem + 0.35vw, 1.05rem);
  padding: 8px 0;
  display: flex;
  align-items: center;
}

#bch-header .bch-nav-links a:hover { color: var(--bch-text); }

/* CTA + Language */
#bch-header .bch-cta { display: flex; align-items: center; gap: 12px; }
#bch-header .bch-lang {
  display: flex;
  align-items: center; /* 수직 중앙 정렬 */
  gap: 8px;
}

#bch-header .bch-translate-label {
  color: #fff;             /* 흰색 */
  font-weight: 700;        /* Bold */
  font-size: clamp(0.9rem, 0.75rem + 0.35vw, 1.05rem);
  line-height: 1;
  display: flex;
  align-items: center;     /* 라벨과 셀렉트 박스 높이 일치 */
  height: auto;
  margin: 0;
  padding: 0;
}

#bch-header select.bch-select {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-weight: 700;
}

/* ✅ 드롭다운 펼쳤을 때 (Firefox, Chrome 일부 반영) */
#bch-header select.bch-select option {
  background-color: #0e141e; /* 드롭다운 내부 배경 */
  color: #fff;               /* 글자색 */
  padding: 8px 10px;
}

/* ✅ 크롬·엣지 기본 화살표 흰색 보정 */
#bch-header select.bch-select::-ms-expand {
  background-color: transparent;
  color: #fff;
}

/* ✅ Safari용 (Mac) 보정 */
@supports (-webkit-appearance: none) {
  #bch-header select.bch-select {
    -webkit-appearance: none;
    background-color: rgba(255,255,255,0.05);
  }
}
#bch-header .bch-hide-mobile {}

/* Hamburger */
#bch-header .bch-hamburger {
  display: none;
  width: 28px;
  height: 24px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

#bch-header .bch-hamburger span {
  display: block;
  height: 3px;
  background: var(--bch-text);
  border-radius: 2px;
}

/* ===== Dropdown ===== */
#bch-header .bch-nav-links .bch-nav-dropdown {
  position: relative;
  display: inline-block;
}

#bch-header .bch-nav-links .bch-nav-dropdown__toggle {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 8px 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.75rem + 0.35vw, 1.05rem);
  line-height: 1;
}

#bch-header .bch-nav-links .bch-nav-dropdown__toggle:hover {
  color: var(--bch-text);
}

#bch-header .bch-nav-links .bch-nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 6px;
  background: var(--bch-card);
  border: 1px solid var(--bch-border);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  display: none;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

#bch-header .bch-nav-links .bch-nav-dropdown__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bch-text);
}

#bch-header .bch-nav-links .bch-nav-dropdown__menu a:hover,
#bch-header .bch-nav-links .bch-nav-dropdown__menu a:focus {
  background: rgba(255,255,255,.06);
  outline: 0;
}

#bch-header .bch-nav-dropdown.open .bch-nav-dropdown__menu { display: block; }

/* Hover bridge(데스크톱) */
@media (min-width: 901px) {
  #bch-header .bch-nav-links .bch-nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    z-index: 29;
    background: transparent;
  }
}

/* ===== Responsive ===== */
@media (max-width:1180px) {
  #bch-header .bch-container { flex-wrap: wrap; row-gap: 10px; }
  #bch-header .bch-logo { order: 1; }
  #bch-header .bch-nav-right { order: 2; margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  #bch-header .bch-nav-links { flex: 1 1 auto; flex-wrap: wrap; gap: 12px; }
  #bch-header .bch-cta { flex: 0 0 auto; }
}

@media (max-width:900px) {
  #bch-header .bch-nav-links .bch-nav-dropdown__menu {
    position: static;
    box-shadow: none;
    margin-top: 6px;
  }
}

@media (max-width:880px) {
  #bch-header .bch-nav-links a { font-size: 1.05rem; }
}

@media (max-width:720px) {
  #bch-header .bch-container { padding-inline: 12px; }
  #bch-header .bch-hamburger { display: flex; }
  #bch-header .bch-nav-right { display: none; }
  #bch-header .bch-nav-right.is-open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    background: var(--bch-card);
    border-radius: var(--bch-radius);
    padding: 12px;
    margin-top: 10px;
  }
  #bch-header .bch-nav-links {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    background: var(--bch-card);
    border-radius: var(--bch-radius);
    padding: 12px;
  }
  #bch-header .bch-nav-links.is-open { display: flex; }
  #bch-header .bch-nav-links a {
    padding: 8px 0;
    border-bottom: 1px solid var(--bch-border);
  }
  #bch-header .bch-hide-mobile { display: none !important; }
  #bch-header .bch-nav-right.is-open .bch-hide-mobile { display: inline !important; }
}

/* 한 줄 유지(데스크톱) */
#bch-header .bch-nav-links a,
#bch-header .bch-nav-links .bch-nav-dropdown__toggle {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width:720px) {
  #bch-header .bch-nav-links a,
  #bch-header .bch-nav-links .bch-nav-dropdown__toggle {
    white-space: normal;
  }
}



/* === 드롭다운이 다른 메뉴보다 위에 보이도록 === */
#bch-header { position: relative; z-index: 9999; }
#bch-header .bch-nav-dropdown__menu { z-index: 10000; }
#bch-header .bch-nav,
#bch-header .bch-container,
#bch-header .bch-nav-right { overflow: visible !important; }


/* Google Website Translator가 띄우는 상단 배너/툴팁 제거 */
#goog-gt-tt,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  visibility: hidden !important;
}

/* 배너가 뜰 때 강제로 내려가는 오프셋 무효화 */
html, body {
  top: 0px !important;
}

/* 헤더가 항상 맨 위에 나오도록 */
#bch-header {
  position: relative;
  z-index: 2147483647; /* 최상위 */
}



#bch-header .bch-brand-news {
  font-size: 0.8em;        /* 👈 전체 대비 약 70% 크기 */
  font-weight: 700;        /* 약간 가볍게 */
  color: #ffffff;          /* 흰색 유지 */
  margin-left: 4px;        /* BlockchainCasinoHub 와 살짝 간격 */
  opacity: 0.95;           /* 부드럽게 */
  position: relative;
  top: -1px;               /* baseline 미세 조정 */
}

/* 🔹 모바일 (720px 이하): 로고 고정 크기 & 정렬 일치 */
@media (max-width: 720px) {
  #bch-header .bch-logo {
    align-items: baseline; /* 기준선 정렬 */
  }

  #bch-header .bch-logo-text {
    font-size: 2.3rem !important;   /* 완전 고정 (clamp 무시) */
    line-height: 1.05 !important; /* 데스크탑과 동일 높이 */
    transform: scale(0.9);        /* 모바일 대비 시각 비율 보정 */
    transform-origin: left center;
  }

  #bch-header .bch-brand-news {
    font-size: 0.85em !important;
    top: -1px;
    opacity: 0.95;
  }
}


