/* =====================================================
   GOLDEN PHOENIX – MEMBERS (FINAL STABLE)
===================================================== */

/* GRID */
.gp-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .gp-members-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gp-members-grid { grid-template-columns: 1fr; }
}

/* CARD */
.gp-member-card {
  position: relative;
  border-radius: 24px;
  background: rgba(18,18,22,0.9);
  overflow: visible;
  transition: transform .3s ease;
  --class-color: #ff0000;
}

.gp-member-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* IMAGE FRAME CONTAINER */
.gp-member-media {
  position: relative;
  padding: 10px;
}

/* IMAGE HOLDER */
.gp-member-images {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

/* FRAME */
.gp-member-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  border: 3px solid rgba(255,255,255,0.15);
  transition: border .25s ease, box-shadow .25s ease;
}

/* HOVER FRAME */
.gp-member-card:hover .gp-member-media::before {
  border: 5px solid var(--class-color);
  box-shadow:
    0 0 0 2px var(--class-color),
    0 0 28px 12px var(--class-color),
    0 0 80px 36px rgba(0,0,0,0.85);
}

/* IMAGES */
.gp-member-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gp-member-img-2 {
  transform: translateX(100%);
}

.gp-member-card:hover .gp-member-img-1 {
  transform: translateX(-100%);
}

.gp-member-card:hover .gp-member-img-2 {
  transform: translateX(0);
}

/* CLASS ICON */
.gp-class-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  z-index: 5;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 10px var(--class-color));
}

/* TEXT OVERLAY */
.gp-member-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.65);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

/* TEXT */
.gp-member-name {
  margin: 0 0 4px;
  color: #e6c15a;
  font-weight: 800;
}

.gp-member-meta {
  font-size: 12px;
  opacity: .9;
}

.gp-member-bio {
  font-size: 13px;
  line-height: 1.25;
}

/* CLASS COLORS + ICONS */
.gp-member-card[data-class="warrior"] { --class-color:#c79c6e; }
.gp-member-card[data-class="paladin"] { --class-color:#f58cba; }
.gp-member-card[data-class="rogue"]   { --class-color:#eab308; }
.gp-member-card[data-class="mage"]    { --class-color:#38bdf8; }
.gp-member-card[data-class="hunter"]  { --class-color:#22c55e; }
.gp-member-card[data-class="warlock"] { --class-color:#a855f7; }
.gp-member-card[data-class="shaman"]  { --class-color:#3b82f6; }
.gp-member-card[data-class="druid"]   { --class-color:#fb923c; }
.gp-member-card[data-class="priest"]  { --class-color:#e5e7eb; }

.gp-member-card[data-class="warrior"] .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/warrior.png"); }
.gp-member-card[data-class="paladin"] .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/paladin.png"); }
.gp-member-card[data-class="rogue"]   .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/rogue.png"); }
.gp-member-card[data-class="mage"]    .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/mage.png"); }
.gp-member-card[data-class="hunter"]  .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/hunter.png"); }
.gp-member-card[data-class="warlock"] .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/warlock.png"); }
.gp-member-card[data-class="shaman"]  .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/shaman.png"); }
.gp-member-card[data-class="druid"]   .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/druid.png"); }
.gp-member-card[data-class="priest"]  .gp-class-icon { background-image:url("https://4gamerz.de/wp-content/uploads/icons/priest.png"); }

/* =====================================================
   GP MEMBER MODAL (Popup) – scoped
===================================================== */
.gp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.gp-modal.open {
  display: block;
}

.gp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.gp-modal-panel {
  position: relative;
  width: min(720px, calc(100% - 26px));
  margin: 7vh auto;
  background: rgba(18,18,18,.88);
  border: 1px solid rgba(255, 190, 90, .55);
  border-radius: 18px;
  box-shadow: 0 0 60px rgba(255, 150, 50, .20);
  overflow: hidden;
}

.gp-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #ffb84d;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 10px;
}

.gp-modal-close:hover {
  text-shadow:
    0 0 6px rgba(255,184,77,.8),
    0 0 12px rgba(255,140,0,.6);
}

.gp-modal-body {
  padding: 26px 22px 22px;
  color: rgba(255, 220, 170, .92);
}

.gp-modal-loading {
  padding: 18px 0;
  opacity: .75;
}

.gp-modal-error {
  padding: 10px 0;
  color: rgba(255, 190, 120, .95);
}

.gp-modal-header {
  padding: 22px 22px 0;
}

.gp-modal-header.class-shaman { color:#0070dd; }
.gp-modal-header.class-warrior { color:#c79c6e; }
.gp-modal-header.class-mage { color:#3fc7eb; }
.gp-modal-header.class-priest { color:#ffffff; }
.gp-modal-header.class-rogue { color:#fff569; }
.gp-modal-header.class-druid { color:#ff7d0a; }
.gp-modal-header.class-hunter { color:#aad372; }
.gp-modal-header.class-paladin { color:#f58cba; }
.gp-modal-header.class-warlock { color:#8788ee; }

/* GEAR GRID */
.gp-gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* SLOT */
/* =====================================================
   GP GEAR SLOT – WOWHEAD NATIVE SIZE
   (passt zu 54x68 Icons)
===================================================== */

.gp-gear-slot {
  width: 68px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,190,90,.35);
  border-radius: 8px;
  background: rgba(0,0,0,.6);

  overflow: hidden;
}


.gp-gear-slot.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .25;
  font-size: 10px;
  text-align: center;
}

.gp-gear-slot.filled:hover {
  border-color: #ffb84d;
  box-shadow:
    0 0 0 1px rgba(255,184,77,.6),
    0 0 18px rgba(255,140,0,.45);
}

/* =====================================================
   WOWHEAD ICONS: LARGE + FILL SLOT (NO PIXEL SHIT)
===================================================== */

/* Link füllt Slot */
.gp-gear-slot > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;

  /* falls Wowhead das BG direkt auf <a> setzt */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

/* falls Wowhead <ins> nutzt */
.gp-gear-slot > a > ins {
  display: block !important;
  width: 100% !important;
  height: 100% !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}
/* =====================================================
   FINAL GP GEAR ICON ALIGN FIX
   – zentriert Wowhead Icons pixelgenau –
===================================================== */

/* Slot ist Referenz */
.gp-gear-slot {
  position: relative;
}

/* Wowhead-Link füllt den Slot exakt */
.gp-gear-slot > a {
  position: absolute !important;
  inset: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 0 !important;
  font-size: 0 !important;
}

/* Wowhead Icon selbst */
.gp-gear-slot > a img,
.gp-gear-slot > a ins {
  display: block !important;
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  background-size: cover !important;
  background-position: center !important;
}
/* =====================================================
   WOWHEAD ICON FINAL ALIGNMENT FIX (PIXEL-PERFECT)
===================================================== */

/* Slot bleibt Referenz */
.gp-gear-slot {
  position: relative;
  overflow: hidden;
}

/* Wowhead-Link füllt Slot */
.gp-gear-slot a.iconlarge {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* DAS ENTSCHEIDENDE: <ins> korrekt zentrieren */
.gp-gear-slot a.iconlarge ins {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: 56px !important;
  height: 56px !important;

  transform: translate(-50%, -50%) !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  border: none !important;
  box-shadow: none !important;
}
/* =====================================================
   WOWHEAD ITEM QUALITY HOVER (FINAL)
===================================================== */

.gp-gear-slot.filled {
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Poor (gray) */
.gp-gear-slot a.q0:hover {
  box-shadow: 0 0 0 2px #9d9d9d, 0 0 14px rgba(157,157,157,.6);
}

/* Common (white) */
.gp-gear-slot a.q1:hover {
  box-shadow: 0 0 0 2px #ffffff, 0 0 16px rgba(255,255,255,.6);
}

/* Uncommon (green) */
.gp-gear-slot a.q2:hover {
  box-shadow: 0 0 0 2px #1eff00, 0 0 18px rgba(30,255,0,.7);
}

/* Rare (blue) */
.gp-gear-slot a.q3:hover {
  box-shadow: 0 0 0 2px #0070dd, 0 0 20px rgba(0,112,221,.75);
}

/* Epic (purple) */
.gp-gear-slot a.q4:hover {
  box-shadow: 0 0 0 2px #a335ee, 0 0 22px rgba(163,53,238,.8);
}

/* Legendary (orange) */
.gp-gear-slot a.q5:hover {
  box-shadow: 0 0 0 2px #ff8000, 0 0 26px rgba(255,128,0,.85);
}
/* =====================================================
   WOWHEAD ITEM QUALITY – 1px INSET (PERMANENT + HOVER)
===================================================== */

/* Basis: neutraler Slot */
.gp-gear-slot.filled {
  position: relative;
}

/* Wowhead-Link füllt Slot */
.gp-gear-slot a {
  position: absolute;
  inset: 0;
  display: block;
}

/* ---------- PERMANENTE 1px QUALITÄTSFARBE (INNEN) ---------- */

/* Poor (gray) */
.gp-gear-slot a.q0 {
  box-shadow: inset 0 0 0 1px #9d9d9d;
}

/* Common (white) */
.gp-gear-slot a.q1 {
  box-shadow: inset 0 0 0 1px #ffffff;
}

/* Uncommon (green) */
.gp-gear-slot a.q2 {
  box-shadow: inset 0 0 0 1px #1eff00;
}

/* Rare (blue) */
.gp-gear-slot a.q3 {
  box-shadow: inset 0 0 0 1px #0070dd;
}

/* Epic (purple) */
.gp-gear-slot a.q4 {
  box-shadow: inset 0 0 0 1px #a335ee;
}

/* Legendary (orange / gold) */
.gp-gear-slot a.q5 {
  box-shadow: inset 0 0 0 1px #ff8000;
}

/* ---------- HOVER: STÄRKER + GLOW ---------- */

.gp-gear-slot a.q0:hover {
  box-shadow:
    inset 0 0 0 1px #9d9d9d,
    0 0 14px rgba(157,157,157,.6);
}

.gp-gear-slot a.q1:hover {
  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 0 16px rgba(255,255,255,.6);
}

.gp-gear-slot a.q2:hover {
  box-shadow:
    inset 0 0 0 1px #1eff00,
    0 0 18px rgba(30,255,0,.7);
}

.gp-gear-slot a.q3:hover {
  box-shadow:
    inset 0 0 0 1px #0070dd,
    0 0 20px rgba(0,112,221,.75);
}

.gp-gear-slot a.q4:hover {
  box-shadow:
    inset 0 0 0 1px #a335ee,
    0 0 22px rgba(163,53,238,.8);
}

.gp-gear-slot a.q5:hover {
  box-shadow:
    inset 0 0 0 1px #ff8000,
    0 0 26px rgba(255,128,0,.9);
}
/* =====================================================
   WOWHEAD ITEM QUALITY – STRONG INSET + GLOW (FINAL)
===================================================== */

.gp-gear-slot.filled {
  position: relative;
}

/* Wowhead Link füllt Slot */
.gp-gear-slot a {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 6px;
}

/* ---------- BASIS: DEUTLICHER 2px INSET ---------- */

.gp-gear-slot a.q0 {
  box-shadow:
    inset 0 0 0 2px #9d9d9d;
}

.gp-gear-slot a.q1 {
  box-shadow:
    inset 0 0 0 2px #ffffff;
}

.gp-gear-slot a.q2 {
  box-shadow:
    inset 0 0 0 2px #1eff00,
    inset 0 0 10px rgba(30,255,0,.35);
}

.gp-gear-slot a.q3 {
  box-shadow:
    inset 0 0 0 2px #0070dd,
    inset 0 0 12px rgba(0,112,221,.45);
}

.gp-gear-slot a.q4 {
  box-shadow:
    inset 0 0 0 2px #a335ee,
    inset 0 0 14px rgba(163,53,238,.55);
}

.gp-gear-slot a.q5 {
  box-shadow:
    inset 0 0 0 2px #ff8000,
    inset 0 0 16px rgba(255,128,0,.6);
}

/* ---------- HOVER: RICHTIG PRÄSENT ---------- */

.gp-gear-slot a.q0:hover {
  box-shadow:
    inset 0 0 0 2px #9d9d9d,
    0 0 18px rgba(157,157,157,.6);
}

.gp-gear-slot a.q1:hover {
  box-shadow:
    inset 0 0 0 2px #ffffff,
    0 0 20px rgba(255,255,255,.7);
}

.gp-gear-slot a.q2:hover {
  box-shadow:
    inset 0 0 0 2px #1eff00,
    0 0 22px rgba(30,255,0,.85);
}

.gp-gear-slot a.q3:hover {
  box-shadow:
    inset 0 0 0 2px #0070dd,
    0 0 26px rgba(0,112,221,.9);
}

.gp-gear-slot a.q4:hover {
  box-shadow:
    inset 0 0 0 2px #a335ee,
    0 0 30px rgba(163,53,238,.95);
}

.gp-gear-slot a.q5:hover {
  box-shadow:
    inset 0 0 0 3px #ffb000,
    0 0 38px rgba(255,160,0,1);
}
/* =====================================================
   WOWHEAD QUALITY FIX – COLOR ALWAYS ON TOP
===================================================== */

/* Slot sauber trennen */
.gp-gear-slot {
  position: relative;
  overflow: visible;
}

/* Wowhead-Link */
.gp-gear-slot a {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

/* White Wowhead frame -> nach HINTEN */
.gp-gear-slot a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  z-index: 1;
  pointer-events: none;
}

/* Quality Frame -> IMMER OBEN */
.gp-gear-slot a.q0::after,
.gp-gear-slot a.q1::after,
.gp-gear-slot a.q2::after,
.gp-gear-slot a.q3::after,
.gp-gear-slot a.q4::after,
.gp-gear-slot a.q5::after {
  content: "";
  position: absolute;
  inset: 1px; /* 1px nach innen */
  border-radius: 5px;
  z-index: 2;
  pointer-events: none;
}

/* Quality Farben */
.gp-gear-slot a.q0::after { box-shadow: inset 0 0 0 2px #9d9d9d; }
.gp-gear-slot a.q1::after { box-shadow: inset 0 0 0 2px #ffffff; }
.gp-gear-slot a.q2::after { box-shadow: inset 0 0 0 2px #1eff00; }
.gp-gear-slot a.q3::after { box-shadow: inset 0 0 0 2px #0070dd; }
.gp-gear-slot a.q4::after { box-shadow: inset 0 0 0 2px #a335ee; }
.gp-gear-slot a.q5::after { box-shadow: inset 0 0 0 3px #ffb000; }

/* Hover = zusätzlicher Glow */
.gp-gear-slot a:hover::after {
  box-shadow:
    inset 0 0 0 2px currentColor,
    0 0 20px currentColor;
}
/* =====================================================
   WOWHEAD FINAL ICON CLEANUP (NO DOUBLE FRAME)
===================================================== */

/* Slot als Referenz */
.gp-gear-slot {
  position: relative;
  overflow: hidden;
}

/* Wowhead Link füllt Slot */
.gp-gear-slot a.iconlarge {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 8px;
}

/* ❌ WHITE WOWHEAD FRAME KOMPLETT ENTFERNEN */
.gp-gear-slot a.iconlarge::before {
  display: none !important;
}

/* INS = ICON */
.gp-gear-slot a.iconlarge ins {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  border-radius: 6px;
}

/* =====================================================
   QUALITY FRAME – EINZIGER SICHTBARER RAHMEN
===================================================== */

.gp-gear-slot a.q0::after,
.gp-gear-slot a.q1::after,
.gp-gear-slot a.q2::after,
.gp-gear-slot a.q3::after,
.gp-gear-slot a.q4::after,
.gp-gear-slot a.q5::after {
  content: "";
  position: absolute;
  inset: 2px;              /* 👈 perfekt nach innen */
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
}

/* Farben */
.gp-gear-slot a.q0::after { box-shadow: inset 0 0 0 2px #9d9d9d; }
.gp-gear-slot a.q1::after { box-shadow: inset 0 0 0 2px #ffffff; }
.gp-gear-slot a.q2::after { box-shadow: inset 0 0 0 2px #1eff00; }
.gp-gear-slot a.q3::after { box-shadow: inset 0 0 0 2px #0070dd; }
.gp-gear-slot a.q4::after { box-shadow: inset 0 0 0 2px #a335ee; }
.gp-gear-slot a.q5::after { box-shadow: inset 0 0 0 3px #ffb000; }

/* Hover = dezenter Glow */
.gp-gear-slot a:hover::after {
  box-shadow:
    inset 0 0 0 2px currentColor,
    0 0 16px currentColor;
}
