/* ============================================================
   Bounty Hunters · Explorer premium layer
   Načítať AŽ PO /assets/style.css (poradie rozhoduje o overridoch).
   Čisto vizuálna vrstva, žiadna zmena logiky.
============================================================ */
:root{
  --bhx-gold:#D8AA4A; --bhx-goldhi:#E7BB63; --bhx-golddk:#786028;
  --bhx-cream:#E2DDCD; --bhx-sage:#96A49A; --bhx-foot:#68786E;
  --bhx-line:rgba(216,170,74,.16); --bhx-line-soft:rgba(216,170,74,.08);
  --bhx-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
}

/* pozadie: canvas za obsahom, obsah nad ním */
#bhx-bg{position:fixed;inset:0;z-index:0;pointer-events:none}
body.bhx>header,body.bhx>main,body.bhx>footer,body.bhx>.rg-footer{position:relative;z-index:1}

/* ---------- breadcrumb ---------- */
.bhx-crumbs{
  display:flex;align-items:center;flex-wrap:wrap;
  padding:18px 0 2px;min-height:40px;
  font-family:var(--bhx-mono);font-size:11.5px;letter-spacing:.14em;
}
.bhx-crumb{color:var(--bhx-foot);transition:color .4s;position:relative;padding:4px 2px;white-space:nowrap}
.bhx-crumb.done{color:var(--bhx-sage)}
.bhx-crumb.live{color:var(--bhx-goldhi);text-shadow:0 0 14px rgba(231,187,99,.45)}
.bhx-crumb.live::after{
  content:'';position:absolute;left:2px;right:2px;bottom:-2px;height:1px;
  background:linear-gradient(90deg,transparent,var(--bhx-goldhi),transparent);
  animation:bhxCrumbGlow 2.4s ease-in-out infinite;
}
@keyframes bhxCrumbGlow{0%,100%{opacity:.35}50%{opacity:1}}
.bhx-crumbsep{color:var(--bhx-golddk);margin:0 11px}

/* ---------- workflow panel (pravá strana hero sekcie) ---------- */
.bhx-panel{
  border:1px solid var(--bhx-line-soft);border-radius:10px;
  background:linear-gradient(180deg,rgba(19,42,26,.35),rgba(12,27,17,.55));
  padding:20px 20px 16px;position:relative;overflow:hidden;
}
.bhx-plabel{
  font-family:var(--bhx-mono);font-size:10px;letter-spacing:.2em;
  color:var(--bhx-sage);display:flex;justify-content:space-between;margin-bottom:4px;
}
#bhx-flow{width:100%;height:auto;display:block}
.bhx-node-label{font-family:var(--bhx-mono);font-size:11px;letter-spacing:.16em;fill:var(--bhx-sage)}
.bhx-node-label.active{fill:var(--bhx-goldhi)}

/* status console namiesto spinnera */
.bhx-console{
  margin-top:12px;border-top:1px solid var(--bhx-line-soft);padding-top:10px;
  font-family:var(--bhx-mono);font-size:11.5px;line-height:1.9;color:var(--bhx-sage);
  min-height:66px;letter-spacing:.03em;
}
.bhx-console .ln{opacity:0;animation:bhxIn .3s ease forwards;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhx-console .ln b{color:var(--bhx-goldhi);font-weight:700}
.bhx-console .pr{color:var(--bhx-golddk);margin-right:8px}
.bhx-loadline{height:1px;background:rgba(216,170,74,.12);border-radius:1px;overflow:hidden;margin-top:8px}
.bhx-loadline i{
  display:block;height:100%;width:0%;
  background:linear-gradient(90deg,var(--bhx-golddk),var(--bhx-goldhi));
  transition:width .45s ease;
}

/* ---------- vstupné animácie ---------- */
@keyframes bhxIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- entity dlaždice (hrdinovia / tímy / mapy) ---------- */
body.bhx .hero-tile{
  position:relative;
  transition:transform .28s cubic-bezier(.2,.7,.3,1),border-color .28s,box-shadow .28s,background-color .28s;
  animation:bhxIn .45s ease backwards;
}
body.bhx .hero-grid .hero-tile:nth-child(1){animation-delay:.02s}
body.bhx .hero-grid .hero-tile:nth-child(2){animation-delay:.05s}
body.bhx .hero-grid .hero-tile:nth-child(3){animation-delay:.08s}
body.bhx .hero-grid .hero-tile:nth-child(4){animation-delay:.11s}
body.bhx .hero-grid .hero-tile:nth-child(5){animation-delay:.14s}
body.bhx .hero-grid .hero-tile:nth-child(6){animation-delay:.17s}
body.bhx .hero-grid .hero-tile:nth-child(7){animation-delay:.20s}
body.bhx .hero-grid .hero-tile:nth-child(8){animation-delay:.23s}
body.bhx .hero-grid .hero-tile:nth-child(9){animation-delay:.26s}
body.bhx .hero-grid .hero-tile:nth-child(10){animation-delay:.29s}
body.bhx .hero-grid .hero-tile:nth-child(11){animation-delay:.32s}
body.bhx .hero-grid .hero-tile:nth-child(12){animation-delay:.35s}

body.bhx .hero-tile:hover{
  transform:translateY(-3px);
  border-color:rgba(216,170,74,.55);
  box-shadow:0 10px 28px -14px rgba(0,0,0,.7),0 0 18px -6px rgba(216,170,74,.3);
}
/* vybraná entita: zlaté L-rohy (brand corner brackets) */
body.bhx .hero-tile.active{border-color:var(--bhx-gold)}
body.bhx .hero-tile.active::before,
body.bhx .hero-tile.active::after{
  content:'';position:absolute;width:13px;height:13px;pointer-events:none;
}
body.bhx .hero-tile.active::before{top:-1px;left:-1px;border-top:2px solid var(--bhx-gold);border-left:2px solid var(--bhx-gold)}
body.bhx .hero-tile.active::after{bottom:-1px;right:-1px;border-bottom:2px solid var(--bhx-gold);border-right:2px solid var(--bhx-gold)}

/* tímové logá: glow podložka, pri hoveri silnejšia */
body.bhx .team-tile .team-logo{
  filter:drop-shadow(0 0 8px rgba(216,170,74,.22));
  transition:filter .3s,transform .3s;
}
body.bhx .team-tile:hover .team-logo{
  filter:drop-shadow(0 0 14px rgba(216,170,74,.45));
  transform:scale(1.04);
}
body.bhx .team-mono{
  font-family:var(--bhx-mono);color:var(--bhx-goldhi);
  border:1px solid rgba(216,170,74,.35);border-radius:50%;
  background:radial-gradient(circle at 50% 42%,rgba(216,170,74,.16),rgba(216,170,74,.03) 70%);
}
/* mapové dlaždice: tmavší overlay + zlatý okraj pri hoveri */
body.bhx .map-tile{box-shadow:inset 0 0 0 999px rgba(12,27,17,.45)}
body.bhx .map-tile:hover{box-shadow:inset 0 0 0 999px rgba(12,27,17,.28),0 0 18px -6px rgba(216,170,74,.35)}

/* ---------- search / filter polia ---------- */
body.bhx .field{position:relative}
body.bhx .field input{caret-color:var(--bhx-goldhi);transition:border-color .3s}
body.bhx .field input:focus{border-color:rgba(216,170,74,.5)}
body.bhx .field::after{
  content:'';position:absolute;left:0;bottom:0;height:1px;width:34%;
  background:linear-gradient(90deg,transparent,var(--bhx-goldhi),transparent);
  transform:translateX(-110%);opacity:0;pointer-events:none;
}
body.bhx .field:focus-within::after{opacity:1;animation:bhxScan 2.2s linear infinite}
@keyframes bhxScan{from{transform:translateX(-110%)}to{transform:translateX(310%)}}

/* ---------- tabuľky ---------- */
body.bhx .tablewrap tbody tr{animation:bhxIn .4s ease backwards}
body.bhx .tablewrap tbody tr:nth-child(1){animation-delay:.03s}
body.bhx .tablewrap tbody tr:nth-child(2){animation-delay:.07s}
body.bhx .tablewrap tbody tr:nth-child(3){animation-delay:.11s}
body.bhx .tablewrap tbody tr:nth-child(4){animation-delay:.15s}
body.bhx .tablewrap tbody tr:nth-child(5){animation-delay:.19s}
body.bhx .tablewrap tbody tr:nth-child(6){animation-delay:.23s}
body.bhx .tablewrap tbody tr:nth-child(7){animation-delay:.27s}
body.bhx .tablewrap tbody tr:nth-child(8){animation-delay:.31s}
body.bhx .tablewrap tbody tr:nth-child(9){animation-delay:.35s}
body.bhx .tablewrap tbody tr:nth-child(10){animation-delay:.39s}
body.bhx .tablewrap tbody tr:hover{background:rgba(216,170,74,.05)}
body.bhx .expand-btn{transition:color .25s,border-color .25s,transform .25s}
body.bhx .expand-btn:hover{color:var(--bhx-goldhi)}

/* stat karty: jemný vstup */
body.bhx .grid .card{animation:bhxIn .5s ease backwards}
body.bhx .grid .card:nth-child(2){animation-delay:.09s}
body.bhx .grid .card:nth-child(3){animation-delay:.18s}

/* ---------- reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  body.bhx *,body.bhx *::before,body.bhx *::after{
    animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;
  }
  #bhx-bg{display:none}
}
