/* --------------------------------------------------------------
   SoulsGuides � Enotria Jefes � Boss Cards + Inspector
   Adapted from Lies of P layout � gold/amber palette
   -------------------------------------------------------------- */

/* ---- HERO OVERRIDES ---- */
.eno-jefes-hero { min-height: 85vh; }

.eno-jefes-hero-abstract {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
  overflow: hidden;
}
.eno-jefes-hero-gradient {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(196,163,90,.09) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 80% 60%, rgba(0,0,0,.04) 0%, transparent 60%);
}

/* Title */
.eno-jefes-hero-title {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  margin-bottom: 20px;
}
.eno-jefes-title-text { display: flex; flex-direction: column; }
.eno-jefes-title-main {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-l), var(--gold), #b8913a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eno-jefes-title-sub {
  font-size: clamp(14px, 2vw, 20px);
  color: var(--text); font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  margin-top: 4px;
}

/* Hero stats */
.eno-jefes-hero-stats { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.eno-jefes-hstat { text-align: center; }
.eno-jefes-hstat-num {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--gold); line-height: 1;
}
.eno-jefes-hstat-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .15em; color: var(--text);
  margin-top: 4px; display: block;
}

/* ---- FALLBACK ---- */
.eno-jefes-fallback { padding: 80px 0; }
.eno-jefes-fallback-box {
  text-align: center; padding: 60px 40px;
  border: 1px solid rgba(150,120,58,.15);
  border-radius: 12px; background: rgba(0,0,0,.05);
}
.eno-jefes-fallback-box h2 { color: var(--gold); margin: 20px 0 10px; font-size: 24px; }
.eno-jefes-fallback-box p  { color: var(--text); max-width: 500px; margin: 0 auto; }

/* ---- FILTER SECTION ---- */
.eno-jefes-filters-section { padding: 40px 0 0; }
.eno-jefes-filters-head   { margin-bottom: 32px; }
.eno-jefes-filters-title  {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: var(--white);
}
.eno-jefes-filters-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-l), #b8913a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eno-jefes-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 32px;
}

/* Search */
.eno-jefes-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.04); border: 1px solid rgba(150,120,58,.15);
  border-radius: 8px; padding: 8px 14px;
  transition: border-color .25s; flex: 1; max-width: 360px;
}
.eno-jefes-search:focus-within { border-color: var(--gold); }
.eno-jefes-search svg { stroke: var(--text); opacity: .5; flex-shrink: 0; }
.eno-jefes-search-input {
  background: none; border: none; outline: none;
  color: var(--text-l); font-size: 16px; font-family: inherit; width: 100%;
}
.eno-jefes-search-input::placeholder { color: var(--text); opacity: .5; }

/* Sort */
.eno-jefes-sort { display: flex; align-items: center; gap: 8px; }
.eno-jefes-sort-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.eno-jefes-sort-select {
  background: rgba(0,0,0,.04); border: 1px solid rgba(150,120,58,.15);
  border-radius: 8px; padding: 8px 12px;
  color: var(--text-l); font-size: 13px;
  font-family: inherit; cursor: pointer; transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.eno-jefes-sort-select option { background: #221a14; color: #ece0c8; }
.eno-jefes-sort-select:hover,
.eno-jefes-sort-select:focus { border-color: var(--gold); outline: none; }

/* ---- BOSS GRID ---- */
.eno-jefes-grid-section { padding: 0 0 60px; }
.eno-jefes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---- BOSS CARD ---- */
.eno-jefes-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(145deg, rgba(26,20,16,.97), rgba(34,26,20,.99));
  border: 1px solid rgba(200,168,76,.08);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color .35s cubic-bezier(.4,0,.2,1),
              transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}
.eno-jefes-card:hover {
  border-color: rgba(150,120,58,.25); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(150,120,58,.12);
}
.eno-jefes-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eno-jefes-card--fases { border-color: rgba(196,163,90,.12); }

/* Card visual */
.eno-jefes-card-visual {
  position: relative; height: 220px;
  background: linear-gradient(135deg, rgba(150,120,58,.04), rgba(150,120,58,.02));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.eno-jefes-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  filter: brightness(.85) contrast(1.05);
  transition: transform .4s ease, filter .4s ease;
}
.eno-jefes-card:hover .eno-jefes-card-img { transform: scale(1.05); filter: brightness(.95) contrast(1.05); }
.eno-jefes-card-placeholder { width: 80px; height: 80px; color: var(--gold); opacity: .2; }
.eno-jefes-card-placeholder svg { width: 100%; height: 100%; }

/* Fases badge */
.eno-jefes-card-fases-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(150,120,58,.18); border: 1px solid rgba(196,163,90,.35);
  color: var(--gold-l);
}

/* Card info */
.eno-jefes-card-info { padding: 16px 18px 14px; flex: 1; }
.eno-jefes-card-name { font-size: 17px; font-weight: 600; color: var(--white); margin: 0 0 10px; line-height: 1.3; }

/* HP bar */
.eno-jefes-card-hp { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.eno-jefes-card-hp-bar { flex: 1; height: 6px; background: rgba(150,120,58,.1); border-radius: 3px; overflow: hidden; }
.eno-jefes-card-hp-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  transition: width .6s ease;
}
.eno-jefes-card-hp-val { font-size: 11px; font-weight: 600; color: var(--gold-l); white-space: nowrap; letter-spacing: .02em; }

/* Almas */
.eno-jefes-card-almas {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .04em;
}
.eno-jefes-card-almas svg { stroke: var(--gold); }

/* Inspect hint */
.eno-jefes-card-inspect {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-top: 1px solid rgba(200,168,76,.06);
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text);
  opacity: 0; transform: translateY(4px); transition: all .3s ease;
}
.eno-jefes-card-inspect svg { stroke: var(--gold); }
.eno-jefes-card:hover .eno-jefes-card-inspect { opacity: 1; transform: translateY(0); }

/* No results */
.eno-jefes-no-results { text-align: center; padding: 80px 20px; }
.eno-jefes-no-results p { margin-top: 16px; color: var(--text); font-size: 16px; }

/* --------------------------------------------------------------
   BOSS INSPECTOR � Cinematic Modal
   -------------------------------------------------------------- */
.eno-jefes-inspector {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.eno-jefes-inspector.active { pointer-events: auto; opacity: 1; }

.eno-jefes-inspector-backdrop {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}

.eno-jefes-inspector-container {
  position: relative; z-index: 1; width: min(96vw, 1000px);
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(145deg, rgba(26,20,16,.99), rgba(34,26,20,.99));
  border: 1px solid rgba(150,120,58,.15); border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,.1), 0 0 80px rgba(150,120,58,.04);
  transform: scale(.92) translateY(20px);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.eno-jefes-inspector.active .eno-jefes-inspector-container { transform: scale(1) translateY(0); }

/* Close */
.eno-jefes-inspector-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.04); border: 1px solid rgba(200,168,76,.1);
  color: var(--text-l); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.eno-jefes-inspector-close:hover { background: rgba(150,120,58,.12); border-color: var(--gold); color: var(--gold); }

/* Layout */
.eno-jefes-inspector-layout { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.eno-jefes-inspector-data {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 32px 36px;
}
.eno-jefes-inspector-data::-webkit-scrollbar { display: block !important; width: 6px !important; }
.eno-jefes-inspector-data::-webkit-scrollbar-track { background: transparent !important; }
.eno-jefes-inspector-data::-webkit-scrollbar-thumb { background: rgba(150,120,58,.25) !important; border-radius: 3px !important; }

/* Header */
.eno-jefes-inspector-header-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 0;
}
.eno-jefes-inspector-name {
  font-size: clamp(22px, 3vw, 36px); font-weight: 700; color: var(--white);
  margin: 0 0 12px; line-height: 1.2; padding-right: 60px;
}
.eno-jefes-inspector-counter { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; padding-top: 4px; }

/* Badges */
.eno-jefes-inspector-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.eno-jefes-insp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eno-jefes-insp-badge--fases {
  background: rgba(196,163,90,.12); color: var(--gold-l); border: 1px solid rgba(150,120,58,.25);
}

/* Vitals */
.eno-jefes-inspector-vitals {
  margin-bottom: 24px; padding: 16px;
  background: rgba(196,163,90,.03); border: 1px solid rgba(200,168,76,.08); border-radius: 10px;
}
.eno-jefes-insp-vital { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.eno-jefes-insp-vital:last-child { margin-bottom: 0; }
.eno-jefes-insp-vital-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); min-width: 50px;
}
.eno-jefes-insp-hp-bar { flex: 1; height: 8px; background: rgba(150,120,58,.1); border-radius: 4px; overflow: hidden; }
.eno-jefes-insp-hp-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l)); transition: width .8s ease;
}
.eno-jefes-insp-vital-val { font-size: 14px; font-weight: 700; color: var(--gold-l); white-space: nowrap; }
.eno-jefes-insp-vital-val--almas { color: var(--gold); }

/* Tabs */
.eno-jefes-insp-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: rgba(196,163,90,.04); border: 1px solid rgba(200,168,76,.08);
  border-radius: 10px; padding: 4px;
}
.eno-jefes-insp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; min-height: 44px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); background: none;
  border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; transition: all .25s;
}
.eno-jefes-insp-tab svg { stroke: var(--text); opacity: .5; flex-shrink: 0; transition: all .25s; }
.eno-jefes-insp-tab:hover { color: var(--text-l); background: rgba(0,0,0,.04); }
.eno-jefes-insp-tab.active { color: var(--gold); background: rgba(150,120,58,.1); border-color: rgba(196,163,90,.25); }
.eno-jefes-insp-tab.active svg { stroke: var(--gold); opacity: 1; }

/* Tab content */
.eno-jefes-insp-tab-content { display: none; }
.eno-jefes-insp-tab-content.active { display: block; }

/* Sections */
.eno-jefes-inspector-section {
  margin-bottom: 24px; padding: 16px;
  background: rgba(196,163,90,.03); border: 1px solid rgba(0,0,0,.04); border-radius: 10px;
}
.eno-jefes-inspector-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold); margin: 0 0 14px; font-weight: 600;
}
.eno-jefes-inspector-section--stats { border-color: rgba(196,163,90,.12); }

/* Stat rows */
.eno-jefes-stat-rows { display: flex; flex-direction: column; gap: 5px; }
.eno-jefes-stat-row {
  display: grid; grid-template-columns: 150px 1fr auto;
  align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(196,163,90,.03); border-radius: 8px;
  border: 1px solid rgba(0,0,0,.04); transition: background .15s;
}
.eno-jefes-stat-row:hover    { background: rgba(196,163,90,.07); }
.eno-jefes-stat-row--res     { border-color: rgba(90,160,190,.1); }
.eno-jefes-stat-row--res:hover { background: rgba(90,160,190,.06); }
.eno-jefes-stat-label {
  font-size: 12px; text-transform: capitalize; letter-spacing: .01em;
  color: var(--text-l); font-weight: 500; white-space: nowrap;
}
.eno-jefes-stat-bar { height: 7px; background: rgba(150,120,58,.1); border-radius: 4px; overflow: hidden; }
.eno-jefes-stat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-l)); transition: width .6s ease; }
.eno-jefes-stat-fill--res  { background: linear-gradient(90deg, #5eb8a9, #7ec4b5); }
.eno-jefes-stat-fill--atk  { background: linear-gradient(90deg, #e8785a, #f0a080); }
.eno-jefes-stat-fill--zero { opacity: .25; }
.eno-jefes-stat-value { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; padding-left: 6px; color: var(--gold-l); }
.eno-jefes-stat-value--zero { color: var(--text); opacity: .45; }
.eno-jefes-stat-value--res  { color: #7ec4b5; }

/* Section divider label */
.eno-jefes-stat-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); opacity: .7; margin-top: 8px; margin-bottom: 2px; padding-left: 4px;
}
.eno-jefes-stat-section-label:first-child { margin-top: 0; }
.eno-jefes-stat-section-label--res { color: #7ec4b5; }

/* Phase toggle */
.eno-jefes-phase-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.eno-jefes-phase-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; font-family: inherit;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text); background: rgba(196,163,90,.05);
  border: 1px solid rgba(196,163,90,.12); border-radius: 10px;
  cursor: pointer; transition: all .25s;
}
.eno-jefes-phase-btn-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(196,163,90,.12); border: 1px solid rgba(150,120,58,.18);
  font-size: 11px; font-weight: 700; color: var(--text);
  transition: all .25s; flex-shrink: 0;
}
.eno-jefes-phase-btn:hover { color: var(--gold-l); background: rgba(150,120,58,.1); border-color: rgba(196,163,90,.28); }
.eno-jefes-phase-btn.active { color: #fff; background: rgba(196,163,90,.18); border-color: rgba(196,163,90,.45); box-shadow: 0 2px 12px rgba(150,120,58,.15); }
.eno-jefes-phase-btn.active .eno-jefes-phase-btn-num { background: rgba(196,163,90,.45); border-color: rgba(196,163,90,.7); color: #fff; }

/* Phase panels */
.eno-jefes-phase-panel { display: none; }
.eno-jefes-phase-panel.active { display: block; }

/* Lore section */
.eno-jefes-inspector-section--lore { border-color: rgba(150,120,58,.1); }
.eno-jefes-inspector-section--desc { border-color: rgba(196,163,90,.08); }
.eno-jefes-inspector-lore { color: var(--text); font-size: 13px; line-height: 1.8; white-space: pre-line; margin: 0; }

/* Rewards section */
.eno-jefes-inspector-section--rewards {
  border-color: rgba(90,160,190,.15);
  background: linear-gradient(135deg, rgba(90,160,190,.06), rgba(90,160,190,.02));
}
.eno-jefes-inspector-rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.eno-jefes-reward-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px;
  background: rgba(90,160,190,.08); border: 1px solid rgba(90,160,190,.2);
  border-radius: 10px; cursor: default;
  transition: background .2s, border-color .2s, transform .15s;
}
.eno-jefes-reward-chip:hover { background: rgba(90,160,190,.15); border-color: rgba(90,160,190,.4); transform: translateY(-2px); }
.eno-jefes-reward-chip-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(90,160,190,.1); color: #7ac4d8;
}
.eno-jefes-reward-chip-name { font-size: 13px; font-weight: 600; color: #7ac4d8; white-space: nowrap; }

/* Nav arrows � fixed to viewport so overflow/transform context can't interfere */
.eno-jefes-inspector-nav {
  position: fixed; top: 50%; z-index: 10000;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.04); border: 1px solid rgba(200,168,76,.1);
  color: var(--text-l); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%); transition: all .25s;
}
.eno-jefes-inspector-nav:hover { background: rgba(150,120,58,.12); border-color: var(--gold); color: var(--gold); }
.eno-jefes-inspector-nav--prev { left: max(8px, calc(50vw - 560px)); }
.eno-jefes-inspector-nav--next { right: max(8px, calc(50vw - 560px)); }

/* --------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------- */
@media (max-width: 900px) {
  .eno-jefes-grid { grid-template-columns: 1fr; }
  .eno-jefes-inspector-nav { display: none; }
}

@media (max-width: 600px) {
  .eno-jefes-inspector-data { padding: 20px 18px; }
  .eno-jefes-insp-tabs { flex-wrap: wrap; }
  .eno-jefes-phase-toggle { grid-template-columns: 1fr; }
  .eno-jefes-stat-row { grid-template-columns: 120px 1fr auto; }
}
