/* Site header: design "A. Slim Gradient". Markup: mu-plugins/vortex-header.php. */

.vx-header {
  position: relative;
  z-index: 9990;
  background: linear-gradient(100deg, #6d2373 0%, #852b89 38%, #bd4030 100%);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
}
.vx-header *, .vx-header *:before, .vx-header *:after { box-sizing: border-box; }
.vx-header a { text-decoration: none; }
.vx-header img { display: block; max-width: none; }

.vx-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
}
.vx-logo { display: flex; flex: none; }
.vx-logo img { width: auto; height: 44px; }

.vx-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.vx-side { display: flex; align-items: center; gap: 10px; flex: none; }
.vx-menu { position: relative; }

/* Top-level items */
.vx-header .vx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s;
}
.vx-header .vx-link:hover,
.vx-menu.is-open > .vx-link { background: rgba(255, 255, 255, .16); }
.vx-user { padding: 0 10px 0 6px !important; }
.vx-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-face {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #852b89;
  font-size: 14px;
  font-weight: 800;
  object-fit: cover;
}

/* Wallet balance */
.vx-header .vx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  transition: background-color .15s;
}
.vx-header .vx-pill:hover { background: rgba(255, 255, 255, .26); }

/* Download */
.vx-header .vx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: #2a2e45;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s;
}
.vx-header .vx-cta:hover { background: #1c1f31; }

/* Theme switch */
.vx-theme {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: background-color .15s;
}
.vx-theme:hover { background: rgba(255, 255, 255, .16); }
.vx-theme:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vx-theme-sun { display: none; }
.vx-theme[aria-pressed="true"] .vx-theme-moon { display: none; }
.vx-theme[aria-pressed="true"] .vx-theme-sun { display: block; }

/* Dropdowns: white cards, solid red highlight */
.vx-drop {
  position: absolute;
  top: 100%;
  left: 0;
  width: 248px;
  margin-top: 0;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(26, 18, 46, .3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s, transform .12s, visibility .12s;
}
.vx-drop-right { right: 0; left: auto; width: 220px; }
.vx-menu.is-open > .vx-drop { visibility: visible; opacity: 1; transform: none; }
@media (hover: hover) and (min-width: 981px) {
  .vx-menu:hover > .vx-drop { visibility: visible; opacity: 1; transform: none; }
  .vx-menu:hover > .vx-link { background: rgba(255, 255, 255, .16); }
}
.vx-label {
  padding: 8px 12px 6px;
  color: #5c6362;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vx-header .vx-pick {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: #232c2b;
  font-size: 14px;
  font-weight: 600;
}
.vx-header .vx-pick.is-current { color: #c5351f; font-weight: 700; }
.vx-header .vx-pick:hover,
.vx-header .vx-pick:focus-visible { background: #c5351f; color: #fff; }
.vx-rule { height: 1px; margin: 6px 4px; background: #e3e5e4; }

/* Focus */
.vx-header .vx-link:focus-visible,
.vx-header .vx-pill:focus-visible,
.vx-header .vx-cta:focus-visible,
.vx-header .vx-logo:focus-visible,
.vx-burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vx-header .vx-pick:focus-visible,
.vx-header .vx-row:focus-visible,
.vx-header .vx-card:focus-visible { outline: 2px solid #c5351f; outline-offset: 1px; }

/* Phones and small tablets */
.vx-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  cursor: pointer;
}
.vx-burger-close { display: none; }
.vx-burger[aria-expanded="true"] .vx-burger-open { display: none; }
.vx-burger[aria-expanded="true"] .vx-burger-close { display: block; }
.vx-panel { display: none; }

@media (max-width: 980px) {
  .vx-bar { justify-content: space-between; gap: 8px; min-height: 64px; padding: 10px 16px; }
  .vx-logo img { height: 36px; }
  .vx-nav, .vx-desktop { display: none !important; }
  .vx-side { gap: 2px; }
  .vx-burger { display: flex; }
  /* The open panel's card already shows the balance. */
  .vx-side:has(.vx-burger[aria-expanded="true"]) .vx-pill { display: none; }

  .vx-panel:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    padding: 16px 16px 24px;
    background: #fff;
    color: #232c2b;
    box-shadow: 0 14px 34px rgba(26, 18, 46, .3);
  }
  body.admin-bar .vx-panel:not([hidden]) { min-height: calc(100vh - 110px); }
  .vx-panel .vx-label { padding: 6px 0 4px; }
  .vx-header .vx-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 0 16px;
    border-radius: 8px;
    background: linear-gradient(110deg, #852b89, #bd4030);
    color: #fff;
  }
  .vx-card-user { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
  .vx-card-balance { font-size: 18px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; }
  .vx-header .vx-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #232c2b;
    font-size: 16px;
    font-weight: 600;
  }
  .vx-header .vx-row.is-current { color: #c5351f; font-weight: 700; }
  .vx-panel .vx-rule { margin: 8px 0; }
  .vx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .vx-grid .vx-row { font-size: 15px; }
  .vx-header .vx-cta-wide { width: 100%; height: 52px; margin-top: auto; font-size: 16px; }
  .vx-panel .vx-grid + .vx-cta-wide,
  .vx-panel .vx-row + .vx-cta-wide { margin-top: 20px; }
  html.vx-menu-open, html.vx-menu-open body { overflow: hidden; }
}
