/* ============================================================================
   WOW — Top Bar (Visuals Only)
   File: wow-css/topbar.css
   ----------------------------------------------------------------------------
   Uses semantic theme tokens provided by the canvas:
     --bg, --bg-1, --bg-2, --text, --text-muted, --border, --fresh-1, --fresh-2
   No layout guesses here — just pixels.
   ========================================================================== */

/* noop anchor (easy to find file when scanning) */
#wow_topbar_reset { display: none; }



/* ------------------------------------------------------------
   1) HOST CONTAINER
   ------------------------------------------------------------ */
.wow-topbar {
  /* structure */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;

  /* visuals */
  background: var(--bg-1);
  color: var(--text);
  /* border: 1px solid var(--border);*/
  border-radius: 12px 12px 0 0; 
  padding: 18px 24px 6px 24px;  /* less space on the right */

  /* isolate from page RTL so logo stays left, user stays right */
  direction: ltr;
}



/* ------------------------------------------------------------
   2) LEFT SIDE (LOGO WRAP)
   ------------------------------------------------------------ */
.wow-topbar .tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* logo block */
.wow-topbar .tb-logo {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  letter-spacing: 0.2px;
  font-weight: 700;
  text-decoration: none;
}

/* "local" */
.wow-topbar .tb-logo-word1 {
  color: var(--text);
  opacity: 0.9;
}

/* "WOW" — gradient text fill (no underline element) */
.wow-topbar .tb-logo-word2 {
  font-weight: 700;
  background: linear-gradient(90deg, var(--fresh-1), var(--fresh-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* safety for non-WebKit */
}

/* old underline element not used — keep harmless if still in DOM */
.wow-topbar .tb-logo-gradient { display: none; }


  /* ------------------------------------------------------------
   LOGO FONT STYLE
   ------------------------------------------------------------ */
.wow-topbar .tb-logo {
  font-family: "Assistant", "Heebo", sans-serif;  /* same family as rest of WOW */
  font-size: 20px;                               /* slightly larger for emphasis */
  font-weight: 600;                              /* strong but not overbearing */
  letter-spacing: 0.4px;                         /* subtle spacing */
  text-transform: none;                          /* keep "localWOW" natural case */
}

/* ------------------------------------------------------------
   3) RIGHT SIDE (USERNAME + ICONS)
   ------------------------------------------------------------ */
.wow-topbar .tb-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ------------------------------------------------------------
   THEME TOGGLE (ACCOUNT ONLY)
   ------------------------------------------------------------ */
.wow-topbar .tb-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.wow-topbar .tb-theme__toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.wow-account-theme-dark .wow-topbar .tb-theme__toggle {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.wow-topbar .tb-theme__knob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
  background: #111;
}

.wow-account-theme-dark .wow-topbar .tb-theme__knob {
  background: #fff;
}

.wow-topbar .tb-theme__toggle.is-dark .tb-theme__knob {
  left: 3px;
}

.wow-topbar .tb-theme__toggle.is-light .tb-theme__knob {
  left: 23px;
}

/* username always reads LTR even on RTL pages */
.wow-topbar .tb-username {
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.95;
  direction: ltr;
  unicode-bidi: plaintext;
}

/* icon buttons (logout / dashboard / account / login) */
.wow-topbar .tb-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.wow-topbar .tb-icon:hover  { background: var(--bg-2); }
.wow-topbar .tb-icon:active { transform: translateY(1px); }
.wow-topbar .tb-icon svg    { width: 18px; height: 18px; display: block; }



/* ------------------------------------------------------------
   4) INLINE LOGIN FORM (MAGIC LINK)
   ------------------------------------------------------------ */
/* Legacy inline magic-link login UI removed. */

/* ------------------------------------------------------------
   4) LOGIN TEXT BUTTON
   ------------------------------------------------------------ */
.wow-topbar .tb-login-text {
  font-family: "Assistant", "Heebo", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px; /* keep topbar height consistent with icon buttons */
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  opacity: 0.95;
}

.wow-topbar .tb-login-text:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wow-topbar .tb-login-text:active { transform: translateY(1px); }



.wow-topbar .tb-username {
  font-family: "Assistant", "Heebo", sans-serif;  /* same family as rest of WOW */
  font-size: 13px;
  font-weight: 500;
  margin-right: 16px;   /* adds breathing room before icons */
}
