/* PokerCircuit shared site header. Reference: the homepage header.
   Markup is generated by assets/site-header/site-header.cjs; behavior is in site-header.js. */
:root { --app-header-height: calc(52px + env(safe-area-inset-top, 0px)); }
body { padding-top: var(--app-header-height); }

.site-header {
  background: #141424;
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top, 0px);
  height: var(--app-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.site-logo img { width: 28px; height: 28px; border-radius: 6px; }
.site-logo-word {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1;
}
.site-logo-word strong { font-weight: 700; }
.site-logo-word span { font-weight: 400; }
.site-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.site-nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.12s;
}
.site-nav-link:hover,
.site-nav-link.active { color: #fff; }
.site-subscribe {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #C43828;
  border: 1px solid #C43828;
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.12s;
}
.site-subscribe:hover { opacity: 0.88; }
.site-starred {
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fbbf24;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.site-starred.visible { display: flex; }

/* Hamburger menu (mobile only) */
.site-menu-btn {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.75);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.site-menu {
  display: none;
  position: fixed;
  top: var(--app-header-height);
  right: 0.75rem;
  background: #141424;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.35rem;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  z-index: 250;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.site-menu.open { display: block; }
.site-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 6px;
}
.site-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.site-menu a.active { color: #fff; background: rgba(255,255,255,0.04); }

@media (max-width: 640px) {
  .site-nav-link,
  .site-header .site-subscribe,
  .site-starred { display: none !important; }
  .site-menu-btn { display: flex; }
}
