/* ============================================================================
   Erendor Online — Rehber sayfalari stili
   style.css'e dokunmadan, ayri dosya olarak yuklenir.
   ============================================================================ */

.guide-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 20px 80px;
}

.guide-header {
  text-align: center;
  margin-bottom: 28px;
}

.guide-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: #e4e7f0;
  margin: 0 0 8px;
}

.guide-subtitle {
  color: #8e97b4;
  font-size: 15px;
  margin: 0;
}

/* --- Kontroller: arama + nadir filtresi --- */
.guide-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.guide-search {
  flex: 1 1 320px;
  max-width: 460px;
  padding: 12px 16px;
  background: #0f121d;
  border: 1px solid #3a4568;
  border-radius: 10px;
  color: #f2f3f8;
  font-size: 15px;
  outline: none;
}
.guide-search:focus { border-color: #3f9488; }
.guide-search::placeholder { color: #646d8b; }

.guide-rarity {
  padding: 12px 14px;
  background: #0f121d;
  border: 1px solid #3a4568;
  border-radius: 10px;
  color: #f2f3f8;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.guide-status {
  color: #8e97b4;
  font-size: 13px;
  white-space: nowrap;
}

/* --- Kategori sekmeleri --- */
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}

.guide-tab {
  padding: 9px 16px;
  background: #161a2a;
  border: 1px solid #3a4568;
  border-radius: 999px;
  color: #cbd0e0;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.guide-tab:hover { border-color: #3f9488; color: #f2f3f8; }
.guide-tab.is-active {
  background: #3f9488;
  border-color: #3f9488;
  color: #171b2c;
  font-weight: 600;
}

/* --- Kart izgarasi --- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #161a2a;
  border: 1px solid #2b3350;
  border-left: 3px solid var(--rarity, #ced2df);
  border-radius: 12px;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  border-color: var(--rarity, #ced2df);
}

.guide-card-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  background: #0f121d;
  border: 1px solid #2b3350;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.guide-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.guide-card-icon.is-empty::after {
  content: '❖';
  color: var(--rarity, #5c6a92);
  font-size: 24px;
}

.guide-card-body { flex: 1; min-width: 0; }

.guide-card-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  margin: 0 0 2px;
  line-height: 1.25;
}

.guide-card-rarity {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.guide-card-meta {
  font-size: 12px;
  color: #7d86a6;
  margin-bottom: 8px;
}

.guide-card-desc {
  font-size: 13px;
  color: #a4abc2;
  line-height: 1.5;
  margin: 0 0 10px;
}

.guide-card-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guide-card-stats li {
  font-size: 12px;
  color: #d6dae7;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 6px;
  padding: 3px 8px;
}

.guide-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #7d86a6;
  padding: 60px 20px;
  font-size: 15px;
}

@media (max-width: 520px) {
  .guide-card { flex-direction: column; }
  .guide-card-icon { width: 56px; height: 56px; flex-basis: 56px; }
}

/* ===== Bölüm yapısı + bölüm menüsü ===== */
.guide-sectionnav {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  margin-bottom: 36px;
  background: rgba(11, 13, 22, .9);
  backdrop-filter: blur(6px);
  border: 1px solid #2b3350;
  border-radius: 12px;
}
.guide-sectionnav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: #cbd0e0;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.guide-sectionnav a:hover { background: #1c2130; color: #f2f3f8; }

.guide-section { margin-bottom: 56px; scroll-margin-top: 130px; }
.guide-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3.5vw, 30px);
  color: #e4e7f0;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2b3350;
}
.guide-section-intro {
  color: #a4abc2;
  font-size: 15px;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 0 22px;
}
.guide-section-intro strong { color: #dfe2ec; }

/* ===== Nadirlik kartlari ===== */
.rarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.rarity-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-top: 3px solid var(--rarity, #ced2df);
  border-radius: 12px;
  padding: 16px;
}
.rarity-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.rarity-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8e97b4;
  padding: 5px 0;
  border-top: 1px solid #20263b;
}
.rarity-row strong { color: #e4e7f0; }

/* ===== Stat tablosu ===== */
.stat-note {
  color: #8e97b4;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.stat-table-wrap {
  overflow-x: auto;
  border: 1px solid #2b3350;
  border-radius: 12px;
}
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.stat-table thead th {
  text-align: left;
  background: #171b2c;
  color: #cbd0e0;
  font-weight: 600;
  padding: 12px 14px;
  white-space: nowrap;
}
.stat-table tbody td {
  padding: 11px 14px;
  border-top: 1px solid #20263b;
  color: #c9cee0;
}
.stat-table tbody tr:hover { background: #141827; }
.stat-name { color: #e4e7f0 !important; font-weight: 500; }
.stat-name em { color: #7d86a6; font-style: normal; font-size: 12px; }
.stat-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.stat-slot-chip {
  font-size: 11px;
  color: #a4abc2;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.stat-table thead th small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #7d86a6;
  margin-top: 2px;
}
/* Karsilastirmada bakilacak sutun — gorsel olarak one cikar. */
.stat-max strong { color: #f0d9a8; font-size: 15px; }
.stat-cap-mark { color: #7d86a6; font-size: 10px; cursor: help; }
.stat-legend {
  color: #7d86a6;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #20263b;
}
.stat-note-warn {
  color: #f0b86b;
  background: #241c10;
  border: 1px solid #4a3a1c;
  border-radius: 8px;
  padding: 10px 12px;
}

/* ===== Silah uyum tablosu ===== */
.aff-table-wrap {
  overflow-x: auto;
  border: 1px solid #2b3350;
  border-radius: 12px;
}
.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.aff-table thead th {
  background: #171b2c;
  color: #cbd0e0;
  font-weight: 600;
  padding: 11px 10px;
  white-space: nowrap;
  font-size: 12.5px;
  text-align: center;
}
.aff-table thead th:first-child { text-align: left; }
.aff-table tbody td {
  padding: 11px 10px;
  border-top: 1px solid #20263b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.aff-class {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-align: left !important;
  white-space: nowrap;
}
/* Uyum yogunlugu — sayiyi okumadan once desen gorunur. */
.aff-cell { color: #c9cee0; }
.aff-great { background: rgba(64, 168, 108, 0.28); color: #b6f0cd; font-weight: 600; }
.aff-good  { background: rgba(64, 168, 108, 0.14); color: #a8dcbd; }
.aff-ok    { color: #9aa2bd; }
.aff-weak  { background: rgba(190, 84, 66, 0.12); color: #dba99c; }
.aff-bad   { background: rgba(190, 84, 66, 0.24); color: #f0b2a3; }
.aff-star { color: #f0d9a8; margin-left: 3px; font-size: 11px; }
.aff-legend {
  color: #7d86a6;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 12px 0 0;
}

/* ===== Esya kategori secici (liste bos oldugunda) ===== */
/* .guide-grid bir grid oldugu icin secici tek hucreye sikisiyordu — tam genislige yay. */
.guide-picker { padding: 8px 0 4px; grid-column: 1 / -1; }
.guide-picker-hint {
  color: #8e97b4;
  font-size: 14px;
  margin: 0 0 16px;
  text-align: center;
}
.guide-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.guide-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #161a2a;
  border: 1px solid #2b3350;
  border-radius: 12px;
  padding: 20px 14px;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.guide-picker-card:hover {
  border-color: #3f9488;
  background: #1a1f31;
  transform: translateY(-2px);
}
.guide-picker-label {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: #e4e7f0;
}
.guide-picker-count { font-size: 12px; color: #8e97b4; }

/* ===== Set kartlari ===== */
/* Kontroller: arama + siralama + sinif filtresi. Sinif dugmeleri ve renkleri
   data/sets.json > scheme.classes'tan gelir; burada sabit sinif adi/rengi YOKTUR. */
.set-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.set-classbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.set-chip {
  --chip: #8e97b4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 999px;
  color: #c9cee0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.set-chip:hover { border-color: var(--chip); color: #e4e7f0; }
.set-chip.is-active {
  border-color: var(--chip);
  color: var(--chip);
  background: #12172a;
  box-shadow: inset 0 0 0 1px currentColor;
}
.set-chip-count {
  font-size: 11px;
  color: #7d86a6;
  background: #1b2033;
  border-radius: 999px;
  padding: 1px 7px;
}
.set-chip.is-active .set-chip-count { color: inherit; }

/* Eski export uyarisi — veri sessizce bayatlamasin. */
.guide-warning-row {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #6b4a2a;
  background: #241a10;
  border-radius: 10px;
  color: #e0b184;
  font-size: 13px;
  text-align: center;
}
.guide-warning { color: #e0b184; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.set-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-left: 3px solid #3f9488;
  border-radius: 14px;
  padding: 20px;
}
.set-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.set-card-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #e4e7f0;
  margin: 0;
}
.set-card-meta { font-size: 12px; color: #7d86a6; margin-left: auto; }
/* Setin sinif egilimi. Renk inline style ile veriden gelir (ClassHex) — burada renk YOK. */
.set-class {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.set-class.is-unknown { color: #7d86a6; border-color: #2b3350; background: #0f121d; }
.set-lore {
  font-size: 14px;
  font-style: italic;
  color: #99a1bc;
  line-height: 1.6;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid #3a4568;
}
.set-bonuses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.set-bonus {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 8px;
  padding: 9px 12px;
}
.set-bonus.is-locked { opacity: .5; }
.set-bonus-tier {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #171b2c;
  background: #3f9488;
  border-radius: 5px;
  padding: 3px 8px;
}
.set-bonus.is-locked .set-bonus-tier { background: #4b587f; color: #a4abc2; }
.set-bonus-text { font-size: 13px; color: #c9cee0; }
.set-bonus-text strong { color: #e4e7f0; }
/* Parca sinerjisi: kademe bonusunun yaninda ikincil satir. */
.set-bonus-piece {
  display: block;
  font-size: 11.5px;
  color: #8fb8a6;
  margin-top: 2px;
}
/* Son esik setin KIMLIGI: sinifa ozel stat + yalniz o sette bulunan etki. */
.set-bonus-scope {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #c8a24a;
  border: 1px solid #6b5622;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}
.set-bonus-proc {
  display: block;
  font-size: 12px;
  color: #d3b06a;
  margin-top: 5px;
  padding-left: 9px;
  border-left: 2px solid #6b5622;
  line-height: 1.5;
}
.set-bonus-missing { color: #e0b184; font-style: italic; }
.set-bonus { align-items: flex-start; }
.set-bonus-tier { margin-top: 1px; }
.set-members-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7d86a6;
  margin-bottom: 8px;
}
.set-members { list-style: none; margin: 0; padding: 0; }
.set-members li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid #20263b;
  font-size: 13px;
}
.set-member-name { color: #d6dae7; }
.set-member-type { color: #7d86a6; }

/* ===== Slot tipi kartlari ===== */
.slottype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.slottype-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-radius: 12px;
  padding: 16px;
}
.slottype-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.slottype-name { font-family: 'Cinzel', serif; font-size: 17px; color: #e4e7f0; }
.slottype-cd { font-size: 12px; color: #3f9488; }
.slottype-desc { font-size: 13px; color: #a4abc2; line-height: 1.55; margin: 0; }

/* ===== Element kartlari ===== */
.elem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.elem-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-top: 3px solid var(--elem, #bfbfc7);
  border-radius: 12px;
  padding: 16px;
}
.elem-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.elem-effect { font-size: 13px; color: #a4abc2; line-height: 1.55; margin: 0; }

/* ===== Esya mekanikleri (yukseltme / buyuleme / parcalama) ===== */
.mech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}
.mech-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-radius: 12px;
  padding: 18px;
}
.mech-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mech-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f121d;
  border: 1px solid #3a4568;
  color: #3f9488;
  font-size: 19px;
}
.mech-title { font-family: 'Cinzel', serif; font-size: 19px; color: #e4e7f0; margin: 0; }
.mech-where { font-size: 12px; color: #7d86a6; margin-top: 2px; }
.mech-intro { font-size: 13px; color: #a4abc2; line-height: 1.6; margin: 0 0 14px; }
.mech-intro strong, .mech-steps strong, .mech-item-what strong { color: #e4e7f0; }

/* Sayilar rules.json'dan gelir — metne gomulmez */
.mech-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.mech-fact {
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 8px;
  padding: 8px 10px;
}
.mech-fact-label { display: block; font-size: 11px; color: #7d86a6; margin-bottom: 3px; }
.mech-fact-value { font-size: 13px; color: #3f9488; }

/* Buyuleme taslari gibi alt kalemler */
.mech-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mech-item {
  background: #0f121d;
  border: 1px solid #2b3350;
  border-left: 3px solid var(--mi, #3f9488);
  border-radius: 8px;
  padding: 12px 14px;
}
.mech-item-name { font-family: 'Cinzel', serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.mech-item-what { font-size: 13px; color: #a4abc2; line-height: 1.6; margin: 0 0 8px; }
.mech-item-when { font-size: 12px; color: #8f98b5; line-height: 1.6; margin: 0; }
.mech-item-when span { color: var(--mi, #3f9488); font-weight: 600; }

.mech-steps { margin: 0 0 14px; padding-left: 18px; }
.mech-steps li { font-size: 13px; color: #a4abc2; line-height: 1.6; margin-bottom: 7px; }
.mech-steps li::marker { color: #3f9488; }

.mech-tip {
  background: #1b2032;
  border-left: 3px solid #3f9488;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #cbd0e0;
  line-height: 1.6;
  margin: 0;
}
.mech-tip span { color: #3f9488; font-weight: 600; }

/* ===== Sinif kartlari ===== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.class-card {
  display: flex;
  flex-direction: column;
  background: #161a2a;
  border: 1px solid #2b3350;
  border-top: 3px solid var(--class, #3f9488);
  border-radius: 12px;
  padding: 16px;
}
.class-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.class-desc {
  font-size: 13px;
  color: #a4abc2;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}
.class-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--class, #3f9488);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
}
.class-link:hover { border-bottom-color: currentColor; }

/* ===== Skill filtreleri ===== */
.skill-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.skill-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.skill-filter-label {
  flex: 0 0 48px;
  font-size: 13px;
  color: #7d86a6;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.skill-filter-row .guide-tabs { justify-content: flex-start; margin-bottom: 0; }

/* Sekme sayaci — hangi sinifta kac yetenek var, tiklamadan gorunur. */
.tab-count {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #0f121d;
  border: 1px solid #3a4568;
  font-size: 10px;
  color: #7d86a6;
}
.guide-tab.is-active .tab-count {
  background: rgba(0,0,0,.25);
  border-color: transparent;
  color: inherit;
}

/* ===== Skill sonuclari (sinif gruplari) ===== */
/* "Tumu" gorunumunde sinif gruplarini, filtre secilince tek grid'i sarar. */
.skill-results { display: block; }
.skill-group + .skill-group { margin-top: 34px; }
.skill-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--class, #e4e7f0);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2b3350;
}
.skill-group-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #7d86a6;
}

/* ===== Skill kartlari ===== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.skill-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-left: 3px solid var(--elem, #bfbfc7);
  border-radius: 12px;
  padding: 16px;
  transition: transform .12s, box-shadow .12s;
}
.skill-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.skill-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.skill-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: #0f121d;
  border: 1px solid #2b3350;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.skill-icon img { width: 100%; height: 100%; object-fit: contain; }
.skill-icon.is-empty::after { content: '✦'; color: var(--class, #5c6a92); font-size: 22px; }
.skill-head { flex: 1; min-width: 0; }
.skill-name { font-family: 'Cinzel', serif; font-size: 17px; color: #e4e7f0; margin: 0 0 6px; line-height: 1.2; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-class, .skill-type, .skill-elem, .skill-passive-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Sinif rozeti sinif renginde cerceve — koyu zeminde her palet rengi okunur kaliyor
   (dolu zeminde acik yesil/mor kontrasti bozuluyordu). */
.skill-class {
  background: transparent;
  border: 1px solid var(--class, #3f9488);
  color: var(--class, #3f9488);
  font-weight: 600;
}
.skill-type { background: #0f121d; border: 1px solid #3a4568; color: #cbd0e0; }
.skill-elem { background: transparent; border: 1px solid; font-weight: 600; }
.skill-passive-badge {
  background: #3f9488;
  color: #171b2c;
  font-weight: 600;
}
.skill-desc { font-size: 13px; color: #a4abc2; line-height: 1.55; margin: 0 0 12px; }
/* Oyun metnindeki <color=...> etiketleri buraya <span> olarak gelir — koyu zeminde
   solmasin diye hafifce parlatiyoruz. */
.skill-desc span { font-weight: 600; }
.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #7d86a6;
  border-top: 1px solid #20263b;
  padding-top: 10px;
}
.skill-meta strong { color: #e4e7f0; }

/* ===== Canavar (Bestiary) kartlari ===== */
.guide-notice {
  background: #1b2032;
  border: 1px solid #3a4568;
  border-left: 3px solid #3f9488;
  border-radius: 10px;
  padding: 12px 16px;
  color: #cbd0e0;
  font-size: 13px;
  margin-bottom: 18px;
}
.mon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.mon-card {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-left: 3px solid var(--elem, #bfbfc7);
  border-radius: 12px;
  padding: 16px;
  transition: transform .12s, box-shadow .12s;
}
.mon-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.mon-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.mon-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background: #0f121d;
  border: 1px solid #2b3350;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mon-icon img { width: 100%; height: 100%; object-fit: contain; }
.mon-icon.is-empty::after { content: '☥'; color: var(--elem, #5c6a92); font-size: 24px; }
.mon-head { flex: 1; min-width: 0; }
.mon-name { font-family: 'Cinzel', serif; font-size: 18px; color: #e4e7f0; margin: 0 0 6px; line-height: 1.2; }
.mon-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.mon-level, .mon-arch {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mon-level { background: #3f9488; color: #171b2c; font-weight: 600; }
.mon-arch { background: #0f121d; border: 1px solid #3a4568; color: #cbd0e0; }
.mon-spawn { font-size: 12px; color: #8e97b4; }
.mon-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mon-trait {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border: 1px solid;
  border-radius: 999px;
  background: transparent;
}
.mon-ai {
  font-size: 12px;
  color: #a4abc2;
  padding: 8px 0;
  border-top: 1px solid #20263b;
  margin-bottom: 4px;
}
.mon-block-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7d86a6;
  margin: 10px 0 6px;
}
.mon-empty-line { font-size: 12px; color: #646d8b; margin: 0; }
.mon-attacks { list-style: none; margin: 0; padding: 0; }
.mon-attacks li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid #191e30;
  font-size: 13px;
}
.mon-attack-name { color: #d6dae7; }
.mon-attack-meta { color: #7d86a6; font-size: 11px; white-space: nowrap; }
.mon-loot-names { font-size: 13px; color: #c9cee0; margin-bottom: 6px; }
.mon-loot-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mon-loot-tag {
  font-size: 11px;
  color: #a4abc2;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 5px;
  padding: 2px 7px;
}
