/* =========================================================
   Watcher of Realms — BP Tier List (forced !important)
   ========================================================= */

/* ---------- Intro ---------- */
.sebastian-intro{ text-align:center!important;color:#fff!important;margin:0 auto 30px!important;max-width:800px!important;padding:0 10px!important;}
.sebastian-intro h2{ font-size:26px!important;color:gold!important;margin-bottom:10px!important;}
.sebastian-intro p{ font-size:16px!important;color:#ccc!important;margin-bottom:15px!important;line-height:1.5!important;}
.sebastian-btn{ display:inline-flex!important;align-items:center!important;gap:10px!important;background:#005f6b!important;color:#fff!important;padding:10px 14px!important;border-radius:10px!important;text-decoration:none!important;font-weight:700!important;box-shadow:0 0 6px rgba(0,0,0,.5)!important;transition:background .3s!important;width:250px!important;}
.sebastian-btn:hover{ background:#007b8a!important;}
.sebastian-btn img{ height:50px!important;border-radius:50%!important;width:auto!important;}

/* ---------- Toolbar row ---------- */
.tierlist-toolbar {
  width:95%!important;
  max-width:1100px!important;
  margin:10px auto 8px!important;
  display:flex!important;
  justify-content:center!important;
}

/* ---------- My Heroes pill ---------- */
.myheroes-pill {
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:10px 14px!important;
  background:transparent!important;
  color:#fff!important;
  border:3px!important;
  border-radius:12px!important;
  cursor:pointer!important;
  font-weight:600!important;
  font-size:15px!important;
  line-height:1!important;
  transition:background .15s ease!important, border .15s ease!important, box-shadow .15s ease!important, transform .06s ease!important;
}
.myheroes-pill i {
  font-size:18px!important;
  color:inherit!important;
}
.myheroes-pill:hover {
  text-shadow:0 0 6px rgba(255,255,255,.25)!important;
}
.myheroes-pill.active {
  background:rgba(255,255,255,.08)!important;
  border:2px solid rgba(255,255,255,.9)!important;
  color:#fff!important;
  box-shadow:0 0 8px rgba(255,255,255,.25)!important;
}

/* ---------- Small screens ---------- */
@media (max-width:768px){
  .tierlist-toolbar { justify-content:center!important; }
  .myheroes-pill { padding:9px 12px!important; font-size:14px!important; }
  .myheroes-pill i { font-size:16px!important; }
}

/* ---------- Filters layout ---------- */
.hero-filters{ display:flex!important;flex-direction:column!important;align-items:center!important;gap:10px!important;margin:0 0 20px!important; }
.search-and-lord{ display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important; }

/* ---------- Search ---------- */
#hero-search{
  padding:8px 14px!important;border:2px solid gold!important;background:transparent!important;color:#fff!important;border-radius:10px!important;
  text-align:center!important;width:400px!important;max-width:70vw!important;outline:none!important;
}
#hero-search::placeholder{ color:#bfbfbf!important; }

/* ---------- Lord toggle ---------- */
#lord-filter{ margin-right:6px!important; }
#lord-filter img{
  width:50px!important;height:50px!important;border-radius:8px!important;border:2px solid transparent!important;cursor:pointer!important;
  transition:box-shadow .2s!important, border-color .2s!important, transform .06s!important;
  background:transparent!important;
}
#lord-filter img:hover{ border-color:rgba(255,255,255,.5)!important; box-shadow:0 0 6px rgba(255,255,255,.25)!important; }
#lord-filter img.selected{ border-color:#fff!important; box-shadow:0 0 6px rgba(255,255,255,.85)!important, inset 0 0 2px rgba(255,255,255,.95)!important; }

/* ---------- Faction / Class icons ---------- */
.filter-icons{ display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important; }
#faction-filter img,
#class-filter img,
.filter-icon-wrapper img{
  display:block!important;width:60px!important;height:60px!important;border-radius:8px!important;border:2px solid transparent!important;
  cursor:pointer!important;transition:box-shadow .15s!important, border-color .15s!important, transform .06s!important;
  background:transparent!important;
}
#class-filter img{ width:46px!important;height:46px!important; }

#faction-filter img:hover,
#class-filter img:hover,
.filter-icon-wrapper img:hover{
  border-color:rgba(255,255,255,.45)!important;
  box-shadow:0 0 6px rgba(255,255,255,.28)!important;
}
#faction-filter img.selected,
#class-filter img.selected,
.filter-icon-wrapper img.selected{
  border-color:#fff!important;
  box-shadow:0 0 6px rgba(255,255,255,.85)!important, inset 0 0 2px rgba(255,255,255,.95)!important;
  background:rgba(255,255,255,.05)!important;
}

/* ---------- My Heroes alternate pill ---------- */
.my-heroes-btn{
  display:inline-flex!important;align-items:center!important;gap:8px!important;
  background:transparent!important;color:#fff!important;border:2px solid gold!important;
  padding:10px 14px!important;border-radius:999px!important;cursor:pointer!important;font-weight:700!important;
  transition:box-shadow .2s!important, background .15s!important, color .15s!important, transform .06s!important;
}
.my-heroes-btn:hover{ box-shadow:0 0 8px rgba(255,215,0,.35)!important; }
.my-heroes-btn.active{ background:gold!important;color:#111!important;border-color:gold!important; }

/* ---------- Reset button ---------- */
.filter-icon-wrapper{ margin-left:6px!important;border-radius:10px!important;background:transparent!important; }
.filter-icon-wrapper button{
  background:transparent!important;border:2px solid transparent!important;border-radius:10px!important;width:54px!important;height:54px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;
  transition:border-color .2s!important, box-shadow .2s!important, background .15s!important, transform .06s!important;
}
.filter-icon-wrapper button:hover{ border-color:rgba(255,255,255,.45)!important; box-shadow:0 0 6px rgba(255,255,255,.28)!important; }
.filter-icon-wrapper button i{ color:#fff!important; font-size:22px!important; }

/* ---------- Awakening row ---------- */
.awakening-header-row{
  background:transparent!important;box-shadow:none!important;padding:0 20px 20px!important;margin:6px auto 0!important;
  display:flex!important;justify-content:flex-start!important;gap:14px!important;width:95%!important;max-width:1100px!important;
}
.awakening-header-row .hero-header{
  width:130px!important;text-align:center!important;color:gold!important;font-weight:700!important;font-size:14px!important;padding-top:6px!important;
}
.awakening-header-row .awakening-button{
  width:130px!important;background:#222!important;color:#fff!important;border:2px solid transparent!important;padding:8px 12px!important;
  border-radius:10px!important;cursor:pointer!important;font-weight:700!important;transition:transform .06s!important, box-shadow .15s!important, background .15s!important;
}
.awakening-header-row .awakening-button:hover{ transform:scale(1.05)!important; box-shadow:0 0 6px rgba(255,215,0,.55)!important; border-color:gold!important; }
.awakening-header-row .awakening-button.active{ background:gold!important;color:#111!important;border-color:gold!important; }

/* ---------- Tier list rows ---------- */
.tier-wrapper{ width:95%!important;max-width:1100px!important;margin:0 auto!important; }
.tier-list{ display:flex!important;flex-direction:column!important;align-items:center!important;gap:24px!important; }
.tier-hero{
  background:#1b1b1b!important;display:flex!important;justify-content:space-around!important;gap:14px!important;padding:18px!important;border-radius:14px!important;
  width:95%!important;max-width:1100px!important;margin:0 auto!important;box-shadow:2px 2px 5px rgba(0,0,0,1)!important;
}

/* ---------- Hero card ---------- */
.hero-slot{
  width:130px!important;height:130px!important;flex:0 0 130px!important;border:2px solid yellow!important;border-radius:8px!important;overflow:hidden!important;
  background:#1e1e1e!important;position:relative!important;display:block!important;text-decoration:none!important;
}
.hero-slot:hover{ box-shadow:0 0 10px 3px gold!important; transition:box-shadow .2s!important; }
.hero-slot h4{
  width:100%!important;text-align:center!important;background:linear-gradient(to bottom,rgba(30,30,30,.95),rgba(10,10,10,.9))!important;
  border-top:2px solid yellow!important;border-top-left-radius:8px!important;border-top-right-radius:8px!important;margin:0!important;padding:4px 0!important;
  font-size:14px!important;color:#fff!important;font-weight:700!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:2!important;text-shadow:0 1px 1px #000!important;
}
.hero-image{
  width:100%!important;height:100%!important;background-image:url('https://prospector.gg/wp-content/uploads/2025/02/Lego-BG.webp')!important;
  background-size:cover!important;background-position:center!important;position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important;
}
.hero-image::before{ content:""!important;background-image:inherit!important;background-size:cover!important;background-position:center!important;position:absolute!important;inset:0!important;z-index:0!important; }
.hero-image::after{ content:""!important;background-image:var(--hero-img)!important;background-size:cover!important;background-position:center top!important;position:absolute!important;inset:-10px 0 0 0!important;z-index:1!important; }

/* ---------- BP grid ---------- */
.bp-container{ display:flex!important;flex-wrap:nowrap!important;gap:14px!important;flex:1!important; }
.bp-slot{
  background:#2b2b2b!important;border:2px solid #3B3B3B!important;border-radius:10px!important;width:130px!important;height:130px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff!important;font-weight:700!important;font-size:18px!important;line-height:1.2!important;text-align:center!important;word-break:break-word!important;white-space:normal!important;padding:0!important;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.6)!important;
}
.awaken-label{ display:none!important; }
.bp-number{ font-variant-numeric: tabular-nums!important; }

/* Highlight viewer’s rank */
.bp-slot[style*="outline: 3px solid gold"]{
  border-color:gold!important;
  box-shadow:0 0 10px rgba(255,215,0,.85)!important, inset 0 2px 6px rgba(0,0,0,.7)!important;
}

/* ---------- Mobile ---------- */
@media (max-width:768px){
  #hero-search{ width:55vw!important; }
  .tier-hero{ flex-wrap:nowrap!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:10px!important; }
  .hero-slot{ flex:0 0 120px!important;height:130px!important; }
  .hero-slot h4{ font-size:16px!important;padding:6px 0!important; }
  .bp-container{ display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;width:100%!important; }
  .bp-slot{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    font-weight:700!important;font-size:12px!important;background:#2b2b2b!important;border:2px solid #3B3B3B!important;border-radius:8px!important;height:56px!important;color:#fff!important;
    box-shadow:inset 0 2px 4px rgba(0,0,0,.4)!important;padding:4px!important;text-align:center!important;line-height:1.3!important;
  }
  .awakening-header-row{ justify-content:flex-start!important;padding:20px!important;margin-bottom:10px!important; }
  .awakening-header-row .awakening-button{ width:60px!important;height:40px!important;font-size:14px!important;padding:4px 6px!important; }
  .awakening-header-row .hero-header{ display:none!important; }
  .awaken-label{ display:block!important;font-size:11px!important;color:gold!important;margin-bottom:2px!important;text-align:center!important; }
  .bp-number{ font-size:12px!important;color:#fff!important; }
  #faction-filter img, #class-filter img{ width:48px!important;height:48px!important; }
}
/* --- My Heroes pill: no layout shift, no transitions --- */
.myheroes-pill{
  /* keep exact size in both states */
  border: 2px solid transparent !important;  /* present in default */
  padding: 10px 14px !important;
  line-height: 1 !important;
  /* kill all animations/effects */
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.myheroes-pill:hover{
  /* no visual hover animation */
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.myheroes-pill.active{
  /* only change color, not width/size */
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.9) !important; /* same 2px border as default */
  color: #fff !important;
  /* no animation */
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.myheroes-pill i{
  transition: none !important;
}
/* --- Fix: show highlight on mobile too --- */
/* Works whether JS uses inline outline or a class */
@media (max-width:768px){
  .bp-slot[style*="outline: 3px solid gold"],
  .bp-slot.bp-slot--active {
    /* re-apply the mobile bp-slot base styles */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    background: #2b2b2b !important;
    border-radius: 8px !important;
    height: 56px !important;
    color: #fff !important;
    padding: 4px !important;
    text-align: center !important;
    line-height: 1.3 !important;

    /* the actual highlight */
    border: 2px solid gold !important;
    box-shadow: 0 0 8px rgba(255,215,0,.8) !important;
  }
}
/* Desktop highlight */
.bp-slot.bp-slot--active {
  border-color: gold !important;
  box-shadow: 0 0 10px rgba(255,215,0,.85), inset 0 2px 6px rgba(0,0,0,.7) !important;
  position: relative !important;
}

/* Mobile highlight (grid version) */
@media (max-width: 768px) {
  .bp-slot.bp-slot--active {
    /* re-assert the tile base, then override */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    background: #2b2b2b !important;
    color: #fff !important;
    height: 56px !important;
    padding: 4px !important;
    text-align: center !important;
    line-height: 1.3 !important;

    /* the actual highlight */
    border: 2px solid gold !important;
    border-radius: 8px !important;
    box-shadow: 0 0 8px rgba(255,215,0,.8) !important;
  }
}
@media (max-width:768px){
.bp-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  justify-content: center !important;  /* ⬅ centers last row */
}

  .bp-slot{
    flex:1 1 auto !important;
    min-width:60px !important;
    width:100% !important;   /* grid will handle the width */
    max-width:30% !important; /* ensures they don’t blow out */
    height:56px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    font-weight:700 !important;
    font-size:12px !important;
    background:#2b2b2b !important;
    border:2px solid #3B3B3B !important;
    border-radius:8px !important;
    color:#fff !important;
    box-shadow:inset 0 2px 4px rgba(0,0,0,.4) !important;
    padding:4px !important;
    text-align:center !important;
    line-height:1.3 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Highlight (gold) */
  .bp-slot[style*="outline: 3px solid gold"]{
    border-color: gold !important;
    box-shadow: 0 0 8px rgba(255,215,0,.8) !important;
  }
}
