/**
 * <site-header> — light-DOM styles
 * Mirrors the shadow-DOM styles in site-header.js for non-component usage.
 * All values come from ../../css/tokens.css (--y888-*).
 */

.site-header {
  display: block;
  width: 100%;
  font-family: var(--y888-font-family);
}

/* ---- 1. download banner ---- */
.site-header .download-banner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 0.6rem;
  padding-right: var(--y888-space-md);
  background: #181718;
}
.site-header .download-banner[hidden] {
  display: none;
}
.site-header .download-banner__close {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--y888-space-lg);
  font-size: var(--y888-font-size-sm);
  color: var(--y888-primary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-header .download-banner__content {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header .download-banner__image {
  display: block;
  max-height: 0.5rem;
  max-width: 100%;
  object-fit: contain;
}
.site-header .download-banner__cta {
  flex-shrink: 0;
  padding: 0.08rem 0.2rem;
  font-size: var(--y888-font-size-xs);
  font-weight: var(--y888-font-weight);
  color: var(--y888-text);
  background: var(--y888-primary);
  border: 0;
  border-radius: var(--y888-radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

/* ---- 2. header bar ---- */
.site-header .header-bar {
  display: flex;
  align-items: center;
  height: 0.9rem;
  padding-right: var(--y888-space-md);
  background: var(--y888-bg);
  border-bottom: 0.01rem solid var(--y888-border);
}
.site-header .header-bar__left,
.site-header .header-bar__right {
  display: flex;
  align-items: center;
}
.site-header .header-bar__center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.site-header .menu-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.12rem;
  margin-left: 0.05rem;
  font-size: 0.42rem;
  color: var(--y888-text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-header .site-logo {
  display: block;
  max-width: 2.6rem;
  /* Reference: logo height .74rem (original spec) */
  max-height: 0.74rem;
  height: 0.74rem;
  object-fit: contain;
  margin-left: 0;
  margin-right: 0;
}

/* ---- auth buttons ---- */
.site-header .auth-btn {
  width: 1.36rem;
  height: 0.52rem;
  padding: 0 var(--y888-space-xs);
  font-size: var(--y888-font-size-sm);
  font-weight: var(--y888-font-weight);
  white-space: nowrap;
  border-radius: var(--y888-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header .auth-btn--login {
  margin-right: 0.15rem;
  color: var(--y888-text);
  background: var(--y888-primary);
  border: thin solid var(--y888-primary);
}
.site-header .auth-btn--register {
  color: var(--y888-primary);
  background: transparent;
  border: thin solid var(--y888-primary);
}
.site-header .register-wrap {
  position: relative;
  display: inline-flex;
}
.site-header .register-badge {
  position: absolute;
  top: -0.2rem;
  right: 0;
  z-index: 1;
  max-width: 1rem;
  padding: 0 0.08rem;
  font-size: var(--y888-font-size-xs);
  line-height: 0.3rem;
  color: var(--y888-text);
  background: var(--y888-success);
  border-radius: var(--y888-radius-sm);
  white-space: nowrap;
}
