/* Gedeelde kop, rechtstreeks gebaseerd op de header van de Chatmee-homepagina. */
.chatmee-home-header {
  width: min(100% - 32px,1180px);
  min-height: 88px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
  border-bottom: 1px solid var(--line,rgba(255,255,255,.16));
  border-image: none;
  position: relative;
  box-sizing: border-box;
}

.chatmee-home-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,var(--pink,#ff4fc4),var(--cyan,#35d7ff),var(--gold,#ffd86b),var(--pink,#ff4fc4));
  background-size: 220% 100%;
  animation: chatmee-header-line-flow 7s ease-in-out infinite;
}

.chatmee-home-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text,#e3e7f0);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.chatmee-home-header .brand img {
  display: block;
  width: 185px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(22,119,255,.18));
}

.chatmee-home-header .header-actions {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.chatmee-home-header .top-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--menu-bg,rgba(12,16,31,.72)),var(--menu-bg,rgba(12,16,31,.72))) padding-box,
    linear-gradient(90deg,var(--pink,#ff4fc4),var(--cyan,#35d7ff),var(--gold,#ffd86b),var(--pink,#ff4fc4)) border-box;
  background-size: 100% 100%,220% 100%;
  backdrop-filter: blur(14px);
  animation: chatmee-header-menu-flow 8s ease-in-out infinite;
  order: 0;
}

.chatmee-home-header .top-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--text,#e3e7f0);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease,background .16s ease;
}

.chatmee-home-header .top-menu a:hover {
  background: var(--soft,rgba(255,255,255,.08));
  color: var(--primary,#35d7ff);
}

.chatmee-home-header .top-menu a.primary {
  background: var(--primary,#35d7ff);
  color: #06101a;
}

.chatmee-home-header .top-menu a.primary:hover {
  background: var(--primary-hover,#62e2ff);
  color: #06101a;
}

.chatmee-home-header .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line,rgba(255,255,255,.16));
  border-radius: 8px;
  background: var(--menu-bg,rgba(12,16,31,.72));
  backdrop-filter: blur(14px);
  order: 0;
}

.chatmee-home-header .theme-toggle button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text,#e3e7f0);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chatmee-home-header .theme-toggle button:hover {
  background: var(--soft,rgba(255,255,255,.08));
  color: var(--primary,#35d7ff);
}

.chatmee-home-header .theme-toggle button.is-active {
  background: var(--primary,#35d7ff);
  color: #06101a;
}

.chatmee-home-header .language-switch-slot {
  flex: 0 0 auto;
  order: 0;
}

body > .auth-site-header + .page {
  height: calc(100vh - 88px);
  height: calc(100dvh - 88px);
  min-height: 0;
  padding-top: 8px !important;
}

.auth-site-header {
  display: flex !important;
}

@keyframes chatmee-header-line-flow {
  0%,100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes chatmee-header-menu-flow {
  0%,100% { background-position: 0 0,0 50%; }
  50% { background-position: 0 0,100% 50%; }
}

@media (max-width: 620px) {
  .chatmee-home-header {
    width: min(100% - 22px,1180px);
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .chatmee-home-header .brand img {
    width: min(185px,62vw);
    height: auto;
    max-height: 72px;
  }

  .chatmee-home-header .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .chatmee-home-header .top-menu,
  .chatmee-home-header .theme-toggle {
    width: 100%;
  }

  .chatmee-home-header .top-menu {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .chatmee-home-header .theme-toggle button {
    flex: 1;
  }

  body > .auth-site-header + .page {
    height: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatmee-home-header::after,
  .chatmee-home-header .top-menu {
    animation: none;
  }
}
