/* ─────────────────────────────────────────────────────────────
   Oracle Of Souls Header (scoped)
───────────────────────────────────────────────────────────── */
.oos-header{
  /* Hard reset against the site's older global header rules. */
  display:block !important;
  flex:none !important;
  grid-template-columns:none !important;
  align-items:initial !important;
  justify-content:initial !important;
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;

  position:relative;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.06);
  overflow:visible;
  box-shadow:inset 0 2px 0 rgba(255,77,77,.18);
}

.oos-header__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,77,77,.20), transparent 46%),
    radial-gradient(circle at 82% 0%, rgba(255,77,77,.10), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #171315 0%, #100f11 100%);
  filter: saturate(1.05);
}

.oos-header__inner{
  display:block !important;
  float:none !important;
  position:relative;
  width:100% !important;
  max-width:1200px;
  margin:0 auto !important;
  padding:14px 18px 13px;
  box-sizing:border-box;
}

.oos-header__row{
  display:grid;
  grid-template-columns:minmax(250px, 300px) minmax(360px, 1fr) auto;
  align-items:center;
  gap:26px;
  min-height:72px;
}

.oos-header__row--no-search{
  grid-template-columns:minmax(250px, 1fr) auto;
}

.oos-header__row--no-search .oos-brand{
  justify-self:start;
}

.oos-header__row--no-search .oos-auth{
  justify-self:end;
}

/* Brand */
.oos-brand__link,
.oos-brand__link:hover,
.oos-brand__link:focus,
.oos-brand__link:active{
  text-decoration: none !important;
}

.oos-brand{
  min-width:0;
}

.oos-brand__name{
  display:block;
  font-weight:900;
  letter-spacing:.5px;
  font-size:28px;
  color: #ff4d4d;
  text-shadow: 0 0 22px rgba(255,77,77,.28);
  line-height: 1.05;
}

.oos-brand__tag{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  letter-spacing: .2px;
}

.oos-brand__link:hover .oos-brand__name{
  text-shadow:
    0 0 8px rgba(255,77,77,.5),
    0 0 22px rgba(255,77,77,.35);
}

/* Search */
.oos-header .oos-search{
  display:flex;
  align-items:center;
  gap: 10px;
  width: 100%;
}

.oos-searchbar{
  width:100%;
  max-width:620px;
  justify-self:center;
}

.oos-header .oos-search input{
  width:100%;
  height:46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.42);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.oos-header .oos-search input::placeholder{
  color: rgba(255,255,255,.55);
}

.oos-header .oos-search input:focus{
  border-color: rgba(255,77,77,.55);
  box-shadow: 0 0 0 4px rgba(255,77,77,.14);
}

.oos-search__btn{
  height:46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,77,.55);
  background: rgba(255,77,77,.12);
  color: #fff;
  font-weight: 900;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.oos-search__btn:hover{
  background: rgba(255,77,77,.20);
  box-shadow: 0 0 16px rgba(255,77,77,.25);
}

.oos-search__btn:active{
  transform: translateY(1px);
}

/* Auth */
.oos-auth{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.oos-auth__top{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

.oos-auth__name{
  font-weight: 900;
  color: #fff;
}

.oos-auth__badge{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,77,.55);
  background: rgba(255,77,77,.14);
  color: #ffb6b6;
}

.oos-auth__links{
  display:flex;
  align-items:center;
  gap: 8px;
}

.oos-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.88);
  text-decoration:none;
  font-weight: 800;
  font-size: 12px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.oos-chip:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 14px rgba(255,255,255,.06);
}

.oos-chip--accent{
  border-color: rgba(255,77,77,.55);
  background: rgba(255,77,77,.12);
  box-shadow: 0 0 18px rgba(255,77,77,.12);
}
.oos-chip--accent:hover{
  background: rgba(255,77,77,.18);
  box-shadow: 0 0 14px rgba(255,77,77,.22);
}

/* Ad row (framed) */
.oos-header__ad{
  margin-top: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:center;
  position: relative;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.02);
}

.oos-header__ad ins.adsbygoogle{
  transform: scale(.98);
  transform-origin: center;
}

/* Hide ads on mobile/tablet */
.ads-desktop-only{ display:block; }
@media (max-width: 768px){
  .ads-desktop-only{ display:none !important; }
}

/* Header-owned navigation */
.oos-topnav{
  display:block !important;
  flex:none !important;
  clear:both !important;
  position:relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  clear: both;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(255,77,77,.055), transparent 25%, transparent 75%, rgba(255,77,77,.035)),
    #19191b;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.oos-topnav__bar{
  display:none;
  max-width:1200px;
  margin:0 auto;
  padding:9px 18px;
  align-items:center;
  justify-content:space-between;
}

.oos-topnav__section{
  color:rgba(255,255,255,.52);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.oos-topnav__toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:0 13px;
  border:1px solid rgba(255,77,77,.32);
  border-radius:10px;
  background:rgba(255,77,77,.09);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.oos-topnav__toggle-icon{
  display:grid;
  gap:3px;
  width:16px;
}
.oos-topnav__toggle-icon span{
  display:block;
  height:2px;
  border-radius:99px;
  background:currentColor;
}

.oos-topnav__inner{
  width:100% !important;
  max-width:1200px !important;
  margin:0 auto !important;
  padding:0 18px !important;
  min-height:44px;
  display:flex !important;
  float:none !important;
  position:relative !important;
  inset:auto !important;
  box-sizing:border-box;
  align-items:stretch;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:4px;
  list-style:none;
}

.oos-topnav__inner > li{
  float:none !important;
  width:auto !important;
  display:flex;
  align-items:stretch;
  margin:0;
  position:relative;
}

.oos-topnav__inner a,
.oos-topnav__inner .oos-topnav__dropdown-toggle{
  position:relative;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:0;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.82);
  text-decoration:none !important;
  font:inherit;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  transition:color .18s ease, background .18s ease;
}

.oos-topnav__inner a:hover,
.oos-topnav__inner a:focus-visible,
.oos-topnav__inner .oos-topnav__dropdown-toggle:hover,
.oos-topnav__inner .oos-topnav__dropdown-toggle:focus-visible{
  color:#fff;
  background:rgba(255,77,77,.085);
  outline:none;
}

.oos-topnav__inner a::after,
.oos-topnav__inner .oos-topnav__dropdown-toggle::after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:0;
  height:3px;
  border-radius:999px 999px 0 0;
  background:#ff4d4d;
  box-shadow:0 0 12px rgba(255,77,77,.48);
  transform:scaleX(0);
  transition:transform .18s ease;
}

.oos-topnav__inner a:hover::after,
.oos-topnav__inner a:focus-visible::after,
.oos-topnav__inner .oos-topnav__dropdown-toggle:hover::after,
.oos-topnav__inner .oos-topnav__dropdown-toggle:focus-visible::after,
.oos-topnav__inner a.is-active::after,
.oos-topnav__inner .oos-topnav__dropdown-toggle.is-active::after,
.oos-topnav__inner li.is-active > a::after{
  transform:scaleX(1);
}

.oos-topnav__inner a.is-active,
.oos-topnav__inner .oos-topnav__dropdown-toggle.is-active,
.oos-topnav__inner li.is-active > a{
  color:#fff;
  background:rgba(255,77,77,.105);
}


.oos-header .oos-topnav__chevron{
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  opacity:.72;
  transition:transform .18s ease;
}

.oos-header .oos-topnav__has-dropdown:hover .oos-topnav__chevron,
.oos-header .oos-topnav__has-dropdown:focus-within .oos-topnav__chevron,
.oos-header .oos-topnav__has-dropdown.is-open .oos-topnav__chevron{
  transform:rotate(225deg) translate(-1px,-1px);
}

.oos-header .oos-topnav__dropdown{
  display:none;
  position:absolute;
  top:calc(100% - 1px);
  left:0;
  z-index:90;
  min-width:220px;
  padding:8px;
  margin:0;
  list-style:none;
  border:1px solid rgba(255,255,255,.10);
  border-radius:0 0 12px 12px;
  background:rgba(20,20,22,.985);
  box-shadow:0 18px 38px rgba(0,0,0,.48);
}

.oos-header .oos-topnav__has-dropdown:hover > .oos-topnav__dropdown,
.oos-header .oos-topnav__has-dropdown:focus-within > .oos-topnav__dropdown,
.oos-header .oos-topnav__has-dropdown.is-open > .oos-topnav__dropdown{
  display:block;
}

.oos-header .oos-topnav__dropdown li,
.oos-header .oos-topnav__dropdown a{
  display:block;
  width:100%;
}

.oos-header .oos-topnav__dropdown a{
  min-height:38px;
  padding:9px 11px;
  border-radius:8px;
  white-space:normal;
}

.oos-header .oos-topnav__dropdown a::after{
  display:none;
}

/* Existing nested lists from navigation-menu.php become dropdowns automatically. */
.oos-topnav__inner li > ul{
  display:none;
  position:absolute;
  top:calc(100% - 1px);
  left:0;
  z-index:80;
  min-width:220px;
  padding:8px;
  margin:0;
  list-style:none;
  border:1px solid rgba(255,255,255,.10);
  border-radius:0 0 12px 12px;
  background:rgba(20,20,22,.985);
  box-shadow:0 18px 38px rgba(0,0,0,.48);
}

.oos-topnav__inner li:hover > ul,
.oos-topnav__inner li:focus-within > ul{
  display:block;
}

.oos-topnav__inner li > ul li,
.oos-topnav__inner li > ul a{
  display:block;
  width:100%;
}

.oos-topnav__inner li > ul a{
  min-height:38px;
  padding:9px 11px;
  border-radius:8px;
  white-space:normal;
}

.oos-topnav__inner li > ul a::after{ display:none; }


@media (max-width: 1120px){
  .oos-header__row{
    grid-template-columns:minmax(230px, 270px) minmax(300px, 1fr) auto;
    gap:18px;
  }

  .oos-brand__name{
    font-size:25px;
  }

  .oos-auth__label{
    display:none;
  }
}

/* Responsive (single, non-conflicting block) */
@media (max-width: 980px){
  .oos-header__row,
  .oos-header__row--no-search{
    grid-template-columns:1fr;
    gap:12px;
    justify-items:center;
    text-align:center;
  }

  .oos-brand{
    text-align: center;
  }

  .oos-auth{
    align-items: center;
    width: 100%;
  }

  .oos-auth__top{
    justify-content: center;
    flex-wrap: wrap;
  }

  .oos-auth__links{
    justify-content: center;
    width: 100%;
  }

  .oos-searchbar,
  .oos-header .oos-search{
    width:100%;
    max-width:620px;
    margin:0 auto;
  }
}

@media (max-width: 600px){
  .oos-chip{
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 760px){
  .oos-topnav__bar{ display:flex; }

  .oos-topnav__inner{
    display:none !important;
    min-height:0;
    padding:0 12px 12px;
    flex-direction:column;
    align-items:stretch;
    gap:3px;
  }

  .oos-topnav.is-open .oos-topnav__inner{ display:flex !important; }

  .oos-topnav__inner > li,
  .oos-topnav__inner a,
  .oos-header .oos-topnav__dropdown-toggle{
    display:block;
    width:100%;
  }

  .oos-topnav__inner a,
  .oos-header .oos-topnav__dropdown-toggle{
    min-height:42px;
    padding:11px 13px;
    border-radius:9px;
    box-sizing:border-box;
    text-align:left;
  }

  .oos-header .oos-topnav__dropdown{
    display:none;
    position:static;
    min-width:0;
    padding:2px 0 4px 14px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .oos-header .oos-topnav__has-dropdown.is-open > .oos-topnav__dropdown{
    display:block;
  }

  .oos-topnav__inner a::after{ display:none; }

  .oos-topnav__inner li > ul{
    display:block;
    position:static;
    min-width:0;
    padding:2px 0 4px 14px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .oos-topnav__inner li > ul a{
    min-height:38px;
    color:rgba(255,255,255,.70);
    border-left:2px solid rgba(255,77,77,.22);
    border-radius:0 8px 8px 0;
  }
}

/* Contextual admin dropdown */
.oos-topnav__admin-menu{
  margin-left:auto !important;
}

.oos-topnav__admin-menu > .oos-topnav__dropdown-toggle{
  color:#ffaaaa;
}

.oos-topnav__admin-menu > .oos-topnav__dropdown{
  left:auto;
  right:0;
  min-width:235px;
}

.oos-topnav__admin-menu .oos-admin-action{
  display:flex;
  align-items:center;
  gap:10px;
}

.oos-topnav__admin-menu .oos-admin-action::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#ff6868;
  box-shadow:0 0 8px rgba(255,77,77,.45);
}

.oos-topnav__admin-menu .oos-admin-danger{
  margin-top:7px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.10);
}

.oos-topnav__admin-menu .oos-admin-danger a{
  color:#ff7777;
}

.oos-topnav__admin-menu .oos-admin-danger .oos-admin-action::before{
  background:#ff3333;
}

.oos-admin-delete-form{
  display:none;
}

@media (max-width:760px){
  .oos-topnav__admin-menu{
    margin-left:0 !important;
  }

  .oos-topnav__admin-menu > .oos-topnav__dropdown{
    min-width:0;
  }
}


.oos-header .oos-topnav{
  position:relative;
  z-index:100;
  overflow:visible;
}

.oos-header .oos-topnav__inner{
  overflow:visible;
}

.oos-header .oos-topnav__dropdown{
  z-index:1000;
}
