/* STEP3233 — Header hover + dropdown menu animation presets.
   OFF = original Header styling. Existing hover/focus display rules stay owned
   by header.css. Only style/entrance animation changes; no pointer-event,
   visibility or layout control is introduced by this stylesheet.
   Shared between public Header and Theme Management Header preview.
*/
@keyframes fpsjHeaderDropSlide {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes fpsjHeaderGlowFade {
  from { opacity:0; transform:translateY(-4px) scale(.975); box-shadow:0 8px 22px rgba(0,0,0,.2); }
  to { opacity:1; transform:translateY(0) scale(1); box-shadow:0 24px 65px rgba(0,175,255,.18),0 20px 45px rgba(0,0,0,.48); }
}
@keyframes fpsjHeaderHudLock {
  from { opacity:0; clip-path:inset(0 48% 0 48%); }
  55% { opacity:1; }
  to { opacity:1; clip-path:inset(0 0 0 0); }
}
@media (min-width:782px) {
  /* Any top-level item: game, player, device, FPS TOOL, including items without a panel. */
  .fpsj-theme:is(.fpsj-header-motion-line,.fpsj-header-motion-neon,.fpsj-header-motion-hud) .fpsj-header .fpsj-category-menu-header__trigger {
    transition:background-color .2s ease,color .2s ease,text-shadow .2s ease;
  }
  /* A — directional underline and a drop slide. */
  .fpsj-theme.fpsj-header-motion-line .fpsj-header .fpsj-category-menu-header__trigger::after {
    transform-origin:left center;
    transform:scaleX(0);
    transition:opacity .22s ease,transform .25s cubic-bezier(.2,.8,.2,1);
  }
  .fpsj-theme.fpsj-header-motion-line .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger::after {
    transform:scaleX(1);
  }
  .fpsj-theme.fpsj-header-motion-line .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel {
    animation:fpsjHeaderDropSlide .26s cubic-bezier(.16,1,.3,1) both;
  }
  /* B — bright trigger, softly arriving glass panel. */
  .fpsj-theme.fpsj-header-motion-neon .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger {
    color:#8aeaff!important;
    background:rgba(8,185,245,.10);
    text-shadow:0 0 14px rgba(54,211,255,.85),0 0 28px rgba(54,211,255,.36);
  }
  .fpsj-theme.fpsj-header-motion-neon .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel {
    border-color:rgba(54,218,255,.65);
    animation:fpsjHeaderGlowFade .32s cubic-bezier(.16,1,.3,1) both;
  }
  /* C — corner brackets on the trigger and center-out reveal of its dropdown. */
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__trigger::before,
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__trigger::after {
    content:"";
    position:absolute;
    pointer-events:none;
    box-sizing:border-box;
    top:9px;
    bottom:9px;
    width:9px;
    height:auto;
    border-radius:0;
    background:none;
    opacity:0;
    transition:opacity .2s ease,transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__trigger::before {
    left:2px;right:auto;border-left:2px solid #1acfff;border-top:2px solid #1acfff;border-bottom:2px solid #1acfff;
    transform:translateX(-8px);
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__trigger::after {
    right:2px;left:auto;border-right:2px solid #1acfff;border-top:2px solid #1acfff;border-bottom:2px solid #1acfff;
    transform:translateX(8px);
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger::before,
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger::after {
    opacity:1;transform:translateX(0);
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger {
    background:rgba(20,157,220,.09);
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel {
    border-color:rgba(26,207,255,.58);
    box-shadow:0 0 0 1px rgba(26,207,255,.12),0 22px 60px rgba(0,0,0,.5);
    animation:fpsjHeaderHudLock .32s cubic-bezier(.2,.8,.2,1) both;
  }
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__panel::after {
    content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid rgba(26,207,255,.12);border-radius:4px;
  }
}
/* Admin-only mockup: draw a normal-sized header area without affecting WP chrome. */
.fpsj-header-motion-demo {
  min-height:235px;position:relative;margin:16px 0 10px;border:1px solid #28506c;border-radius:12px;
  background:radial-gradient(ellipse at 45% 0,rgba(20,64,108,.3),transparent 72%),#050b14;
  color:#eef5ff;overflow:visible;padding:18px 20px;isolation:isolate;
}
.fpsj-header-motion-demo .fpsj-header { position:relative;z-index:2;background:#081526;border:1px solid #1a3657;border-radius:8px; }
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__root { min-height:56px; }
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__trigger {min-height:56px;cursor:pointer;font-family:inherit;}
.fpsj-header-motion-demo .fpsj-category-navigation--desktop { display:block!important; }
.fpsj-header-motion-demo .fpsj-category-menu-header__panel {width:min(410px,calc(100vw - 110px));}
.fpsj-header-motion-demo__hint {position:absolute;right:14px;bottom:14px;color:#80a9cb;font-size:11px;letter-spacing:.08em;}

/* STEP3234 — explicit header preset opt-in remains visible even if Windows/browser
   reports reduced motion. Only header item/panel are opted in; unrelated UI stays
   under the site's normal reduced-motion policy. OFF remains untouched. */
@media (min-width:782px) and (prefers-reduced-motion:reduce) {
  .fpsj-theme:is(.fpsj-header-motion-line,.fpsj-header-motion-neon,.fpsj-header-motion-hud) .fpsj-header .fpsj-category-menu-header__trigger {
    transition-duration:.2s!important;
  }
  .fpsj-theme:is(.fpsj-header-motion-line,.fpsj-header-motion-neon,.fpsj-header-motion-hud) .fpsj-header .fpsj-category-menu-header__trigger::before,
  .fpsj-theme:is(.fpsj-header-motion-line,.fpsj-header-motion-neon,.fpsj-header-motion-hud) .fpsj-header .fpsj-category-menu-header__trigger::after {
    transition-duration:.24s!important;
  }
  .fpsj-theme.fpsj-header-motion-line .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel {
    animation-duration:.26s!important;
    animation-iteration-count:1!important;
  }
  .fpsj-theme.fpsj-header-motion-neon .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel,
  .fpsj-theme.fpsj-header-motion-hud .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__panel {
    animation-duration:.32s!important;
    animation-iteration-count:1!important;
  }
}

/* Admin preview: match the public nav anchor and isolate against wp-admin's
   default white form-control background / link colors. */
.fpsj-header-motion-demo {
  --fpsj-cyan:#31d7ff;
  --fpsj-signal:#3478ff;
}
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__trigger {
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.27rem;
  min-width:0;
  width:auto;
  min-height:56px;
  margin:0;
  padding:.5rem .74rem;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#cbd6e6;
  font-family:inherit;
  font-size:13px;
  font-weight:760;
  text-decoration:none;
  text-shadow:none;
  white-space:nowrap;
  cursor:pointer;
}
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__item:is(:hover,:focus-within) > .fpsj-category-menu-header__trigger {
  background:rgba(52,120,255,.06);
  color:#fff;
}
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__trigger:focus-visible {
  outline:2px solid #31d7ff;
  outline-offset:-3px;
}
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__panel {
  background:rgba(7,17,31,.995);
  color:#dceaff;
}
.fpsj-header-motion-demo .fpsj-header .fpsj-category-menu-header__child {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  padding:.62rem .66rem;
  border:1px solid rgba(71,111,170,.2);
  border-radius:8px;
  background:rgba(12,27,49,.7);
  color:#d6e6fa;
  font-weight:680;
  font-size:12px;
  text-decoration:none;
}
