/* champion.css — Charakter-Detailansicht & Krieger-Auswahlmenü  v2 POLISH
   Ronin's-Oath-Stil: Lackrot/Schwarz, Goldrand, Sakura-Hintergrund.
   Kein Eingriff in styles.css. Alle Variablen aus :root. */

/* ============================================================
   0. Gemeinsame Lackrahmen-Variablen
   ============================================================ */
:root {
  --lacquer-a: #1a0d0b;
  --lacquer-b: #2a0e0e;
  --lacquer-c: #0e0808;
  --gold-hi:   #c9a24e;
  --gold-lo:   #7a5a22;
  --gold-text-from: #e2c07e;
  --gold-text-to:   #9a6a1c;
  --sakura-bg: url('/assets/ui/panorama/bg-sakura-dusk.webp');
}

/* ============================================================
   1. Champion-Overlay (RAID-Stil, Fullscreen)
   ============================================================ */

.champion-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  /* Sakura-Dämmerung + starke Verdunklung */
  background: var(--sakura-bg) center / cover no-repeat;
  background-color: #0a0406;
}
/* Vignette über dem Hintergrundbild */
.champion-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 50%, transparent 20%, rgba(4,2,3,.88) 80%),
    linear-gradient(180deg, rgba(5,2,2,.65) 0%, rgba(5,2,2,.45) 100%);
  pointer-events: none;
  z-index: 0;
}

.champion-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,460px) minmax(0,560px);
  width: min(1100px, 100vw);
  min-height: 100vh;
  outline: none;
}

.champion-close {
  position: fixed;
  top: 18px; right: 22px;
  z-index: 10;
  background: rgba(26,13,11,.8);
  border: 1px solid var(--gold-lo);
  color: var(--gold-hi);
  width: 40px; height: 40px;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  clip-path: polygon(10% 0%,90% 0%,100% 10%,100% 90%,90% 100%,10% 100%,0% 90%,0% 10%);
}
.champion-close:hover {
  background: rgba(201,162,78,.15);
  border-color: var(--gold-hi);
  color: #fff;
}

/* ---- Linke Spalte: Charakter-Kunst (füllt volle Höhe) ---- */
.champion-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Lässt Hintergrundbild durchscheinen — kein eigener Hintergrund */
}

.champ-art-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
/* Rechter Fade: Kunst geht nahtlos in Lackpanel über */
.champ-art-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 45%, rgba(26,13,11,.97) 100%),
    linear-gradient(0deg, rgba(10,4,6,.7) 0%, transparent 30%);
  pointer-events: none;
}
.champ-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

/* Identitäts-Schicht ÜBER dem Bild (unten links) */
.champ-identity {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 20px 22px 22px;
  background: linear-gradient(0deg, rgba(10,4,6,.9) 0%, rgba(10,4,6,.5) 60%, transparent 100%);
}
.champ-identity .eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 4px;
}
.champ-name {
  font: 700 36px/1.05 Georgia, 'Times New Roman', serif;
  letter-spacing: -.02em;
  /* Gold-Verlauf-Text */
  background: linear-gradient(180deg, var(--gold-text-from) 0%, var(--gold-text-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px;
  text-shadow: none;
}
.champ-rarity-line {
  color: var(--rarity-color, var(--gold-hi));
  font-size: 11px;
  letter-spacing: .1em;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.champ-rarity-line .rarity-stars { font-size: 13px; }

.champ-status-row {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.champ-status-pill {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px;
  background: rgba(136,61,64,.4);
  border: 1px solid rgba(180,100,100,.55);
  color: #f0c8c8;
  clip-path: polygon(6px 0%,100% 0%,100% 100%,0% 100%,0% 6px);
}
.champ-status-pill .pill-icon { margin-right: 4px; }
.champ-gear-tag {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; margin-top: 6px; display: inline-block;
  background: rgba(201,162,78,.1);
  border: 1px solid rgba(201,162,78,.4);
  color: var(--gold-hi);
}

/* Karte im unteren Bereich der linken Spalte */
.champ-card-wrap {
  position: absolute;
  bottom: 24px; right: -40px;
  z-index: 2;
}
.champ-static-card {
  flex: 0 0 auto !important;
  width: 175px !important;
  height: 260px !important;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.7));
  transform: rotate(-3deg);
}
.champ-static-card .card-cost { font-size: 28px; }
.champ-static-card .card-name { font-size: 15px; }
.champ-static-card .card-fade {
  background: linear-gradient(0deg, #080b0e 1%, rgba(8,11,14,.9) 28%, transparent 70%),
              linear-gradient(180deg, rgba(8,11,14,.8), transparent 22%);
}
.champ-static-card .card-rules { display: block; font-size: 8px; line-height: 1.5; color: #ccc6ba; margin-top: 6px; }

/* ---- Rechte Spalte: Lackpanel mit Stat-Block ---- */
.champion-right {
  position: relative;
  background: linear-gradient(155deg, var(--lacquer-a) 0%, var(--lacquer-b) 50%, var(--lacquer-c) 100%);
  /* Doppelter Goldrand links */
  border-left: 1px solid var(--gold-hi);
  box-shadow: inset 3px 0 0 var(--gold-lo), -8px 0 40px rgba(0,0,0,.5);
  padding: 52px 32px 40px 36px;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Goldene Eckverzierungen (Diamanten) */
.champion-right::before,
.champion-right::after {
  content: '◆';
  position: absolute;
  color: var(--gold-hi);
  font-size: 10px;
  line-height: 1;
}
.champion-right::before { top: 14px; left: -6px; }
.champion-right::after  { bottom: 14px; left: -6px; }

.champ-section {
  border-bottom: 1px solid rgba(201,162,78,.14);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.champ-section:last-child { border-bottom: none; margin-bottom: 0; }
.champ-section > .eyebrow {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201,162,78,.2);
}

/* Stat-Zeilen mit kleinen Ikonen */
.champ-stat-grid { display: grid; gap: 5px; }
.champ-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(201,162,78,.05);
  border: 1px solid rgba(201,162,78,.1);
  /* Goldener Startstreifen links */
  border-left: 2px solid rgba(201,162,78,.35);
  font-size: 12px;
  transition: background .12s;
}
.champ-stat-row:hover { background: rgba(201,162,78,.09); }
.champ-stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(220,200,180,.6);
  letter-spacing: .06em;
  font-size: 11px;
  text-transform: uppercase;
}
.champ-stat-icon { font-size: 13px; line-height: 1; flex-shrink: 0; }
.champ-stat-value {
  font: 700 20px/1 Georgia, serif;
  color: #e8d9c0;
}
.champ-stat-value[style*="--rarity-color"] { color: var(--rarity-color); }
.champ-stat-value.is-damaged { color: #d98f8f; }
.champ-stat-sep { color: rgba(220,200,180,.4); font-size: 14px; margin: 0 4px; }

/* Runde Skill-Medallions */
.champ-medallions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 6px 0;
}
.champ-medallion {
  position: relative;
  width: 64px;
  text-align: center;
  cursor: pointer;
}
.champ-medallion-ring {
  width: 52px; height: 52px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2e1c10, var(--lacquer-c));
  border: 2px solid var(--gold-hi);
  box-shadow: 0 0 0 1px var(--gold-lo), inset 0 0 12px rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: transform .15s, box-shadow .15s;
}
.champ-medallion:hover .champ-medallion-ring {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px var(--gold-hi), 0 4px 16px rgba(201,162,78,.35), inset 0 0 12px rgba(0,0,0,.6);
}
.champ-medallion-name {
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}
/* Tooltip on hover */
.champ-medallion[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,4,6,.96);
  border: 1px solid var(--gold-lo);
  color: #e0d0b8;
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 12px;
  white-space: normal;
  width: 200px;
  text-align: left;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}

/* Schlüsselwörter als Medallions statt Liste */
.champ-keywords { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-keyword-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(201,162,78,.06);
  border: 1px solid rgba(201,162,78,.18);
  border-left: 3px solid var(--gold-hi);
  min-width: 0;
}
.champ-keyword-item strong {
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 3px;
}
.champ-keyword-item p {
  font-size: 11px;
  color: rgba(220,200,180,.6);
  line-height: 1.6;
  margin: 0;
}

/* Regeltext */
.champ-rules-section .champ-rule-p {
  font-size: 13px;
  color: rgba(220,200,180,.65);
  line-height: 1.9;
  margin-bottom: 14px;
}
.champ-rules-section .champ-rule-p:last-child { margin-bottom: 0; }

/* ============================================================
   2. Krieger-Auswahlmenü (warriors-Screen) — Lackpanel-Stil
   ============================================================ */

.warriors-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 60px;
  /* Sakura-Dämmerung full-bleed */
  background: var(--sakura-bg) center / cover no-repeat fixed;
  background-color: #0a0406;
}
/* Globale Abdunklung */
.warriors-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(5,2,3,.3) 0%,
    rgba(5,2,3,.55) 30%,
    rgba(5,2,3,.88) 60%,
    rgba(10,4,6,.97) 100%);
  pointer-events: none;
  z-index: 0;
}

.warriors-page > * { position: relative; z-index: 1; }

/* Page-Header */
.warriors-page .page-head {
  padding: 40px 48px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.warriors-page .page-head h1 {
  font: 700 48px/1 Georgia, serif;
  background: linear-gradient(180deg, var(--gold-text-from) 0%, var(--gold-text-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0 6px;
}
.warriors-page .page-head .eyebrow { color: var(--gold-hi); }
.warriors-page .page-head p { color: rgba(220,200,180,.6); font-size: 13px; margin: 0; }

/* Haupt-Layout: volle Breite */
.warriors-layout {
  display: grid;
  /* Linke Spalte: schwebende Charakterkunst (transparent) | Rechtes Lackpanel */
  grid-template-columns: minmax(0,340px) minmax(0,1fr);
  gap: 0;
  align-items: start;
  margin-top: 32px;
  padding: 0 48px 0 0;
}

/* ---- Linke Vorschau: Charakterkunst frei schwebend ---- */
.warriors-preview {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Kein Box, kein Hintergrund — Kunst schwebt auf dem Sakura-Bg */
  background: transparent;
  border: none;
  overflow: hidden;
}

.warriors-art-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
}
/* Rechter Fade: Kunst läuft in das Lackpanel */
.warriors-art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30%, rgba(10,4,6,.92) 95%),
    linear-gradient(0deg, rgba(10,4,6,.6) 0%, transparent 25%);
  pointer-events: none;
}
.warriors-preview-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
  filter: saturate(.9) brightness(.9);
}

/* Infos ÜBER der Kunst (absolute, unten) */
.warriors-preview-body {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 120px 20px 24px;
  background: linear-gradient(0deg, rgba(10,4,6,.98) 0%, rgba(10,4,6,.96) 60%, rgba(10,4,6,.9) 84%, transparent 100%);
}
.warriors-clan-label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  margin-bottom: 4px;
}
.warriors-name {
  font: 700 28px/1.05 Georgia, serif;
  background: linear-gradient(180deg, var(--gold-text-from), var(--gold-text-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  margin: 0 0 6px;
}
.warriors-stats {
  font-size: 12px;
  color: rgba(201,162,78,.8);
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.warriors-lore { margin-top: 8px; }
.warriors-lore p {
  font-size: 11px;
  color: rgba(220,200,180,.8);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ---- Rechtes Lackpanel: Raster ---- */
.warriors-grid-panel {
  min-width: 0;
  background: linear-gradient(155deg, var(--lacquer-a) 0%, var(--lacquer-b) 60%, var(--lacquer-c) 100%);
  /* Doppelter Goldrand */
  border: 1px solid var(--gold-hi);
  box-shadow: inset 0 0 0 2px var(--gold-lo), 0 0 60px rgba(0,0,0,.5);
  padding: 28px 28px 32px;
  position: relative;
}

/* Goldene Eckdiamanten */
.warriors-grid-panel::before,
.warriors-grid-panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: var(--gold-hi);
  transform: rotate(45deg);
}
.warriors-grid-panel::before { top: -7px; left: -7px; }
.warriors-grid-panel::after  { top: -7px; right: -7px; }

/* Filterleiste */
.warriors-grid-panel .filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,162,78,.15);
}
.warriors-grid-panel .filterbar button {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(201,162,78,.05);
  border: 1px solid rgba(201,162,78,.2);
  color: rgba(220,200,180,.55);
  transition: background .12s, border-color .12s, color .12s;
}
.warriors-grid-panel .filterbar button:hover {
  background: rgba(201,162,78,.1);
  border-color: rgba(201,162,78,.5);
  color: #e8d0a0;
}
.warriors-grid-panel .filterbar button.active {
  background: rgba(201,162,78,.18);
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}

/* Karten-Raster */
.warriors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.warrior-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(10,5,4,.7);
  border: 1px solid rgba(201,162,78,.18);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s, transform .1s;
  cursor: pointer;
  text-align: left;
}
.warrior-thumb:hover {
  border-color: rgba(201,162,78,.7);
  transform: translateY(-2px);
}
.warrior-thumb.is-selected {
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 1px var(--gold-hi), 0 4px 16px rgba(201,162,78,.2);
}
.warrior-thumb.is-selected::after {
  content: '✓';
  position: absolute;
  top: 5px; right: 6px;
  font-size: 11px;
  color: var(--gold-hi);
  background: rgba(0,0,0,.75);
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-hi);
}

.warrior-thumb-art {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0b0608;
}
.warrior-thumb-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,5,4,.85) 0%, transparent 50%);
  pointer-events: none;
}
.warrior-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.warrior-thumb-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px 6px;
  border-top: 1px solid rgba(201,162,78,.12);
  min-height: 30px;
  flex-wrap: wrap;
  background: rgba(10,5,4,.5);
}
.warrior-thumb-crest {
  width: 11px;
  height: 14px;
  opacity: .6;
  flex-shrink: 0;
}
.warrior-thumb-name {
  font: 10px/1.2 Georgia, serif;
  color: #d8c8a8;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.warrior-thumb-rarity {
  font-size: 8px;
  color: var(--rarity-color, var(--gold-hi));
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* "Vollständige Details"-Button */
.warriors-preview-body .primary {
  background: linear-gradient(90deg, rgba(201,162,78,.18) 0%, rgba(122,90,34,.12) 100%);
  border: 1px solid var(--gold-hi);
  color: var(--gold-hi);
  font: 600 11px/1 Georgia, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.warriors-preview-body .primary:hover {
  background: rgba(201,162,78,.28);
}

/* ============================================================
   3. Responsive
   ============================================================ */

@media (max-width: 999px) {
  .champion-panel {
    grid-template-columns: minmax(0,320px) minmax(0,1fr);
    width: 100vw;
  }
  .warriors-layout {
    grid-template-columns: minmax(0,260px) minmax(0,1fr);
    padding-right: 24px;
  }
}

@media (max-width: 799px) {
  .champion-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .champion-right {
    min-height: auto;
    padding: 24px 20px 32px;
    border-left: none;
    border-top: 1px solid var(--gold-hi);
  }
  .champion-right::before,
  .champion-right::after { display: none; }
  .champ-art-wrap {
    position: relative;
    height: 60vw;
    max-height: 360px;
  }
  .champ-identity { position: absolute; }
  .champ-card-wrap { display: none; }

  .warriors-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .warriors-preview {
    position: static;
    height: auto;
  }
  .warriors-art-frame {
    height: 56vw;
    max-height: 260px;
  }
  .warriors-art-frame::after {
    background: linear-gradient(0deg, rgba(10,4,6,.8) 0%, transparent 50%);
  }
  .warriors-preview-body { position: static; background: rgba(10,4,6,.9); padding: 16px 18px 18px; }
  .warriors-grid-panel { margin-top: 16px; }
  .warriors-page { padding-bottom: 40px; }
  .warriors-page .page-head { padding: 24px 16px 0; }
  .warriors-page .page-head h1 { font-size: 32px; }
}

@media (max-width: 599px) {
  .champion-overlay { padding: 0; }
  .champion-close { top: 12px; right: 12px; }
  .warriors-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 7px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .warrior-thumb { transition: none; }
  .champion-overlay { backdrop-filter: none; }
  .champ-medallion:hover .champ-medallion-ring { transform: none; }
}

/* Nachschliff: rechter Block mit Innenabstand, Name nicht unter die Karte */
.champion-panel>*:last-child{padding-left:28px;padding-right:28px}
.champion-overlay .champ-name{max-width:58%;font-size:clamp(28px,3vw,44px)}
@media (min-width:900px){.champ-card-wrap{right:22px;bottom:22px}.champion-overlay .champ-name{max-width:calc(100% - 240px)}}
@media (min-width:900px){.champion-overlay .champ-name{font-size:clamp(24px,2.2vw,34px);line-height:1.1;overflow-wrap:normal;word-break:normal;hyphens:manual}}
