/* ==========================================================================
   AURA XI — Path of Exile Interactive Constellation Passive Tree Styles
   ========================================================================== */

.poe-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.poe-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 190px;
}

.poe-stage {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.32);
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 34, 68, 0.95) 0%, rgba(5, 9, 19, 0.99) 75%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), var(--shadow-card);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.poe-stage.dragging {
  cursor: grabbing;
}

.poe-stage.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 95;
  height: 100dvh;
  border-radius: 0;
  border: none;
}

.poe-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Constellation Sector Rings & Labels */
.poe-edge {
  stroke: rgba(100, 116, 139, 0.34);
  stroke-width: 2.2;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.poe-edge.active {
  stroke: #fbbf24;
  stroke-width: 3.6;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.65));
}
.poe-edge.available {
  stroke: rgba(56, 189, 248, 0.6);
  stroke-width: 2.8;
}

.poe-node {
  cursor: pointer;
}
.poe-node circle,
.poe-node polygon,
.poe-node rect {
  transition: transform 0.14s ease, filter 0.14s ease;
}
.poe-node:hover {
  filter: brightness(1.28);
}

.poe-node.allocated .node-body {
  stroke: #fde047;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.75));
}
.poe-node.available .node-body {
  stroke: #38bdf8;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}
.poe-node.selected .node-ring {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-dasharray: 4 3;
}
.poe-node.matched .node-ring {
  stroke: #34d399;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 10px #34d399);
}

/* Floating Zoom Controls inside PoE Stage */
.poe-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poe-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

/* Floating Node Inspector Card */
.poe-inspector {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  max-width: 470px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(9, 15, 29, 0.96);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
  animation: slideUp 0.16s ease-out;
}
.poe-inspector.tier-keystone {
  border-color: #f43f5e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(244, 63, 94, 0.3);
}
.poe-inspector.tier-notable {
  border-color: #fbbf24;
}
.poe-inspector.tier-socket {
  border-color: #a855f7;
}

@media (max-width: 640px) {
  .poe-stage {
    height: 440px;
  }
}

/* RPG Rarity Borders & Enchant Auras (+7 / +9 / +10 Silkroad/Diablo) */
.rar-common { border-color: rgba(148, 163, 184, 0.32) !important; }
.rar-magic { border-color: rgba(56, 189, 248, 0.6) !important; background: linear-gradient(160deg, rgba(12, 34, 62, 0.92), rgba(11, 18, 34, 0.96)) !important; }
.rar-rare { border-color: rgba(250, 204, 21, 0.65) !important; background: linear-gradient(160deg, rgba(50, 40, 12, 0.92), rgba(11, 18, 34, 0.96)) !important; }
.rar-epic { border-color: rgba(168, 85, 247, 0.72) !important; background: linear-gradient(160deg, rgba(44, 18, 68, 0.92), rgba(11, 18, 34, 0.96)) !important; }
.rar-legendary { border-color: rgba(249, 115, 22, 0.85) !important; background: linear-gradient(160deg, rgba(64, 26, 10, 0.94), rgba(12, 18, 34, 0.96)) !important; box-shadow: 0 8px 26px rgba(249, 115, 22, 0.24); }
.rar-mythic { border-color: #34d399 !important; background: linear-gradient(160deg, rgba(8, 56, 42, 0.95), rgba(38, 28, 8, 0.94)) !important; box-shadow: 0 8px 28px rgba(16, 185, 129, 0.35); }

.txt-common { color: #cbd5e1; }
.txt-magic { color: #38bdf8; }
.txt-rare { color: #fde047; }
.txt-epic { color: #c084fc; }
.txt-legendary { color: #fb923c; }
.txt-mythic { color: #34d399; }

/* Player Card Enchant Glow (+7 Cyan, +9 Gold Fire, +10 Mythic) */
.enchant-glow-7 {
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.55), 0 14px 36px rgba(0, 0, 0, 0.55) !important;
}
.enchant-glow-9 {
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.68), 0 14px 40px rgba(0, 0, 0, 0.55) !important;
}
.enchant-glow-10 {
  animation: pulseGlow 1.6s infinite;
  box-shadow: 0 0 42px rgba(52, 211, 153, 0.75), 0 0 20px rgba(251, 191, 36, 0.7) !important;
}

/* Cabal Combo Badge & BM1/BM2/BM3 Bar */
.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #d97706, #ef4444);
  color: #fff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
  border: 1px solid #fde047;
}

.timing-track, .duel-opt-btn, .btn, .penalty-zone-btn {
  touch-action: manipulation;
}
