/* ==========================================================================
   BREAD & BROADSWORD — WARRIOR TALENT TREE STYLES
   World of Warcraft Classic Specialization Tree (3-Subtree Grid & Arrow Conduits)
   ========================================================================== */

/* Main Window Container */
.talents-window {
  width: 1240px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--parchment-base, #efe3ca);
  color: var(--parchment-text, #2c1a0e);
  border: 2px solid #845e2a;
}

.talents-main-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.talents-window-body {
  padding: 12px 16px 18px 16px;
  background: #dfcbab url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" opacity="0.03"><rect width="80" height="80" fill="%23000"/></svg>');
}

/* ==========================================================================
   WOW CLASSIC SPECIALIZATION TREE
   ========================================================================== */
.wow-talents-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Classic WoW Top Frame Header */
.wow-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #26160c 0%, #140b06 100%);
  border: 2px solid #967038;
  border-radius: 5px;
  padding: 10px 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 220, 150, 0.2);
}

.wow-char-plate {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wow-char-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e0b04a;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.wow-char-text h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffd984;
  text-shadow: 0 1px 2px #000;
}

.wow-char-text span {
  font-size: 13px;
  color: #d6c5ad;
}

.wow-char-text strong {
  color: #fff;
}

.wow-unspent-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: radial-gradient(ellipse at center, #38200c 0%, #180c04 100%);
  border: 1.5px solid #d4a753;
  border-radius: 4px;
  padding: 6px 18px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 10px rgba(212, 167, 83, 0.25);
}

.wow-pts-num {
  font-size: 24px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 2px 2px #000;
}

.wow-pts-txt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #e6d2b5;
}

.btn-wow-respec {
  background: linear-gradient(180deg, #6b1911 0%, #3d0b06 100%);
  border: 1.5px solid #b8862d;
  color: #ffdca1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-shadow: 0 1px 2px #000;
}

.btn-wow-respec:disabled,
.btn-wow-respec.disabled {
  background: #2b231d;
  border-color: #5c4e43;
  color: #8c7f73;
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Main Layout: 3 Side-by-Side WoW Trees + Right WoW Tooltip Dock */
.wow-main-layout {
  display: grid;
  grid-template-columns: 1fr 335px;
  gap: 12px;
  align-items: stretch;
}

.wow-three-trees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wow-tree-panel {
  position: relative;
  border: 2px solid #7d5b2b;
  border-radius: 5px;
  overflow: hidden;
  background: #120b07;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.wow-tree-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: sepia(0.25) contrast(1.15);
  pointer-events: none;
}

.wow-tree-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, rgba(35, 20, 11, 0.96) 0%, rgba(18, 10, 5, 0.96) 100%);
  border-bottom: 1.5px solid #8a6530;
  padding: 8px 12px;
}

.wow-tree-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid #d4a753;
  object-fit: cover;
}

.wow-tree-title {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  color: #ffd88a;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px #000;
}

.wow-tree-pts {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(212, 167, 83, 0.22);
  border: 1px solid #967038;
  padding: 2px 7px;
  border-radius: 3px;
}

/* 3x4 Talent Grid with Exact Coordinate Alignment */
.wow-tree-grid {
  position: relative;
  z-index: 2;
  height: 420px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 0;
}

.wow-arrows-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wow-grid-cell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wow-node-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  width: 92px;
}

.wow-node-wrapper:hover .wow-node-slot {
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45), 0 3px 8px rgba(0, 0, 0, 0.85);
  filter: brightness(1.15);
}

.wow-node-slot {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 5px;
  background: #0d0805;
  padding: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.85);
  transition: all 0.15s ease;
}

.wow-node-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* Metallic Bevel Overlay */
.wow-node-bevel {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.7);
}

/* Locked State (Greyed Out) */
.wow-node-slot.locked {
  border: 2px solid #574c41;
}

.wow-node-slot.locked .wow-node-img {
  filter: grayscale(0.92) brightness(0.55);
}

/* Available State (Classic WoW Green Glow!) */
.wow-node-slot.available {
  border: 2px solid #28d918;
  box-shadow: 0 0 10px rgba(40, 217, 24, 0.45), 0 3px 8px rgba(0, 0, 0, 0.85);
}

/* Maxed State (Classic WoW Gold Glow!) */
.wow-node-slot.maxed {
  border: 2px solid #ffd100;
  box-shadow: 0 0 12px rgba(255, 209, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.85);
}

/* Keystone Ornate Frame */
.wow-node-slot.keystone-frame {
  width: 58px;
  height: 58px;
  border-width: 2.5px;
}

/* Selected Highlight Ring */
.wow-node-wrapper.selected .wow-node-slot {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Classic WoW Corner Rank Pill (Bottom-Right) */
.wow-rank-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #0a0a0a;
  border: 1px solid #666;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: var(--fs-xs, 11.5px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

.wow-rank-badge.locked {
  color: #9e9e9e;
  border-color: #555;
}

.wow-rank-badge.available {
  color: #1eff00;
  border-color: #1eff00;
}

.wow-rank-badge.maxed {
  color: #ffd100;
  border-color: #ffd100;
}

.wow-node-caption {
  margin-top: 7px;
  font-size: var(--fs-sm, 12px);
  font-weight: 700;
  color: #f0dfC5;
  text-align: center;
  line-height: 1.18;
  text-shadow: 0 1px 3px #000, 0 0 4px #000;
  max-width: 94px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Classic WoW Dark Obsidian Tooltip Dossier */
.wow-tooltip-dock {
  display: flex;
  flex-direction: column;
}

.wow-tooltip-box {
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 17, 26, 0.96) 0%, rgba(9, 11, 17, 0.98) 100%);
  border: 2px solid #a38c64;
  border-radius: 5px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(255, 215, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wow-tt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(163, 140, 100, 0.35);
  padding-bottom: 12px;
}

.wow-tt-icon-frame {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  border: 2px solid #888;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px #000;
}

.wow-tt-icon-frame.avail {
  border-color: #1eff00;
}

.wow-tt-icon-frame.maxed {
  border-color: #ffd100;
}

.wow-tt-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wow-tt-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wow-tt-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.wow-tt-rank {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffd100;
}

.wow-tt-cat {
  font-size: 12px;
  color: #b5b5b5;
}

.wow-tt-req-red {
  font-size: 12.5px;
  font-weight: 700;
  color: #ff4d4d;
  background: rgba(255, 40, 40, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.4);
  padding: 6px 10px;
  border-radius: 3px;
  line-height: 1.35;
}

.wow-tt-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wow-tt-section.next {
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  padding-top: 10px;
}

.wow-tt-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.wow-tt-gold-text {
  font-size: 13.5px;
  color: #ffd100;
  line-height: 1.45;
}

.wow-tt-maxed-tag {
  font-size: 13.5px;
  font-weight: 800;
  color: #1eff00;
  padding: 4px 0;
}

.wow-tt-lore {
  margin-top: auto;
  font-size: 12.5px;
  font-style: italic;
  color: #d4c098;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.btn-wow-learn {
  background: linear-gradient(180deg, #1f7a15 0%, #0f4209 100%);
  border: 2px solid #28d918;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 5px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  letter-spacing: 0.4px;
}

.btn-wow-learn:hover:not(.disabled) {
  background: linear-gradient(180deg, #248a18 0%, #14540c 100%);
  box-shadow: 0 0 10px rgba(40, 217, 24, 0.5);
}

.btn-wow-learn.disabled {
  background: #23262e;
  border-color: #4f5461;
  color: #8b909c;
  cursor: not-allowed;
}
