/* File: public_html/assets/css/base/site_header.css */

/* safety: any hidden element must be hidden */
[hidden]{ display:none !important; }

.svx-hdr{
  position: sticky;
  top: 0;
  z-index: 300;

  /* ✅ Vertical gradient: dark (top) -> lighter (bottom) */
  background: linear-gradient(180deg, #021f32 0%, #073a5a 55%, #084273 100%);

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

.svx-hdr__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ✅ TOP ROW: reverse visual order so brand moves to the other side */
.svx-hdr__top .svx-hdr__container{
  justify-content: space-between;
  flex-direction: row-reverse;
}

.svx-hdr__brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.svx-hdr__logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.svx-hdr__name{
  font-weight: 1000;
  letter-spacing: .2px;
  font-size: 18px;
}
.svx-hdr__nameA{ color:#e9f4ff; }
.svx-hdr__nameB{ color:#7fd0ff; }

.svx-hdr__tools{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.svx-hdr__bell{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.10);
  text-decoration: none;
}
.svx-hdr__bell img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.svx-hdr__logout{
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.12);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

/* bottom row */
.svx-hdr__bottom{
  border-top: 1px solid rgba(255,255,255,.08);
}
.svx-hdr__bottom .svx-hdr__container{
  justify-content: flex-start;
}

/* Visitor desktop auth */
.svx-hdr__authDesktop{
  margin-inline-start: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.svx-btnH{
  height: 44px;
  min-width: 150px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.svx-btnH:hover{ transform: translateY(-1px); }

/* ✅ Primary button: gradient normally, SOLID on hover */
.svx-btnH--primary{
  color: #ffffff;
  background: linear-gradient(90deg, #0b5cab, #0a5098);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
}
.svx-btnH--primary:hover{
  color: #ffffff;
  background: #031b2c;            /* ✅ solid (no gradient) */
  border-color: rgba(255,255,255,.22);
}

/* ✅ Ghost button: solid on hover too */
.svx-btnH--ghost{
  color: #e9f4ff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.svx-btnH--ghost:hover{
  color: #ffffff;
  background: rgba(0,0,0,.22);     /* ✅ solid (no gradient) */
  border-color: rgba(127,208,255,.45);
}

/* Focus visibility */
.svx-btnH:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(127,208,255,.35);
}

/* Burger */
.svx-hdr__burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.10);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.svx-hdr__burger span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}

/* Panel (mobile dropdown) */
.svx-hdr__panel{
  width: 100%;
  margin-top: 10px;
}
.svx-hdr__panelInner{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(3,24,40,.78);
  backdrop-filter: blur(10px);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

/* Logged desktop nav */
.svx-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.svx-nav__link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.svx-nav__link:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

/* Dropdown (desktop) */
.svx-dd{ position: relative; }
.svx-dd__btn{
  color: rgba(255,255,255,.92);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.svx-dd__btn:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.svx-dd__menu{
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(3,24,40,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  padding: 8px;
  z-index: 400;
}
.svx-dd__menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 800;
}
.svx-dd__menu a:hover{
  background: rgba(255,255,255,.08);
}

/* Mobile nav links in panel */
.svx-navM__link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.svx-acc{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.svx-acc__btn{
  width: 100%;
  padding: 12px 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  text-align: start;
}
.svx-acc__body{
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.svx-acc__body a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.svx-acc__body a:hover{
  background: rgba(255,255,255,.10);
}

/* Responsive behavior */
@media (max-width: 980px){
  .svx-hdr__authDesktop{ display:none; }
  .svx-nav{ display:none; }

  .svx-hdr__burger{
    display:inline-flex;
    margin-inline-start: 0;
  }

  .svx-hdr__tools{ display:none; }
}
