/* /css/header.elite.css — Elite Header (ICC-aligned, ultra-premium)
   Goals:
   - Dark cockpit, but not flat
   - Subtle premium depth (gradient + glow + micro-texture)
   - Optional motion (slow, tasteful) with reduced-motion fallback
   - No component drift (buttons still .btn)
*/

.topBarElite{
  position:relative;
  isolation:isolate;
  color:#fff;

  padding: 14px 40px;
  min-height: 112px;

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;

  /* Base layer (not flat) */
  background:
    radial-gradient(900px 260px at 18% 35%, rgba(187,146,90,.18), transparent 62%),
    radial-gradient(780px 240px at 78% 42%, rgba(36,83,114,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #0C334D, #0A2B41 70%, #081F30);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Premium micro-texture + faint grid */
.topBarElite::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;

  background:
    /* micro texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"),
    /* subtle diagonal lines */
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);

  opacity:.22;
  mix-blend-mode:overlay;
}

/* Moving sheen + bronze accent line */
.topBarElite::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;

  background:
    /* slow sheen band */
    linear-gradient(110deg,
      transparent 0%,
      rgba(255,255,255,.06) 18%,
      rgba(255,255,255,.10) 24%,
      rgba(255,255,255,.06) 30%,
      transparent 46%
    ),
    /* bronze hairline at bottom */
    linear-gradient(90deg,
      transparent 0%,
      rgba(187,146,90,.00) 10%,
      rgba(187,146,90,.55) 48%,
      rgba(187,146,90,.00) 90%,
      transparent 100%
    );

  background-repeat:no-repeat;
  background-size: 220% 100%, 100% 2px;
  background-position: -120% 0%, 0% calc(100% - 1px);

  opacity:.9;
  animation: iccHdrSheen 14s var(--icc-ease) infinite;
}

@keyframes iccHdrSheen{
  0%   { background-position: -120% 0%, 0% calc(100% - 1px); }
  55%  { background-position:  120% 0%, 0% calc(100% - 1px); }
  100% { background-position:  120% 0%, 0% calc(100% - 1px); }
}

/* Reduce motion */
@media (prefers-reduced-motion:reduce){
  .topBarElite::after{ animation:none !important; }
}

/* LEFT */
.topBarElite .eliteLeft{ text-align:left; }

.topBarElite .eliteDocName{
  font-family: var(--icc-font);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.35px;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.topBarElite .eliteSysVer{
  margin-top: 6px;
  font-family: var(--icc-font);
  font-size: 13px;
  opacity: .70;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* CENTER */
.topBarElite .eliteCenter{
  display:flex;
  align-items:center;
  justify-content:center;
}

.topBarElite .eliteLogo{
  height: 102px;
  width: auto;
  max-width: 520px;
  display:block;
  filter:none;
  transform: translateZ(0);
}

/* RIGHT */
.topBarElite .eliteRight{
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px; /* 8px grid */
}

/* New: top row = Lock + Settings + Logout */
.topBarElite .eliteRightTop{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

/* New: header buttons group */
.topBarElite .eliteBtns{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

/* Lock status — button-grade */
.topBarElite .eliteStatus{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:8px 14px;
  border-radius:22px;
  font-size:14px;

  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);

  cursor:pointer;
  user-select:none;

  transition:
    background var(--icc-dur) var(--icc-ease),
    border-color var(--icc-dur) var(--icc-ease),
    transform var(--icc-dur) var(--icc-ease),
    box-shadow var(--icc-dur) var(--icc-ease);
}

.topBarElite .eliteStatus:hover{
  background:rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.topBarElite .eliteStatus:active{
  transform: translateY(1px);
}

/* Pressed (Locked) state looks intentional */
.topBarElite .eliteStatus[aria-pressed="true"]{
  background:
    radial-gradient(220px 80px at 24% 30%, rgba(187,146,90,.18), transparent 60%),
    rgba(255,255,255,0.08);
  border-color: rgba(187,146,90,.32);
}

/* Focus ring (keyboard trust cue) */
.topBarElite .eliteStatus:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px var(--icc-focus);
  border-color: rgba(187,146,90,.40);
}

/* Role line */
.topBarElite .eliteUser{
  font-size:13px;
  opacity:.85;
  max-width: 520px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Ensure header buttons look like ICC buttons */
.topBarElite .btn{
  border-color: rgba(255,255,255,0.25);
  color:#fff;
  background: rgba(255,255,255,0.04);
}

.topBarElite .btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.50);
}

.topBarElite .btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px var(--icc-focus);
}

/* Responsive */
@media (max-width: 1000px){
  .topBarElite{
    grid-template-columns: 1fr;
    gap: 12px;
    text-align:center;
    padding: 12px 16px;
    min-height: 0;
  }
  .topBarElite .eliteLeft,
  .topBarElite .eliteRight{
    text-align:center;
    align-items:center;
  }
  .topBarElite .eliteRightTop{
    justify-content:center;
  }
  .topBarElite .eliteBtns{
    justify-content:center;
  }
  .topBarElite .eliteDocName{ font-size: 28px; }
  .topBarElite .eliteLogo{ height: 92px; max-width: 440px; }
  .topBarElite .eliteUser{ max-width: 92vw; }
}