/*
 PULSCAM LUXURY ENTERPRISE HEADER BUTTONS — STYLE 5
 V1DESIGN5R3

 Scope:
 - global Pulscam header only;
 - no page-level buttons;
 - no Profile, Model, User, avatar or profile-card surfaces;
 - no geometry, dimensions, positioning, display or layout changes;
 - hidden header actions remain controlled only by site-header.js.
*/

#pulscamSiteHeader,
.pulscamCommonHeader {
  --pc-header-btn-radius: 14px;
  --pc-header-btn-border: rgba(215,190,155,.55);
  --pc-header-btn-text: #242424;
  --pc-header-btn-orange: #ff7a00;

  --pc-header-btn-background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfaf8 100%
    );

  --pc-header-btn-shadow:
    0 8px 20px rgba(18,24,38,.06),
    inset 0 1px 0 rgba(255,255,255,.85);

  --pc-header-btn-hover-shadow:
    0 14px 30px rgba(255,122,0,.12),
    0 8px 18px rgba(18,24,38,.08);
}

/* Neutral Luxury Enterprise treatment */
#pulscamSiteHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
),
.pulscamCommonHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
) {
  border-color:
    var(--pc-header-btn-border) !important;

  border-radius:
    var(--pc-header-btn-radius) !important;

  background:
    var(--pc-header-btn-background) !important;

  color:
    var(--pc-header-btn-text) !important;

  font-weight: 650 !important;
  text-decoration: none !important;

  box-shadow:
    var(--pc-header-btn-shadow) !important;

  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    color .16s ease,
    background .16s ease,
    box-shadow .16s ease !important;
}

/* Primary: Broadcast, Signup, Admin and future primary actions */
#pulscamSiteHeader :where(
  .topBtnPrimary,
  #broadcastBtn,
  #signupBtn,
  #adminBtn
),
.pulscamCommonHeader :where(
  .topBtnPrimary,
  #broadcastBtn,
  #signupBtn,
  #adminBtn
) {
  color: #ffffff !important;
  border-color: transparent !important;

  background:
    linear-gradient(
      180deg,
      #ffb13d 0%,
      #ff7a00 48%,
      #d94f00 100%
    ) !important;

  box-shadow:
    0 14px 28px rgba(255,122,0,.35),
    inset 0 1px 0 rgba(255,255,255,.42) !important;
}

/* Tokens */
#pulscamSiteHeader :where(
  #topBuyTokensBtn,
  .topTokenPlus
),
.pulscamCommonHeader :where(
  #topBuyTokensBtn,
  .topTokenPlus
) {
  color: #5b381b !important;
  border-color: rgba(219,170,95,.52) !important;

  background:
    linear-gradient(
      180deg,
      #fff8ec 0%,
      #fffdf8 100%
    ) !important;

  box-shadow:
    0 8px 18px rgba(185,126,42,.10),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}

/* Logout / danger — discreet, not aggressive */
#pulscamSiteHeader #logoutBtn,
.pulscamCommonHeader #logoutBtn {
  color: #7f1d1d !important;
  border-color: rgba(248,113,113,.35) !important;

  background:
    linear-gradient(
      180deg,
      #fffafa 0%,
      #fff5f5 100%
    ) !important;

  box-shadow:
    0 8px 18px rgba(127,29,29,.06),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

/* Active/current header action with subtle orange underline */
#pulscamSiteHeader :where(
  .topBtn.active,
  .topBtn.is-active,
  .topBtn.isActive,
  .topBtn[aria-current="page"],
  .topBtn[aria-selected="true"],
  #topVipBtn.active,
  #topVipBtn[aria-current="page"]
),
.pulscamCommonHeader :where(
  .topBtn.active,
  .topBtn.is-active,
  .topBtn.isActive,
  .topBtn[aria-current="page"],
  .topBtn[aria-selected="true"],
  #topVipBtn.active,
  #topVipBtn[aria-current="page"]
) {
  color:
    var(--pc-header-btn-orange) !important;

  border-color:
    rgba(255,122,0,.38) !important;

  background:
    linear-gradient(
      180deg,
      #fffdf9 0%,
      #ffffff 100%
    ) !important;

  box-shadow:
    var(--pc-header-btn-shadow),
    inset 0 -2px 0
      var(--pc-header-btn-orange) !important;
}

/* Keyboard focus */
#pulscamSiteHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
):focus-visible,
.pulscamCommonHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
):focus-visible {
  outline:
    3px solid rgba(255,122,0,.16) !important;

  outline-offset: 2px !important;
}

/* Disabled state */
#pulscamSiteHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
):disabled,
#pulscamSiteHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
)[aria-disabled="true"],
.pulscamCommonHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
):disabled,
.pulscamCommonHeader :where(
  .topBtn,
  .topTokenPlus,
  #topVipBtn
)[aria-disabled="true"] {
  opacity: .58 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (hover:hover) {
  #pulscamSiteHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ):hover,
  .pulscamCommonHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ):hover {
    transform: translateY(-1px);

    border-color:
      rgba(255,122,0,.42) !important;

    color: #e86600 !important;

    box-shadow:
      var(--pc-header-btn-hover-shadow) !important;
  }

  #pulscamSiteHeader :where(
    .topBtnPrimary,
    #broadcastBtn,
    #signupBtn,
    #adminBtn
  ):hover,
  .pulscamCommonHeader :where(
    .topBtnPrimary,
    #broadcastBtn,
    #signupBtn,
    #adminBtn
  ):hover {
    color: #ffffff !important;
    border-color: transparent !important;

    background:
      linear-gradient(
        180deg,
        #ffbd55 0%,
        #ff8612 48%,
        #e55908 100%
      ) !important;

    box-shadow:
      0 17px 34px rgba(255,122,0,.40),
      inset 0 1px 0 rgba(255,255,255,.50) !important;
  }

  #pulscamSiteHeader #logoutBtn:hover,
  .pulscamCommonHeader #logoutBtn:hover {
    color: #991b1b !important;
    border-color: rgba(239,68,68,.42) !important;

    background:
      linear-gradient(
        180deg,
        #fffdfd 0%,
        #fff0f0 100%
      ) !important;

    box-shadow:
      0 12px 24px rgba(127,29,29,.10),
      inset 0 1px 0 rgba(255,255,255,.90) !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  #pulscamSiteHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ),
  .pulscamCommonHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ) {
    transition: none !important;
  }

  #pulscamSiteHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ):hover,
  .pulscamCommonHeader :where(
    .topBtn,
    .topTokenPlus,
    #topVipBtn
  ):hover {
    transform: none;
  }
}
