/* ══════════════════════════════════════════════════════════════
   SoulsGuides — Enotria — Catalog Pages (Armas / Items / NPCs)
   Shared gold/amber design system — adapted from Jefes layout
   ══════════════════════════════════════════════════════════════ */

/* ──── HERO overrides ──── */
.eno-cat-hero { min-height: 70vh; }

.eno-cat-hero-title {
  display: flex; flex-direction: column;
  margin-bottom: 20px;
}
.eno-cat-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-cat-title-sub {
  font-size: clamp(13px, 2vw, 18px); color: var(--text);
  font-weight: 300; letter-spacing: .15em; text-transform: uppercase; margin-top: 4px;
}

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

/* ──── FALLBACK ──── */
.eno-cat-fallback { padding: 80px 0; }
.eno-cat-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-cat-fallback-box h2 { color: var(--gold); margin: 20px 0 10px; font-size: 24px; }
.eno-cat-fallback-box p  { color: var(--text); max-width: 500px; margin: 0 auto; }

/* ──── FILTER SECTION ──── */
.eno-cat-filters-section { padding: 72px 0 0; }
.eno-cat-filters-head    { margin-bottom: 32px; }
.eno-cat-filters-title   {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: var(--white);
}
.eno-cat-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-cat-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 24px;
}

/* Search */
.eno-cat-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-cat-search:focus-within { border-color: var(--gold); }
.eno-cat-search svg { stroke: var(--text); opacity: .5; flex-shrink: 0; }
.eno-cat-search-input {
  background: none; border: none; outline: none;
  color: var(--text-l); font-size: 16px; font-family: inherit; width: 100%;
}
.eno-cat-search-input::placeholder { color: var(--text); opacity: .5; }

/* Sort */
.eno-cat-sort { display: flex; align-items: center; gap: 8px; }
.eno-cat-sort-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.eno-cat-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-cat-sort-select option { background: #221a14; color: #ece0c8; }
.eno-cat-sort-select:hover,
.eno-cat-sort-select:focus { border-color: var(--gold); outline: none; }

/* Filter pills */
.eno-cat-filter-group { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eno-cat-filter-label { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--text); flex-shrink: 0; }
.eno-cat-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.eno-cat-pill {
  padding: 6px 14px; border-radius: 20px; font-family: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: all .2s;
  background: rgba(196,163,90,.05); border: 1px solid rgba(196,163,90,.12);
  color: var(--text);
}
.eno-cat-pill:hover { background: rgba(196,163,90,.12); border-color: rgba(150,120,58,.25); color: var(--text-l); }
.eno-cat-pill--active { background: rgba(150,120,58,.15); border-color: rgba(150,120,58,.3); color: var(--gold); }

/* ──── CATALOG GRID ──── */
.eno-cat-grid-section { padding: 0 0 60px; }
.eno-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ──── CATALOG CARD ──── */
.eno-cat-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-cat-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-cat-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Card visual – icon area */
.eno-cat-card-visual {
  position: relative; height: 130px;
  background: linear-gradient(135deg, rgba(196,163,90,.05), rgba(196,163,90,.02));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.eno-cat-card-img {
  max-height: 100px; max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .4s ease;
}
.eno-cat-card:hover .eno-cat-card-img { transform: scale(1.08); }
.eno-cat-card-placeholder { width: 64px; height: 64px; color: var(--gold); opacity: .18; }
.eno-cat-card-placeholder svg { width: 100%; height: 100%; }

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

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

/* Stat lines in card */
.eno-cat-card-stat {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text); margin-bottom: 4px;
}
.eno-cat-card-stat-label { opacity: .7; }
.eno-cat-card-stat-val   { color: var(--gold-l); font-weight: 600; }
.eno-cat-card-stat svg   { stroke: var(--text); opacity: .4; flex-shrink: 0; }

/* Description preview in card */
.eno-cat-card-desc {
  font-size: 12px; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 6px 0 0;
}

/* Inspect hint */
.eno-cat-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-cat-card-inspect svg { stroke: var(--gold); }
.eno-cat-card:hover .eno-cat-card-inspect { opacity: 1; transform: translateY(0); }

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

/* ══════════════════════════════════════════════════════════════
   CATALOG INSPECTOR — Cinematic Modal (same as Jefes)
   ══════════════════════════════════════════════════════════════ */
.eno-cat-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-cat-inspector.active { pointer-events: auto; opacity: 1; }

.eno-cat-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-cat-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-cat-inspector.active .eno-cat-inspector-container { transform: scale(1) translateY(0); }

/* Close */
.eno-cat-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-cat-inspector-close:hover { background: rgba(150,120,58,.12); border-color: var(--gold); color: var(--gold); }

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

/* Header */
.eno-cat-insp-header-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 0;
}
.eno-cat-insp-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-cat-insp-counter { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; padding-top: 4px; }

/* Badges */
.eno-cat-insp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.eno-cat-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;
  background: rgba(196,163,90,.12); color: var(--gold-l); border: 1px solid rgba(150,120,58,.25);
}

/* Inspector icon */
.eno-cat-insp-icon-wrap {
  display: flex; justify-content: center; margin-bottom: 20px;
}
.eno-cat-insp-icon {
  width: 96px; height: 96px; object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.6));
}

/* Tabs */
.eno-cat-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-cat-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-cat-insp-tab svg { stroke: var(--text); opacity: .5; flex-shrink: 0; transition: all .25s; }
.eno-cat-insp-tab:hover { color: var(--text-l); background: rgba(0,0,0,.04); }
.eno-cat-insp-tab.active { color: var(--gold); background: rgba(150,120,58,.1); border-color: rgba(196,163,90,.25); }
.eno-cat-insp-tab.active svg { stroke: var(--gold); opacity: 1; }

/* Tab content panels */
.eno-cat-insp-panel { display: none; }
.eno-cat-insp-panel.active { display: block; }

/* Inspector section box */
.eno-cat-insp-section {
  margin-bottom: 20px; padding: 16px;
  background: rgba(196,163,90,.03); border: 1px solid rgba(0,0,0,.04); border-radius: 10px;
}
.eno-cat-insp-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold); margin: 0 0 14px; font-weight: 600;
}

/* Lore / description text */
.eno-cat-insp-lore { color: var(--text); font-size: 13px; line-height: 1.8; white-space: pre-line; margin: 0; }

/* ── Stat grid (4-up cards) ── */
.eno-cat-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
}
.eno-cat-stat-card {
  padding: 12px 14px; text-align: center;
  background: rgba(196,163,90,.04); border: 1px solid rgba(200,168,76,.08); border-radius: 8px;
}
.eno-cat-stat-label {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 6px;
}
.eno-cat-stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--gold-l); line-height: 1; }
.eno-cat-stat-value--fire   { color: #e88a5a; }
.eno-cat-stat-value--elem   { color: #7ec4d8; }
.eno-cat-stat-value--status { color: #b478e8; }
.eno-cat-stat-value--scale  { color: var(--gold); font-size: 18px; }

/* ── Quest list (npcs) ── */
.eno-cat-quest-list { display: flex; flex-direction: column; gap: 12px; }
.eno-cat-quest-item {
  padding: 14px 16px;
  background: rgba(196,163,90,.04); border: 1px solid rgba(200,168,76,.08); border-radius: 10px;
}
.eno-cat-quest-title {
  font-size: 14px; font-weight: 600; color: var(--gold-l); margin: 0 0 6px;
}
.eno-cat-quest-desc { font-size: 12px; color: var(--text); line-height: 1.7; margin: 0; }

/* Nav arrows */
.eno-cat-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-cat-inspector-nav:hover { background: rgba(150,120,58,.12); border-color: var(--gold); color: var(--gold); }
.eno-cat-inspector-nav--prev { left: max(8px, calc(50vw - 560px)); }
.eno-cat-inspector-nav--next { right: max(8px, calc(50vw - 560px)); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .eno-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .eno-cat-inspector-nav { display: none; }
}
@media (max-width: 600px) {
  .eno-cat-grid { grid-template-columns: 1fr; }
  .eno-cat-inspector-data { padding: 20px 18px; }
  .eno-cat-insp-tabs { flex-wrap: wrap; }
  .eno-cat-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .eno-cat-toolbar { flex-direction: column; align-items: stretch; }
  .eno-cat-search { max-width: 100%; }
}
