/* ═══════════════════════════════════════════════════════════════════════════════
   OLYMPUS RISING - SKILL TREE UI STYLES
   Multi-path skill tree visualization
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-tree-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────────────────────── */

.st-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.3));
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.st-title h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #d4af37;
}

.st-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.st-points {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(155, 89, 182, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(155, 89, 182, 0.4);
}

.st-points .points-icon {
  font-size: 1.5rem;
}

.st-points .points-value {
  font-size: 1.75rem;
  font-weight: bold;
  color: #9b59b6;
}

.st-points .points-label {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   BUILD SUMMARY
   ───────────────────────────────────────────────────────────────────────────────── */

.st-build-summary {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-build {
  text-align: center;
  opacity: 0.6;
  padding: 1rem;
}

.build-distribution {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.path-bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.path-bar .path-icon {
  font-size: 1.25rem;
}

.path-bar .path-name {
  font-weight: 500;
  min-width: 100px;
}

.path-bar .bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.path-bar .bar-fill {
  height: 100%;
  background: var(--path-color, #888);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.path-bar .path-pct {
  font-weight: bold;
  color: var(--path-color, #888);
  min-width: 45px;
  text-align: right;
}

.path-bar .path-pts {
  font-size: 0.8rem;
  opacity: 0.6;
  min-width: 60px;
}

.build-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.build-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.build-stat .stat-icon {
  font-size: 1.25rem;
}

.build-stat .stat-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #d4af37;
}

.build-stat .stat-label {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   PATH TABS
   ───────────────────────────────────────────────────────────────────────────────── */

.st-path-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.path-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.path-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.path-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--path-color, #888);
  box-shadow: 0 0 10px rgba(var(--path-color, 136, 136, 136), 0.3);
}

.path-tab .tab-icon {
  font-size: 1.25rem;
}

.path-tab .tab-name {
  font-weight: 500;
}

.path-tab .tab-points {
  padding: 0.15rem 0.4rem;
  background: var(--path-color, #888);
  color: #000;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.path-tab .tab-progress {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   NODE CONTAINER
   ───────────────────────────────────────────────────────────────────────────────── */

.st-nodes-container {
  flex: 1;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 400px;
}

.path-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(var(--path-color), 0.1), transparent);
  border-radius: 8px;
  border-left: 4px solid var(--path-color, #888);
}

.path-icon-large {
  font-size: 2.5rem;
}

.path-header .path-info h3 {
  margin: 0;
  color: var(--path-color, #fff);
}

.path-header .path-archetype {
  font-size: 0.85rem;
  opacity: 0.7;
}

.path-header .path-desc {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   NODE TIERS
   ───────────────────────────────────────────────────────────────────────────────── */

.node-tiers {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.node-tier {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.tier-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #d4af37;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-label .tier-req {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.6;
  text-transform: none;
}

.tier-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   SKILL NODES
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-width: 80px;
}

.skill-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Node Sizes */
.skill-node.small {
  min-width: 70px;
  padding: 0.5rem;
}

.skill-node.medium {
  min-width: 90px;
  padding: 0.75rem;
}

.skill-node.large {
  min-width: 110px;
  padding: 1rem;
}

.skill-node.keystone {
  min-width: 130px;
  padding: 1rem;
  border-width: 3px;
}

/* Node States */
.skill-node.locked {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.1);
}

.skill-node.available {
  border-color: #27ae60;
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
  animation: pulse-available 2s infinite;
}

.skill-node.unlocked {
  border-color: var(--node-color, #d4af37);
  background: rgba(212, 175, 55, 0.1);
}

.skill-node.maxed {
  border-color: var(--node-color, #d4af37);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

@keyframes pulse-available {
  0%, 100% { box-shadow: 0 0 10px rgba(39, 174, 96, 0.3); }
  50% { box-shadow: 0 0 20px rgba(39, 174, 96, 0.5); }
}

/* Node Content */
.node-icon {
  font-size: 1.5rem;
}

.skill-node.large .node-icon,
.skill-node.keystone .node-icon {
  font-size: 2rem;
}

.node-name {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-node.large .node-name,
.skill-node.keystone .node-name {
  font-size: 0.85rem;
  max-width: 100px;
}

.node-ranks {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.node-check {
  color: #27ae60;
  font-weight: bold;
}

.node-cost {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9b59b6;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Node Types */
.skill-node.stat .node-icon { opacity: 0.8; }
.skill-node.passive { border-style: dashed; }
.skill-node.ability { border-radius: 12px; }
.skill-node.keystone {
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(var(--node-color), 0.2), rgba(0, 0, 0, 0.5));
}

/* ─────────────────────────────────────────────────────────────────────────────────
   DETAIL PANEL
   ───────────────────────────────────────────────────────────────────────────────── */

.st-detail-panel {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(20, 20, 30, 0.98);
  border: 2px solid var(--path-color, #d4af37);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(var(--path-color), 0.2), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.detail-title {
  flex: 1;
}

.detail-title h3 {
  margin: 0;
  font-size: 1.1rem;
}

.detail-type {
  font-size: 0.8rem;
  opacity: 0.7;
}

.detail-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.detail-description {
  padding: 1rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-stats,
.detail-ability,
.detail-effect,
.detail-requires,
.detail-path-req {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-stats h4,
.detail-ability h4,
.detail-effect h4,
.detail-requires h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-bonus {
  padding: 0.25rem 0.5rem;
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border-radius: 4px;
  font-size: 0.85rem;
}

.ability-info {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.ability-info span {
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.detail-effect p {
  margin: 0;
  font-size: 0.9rem;
}

.detail-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.detail-progress .progress-label {
  font-size: 0.8rem;
  opacity: 0.7;
}

.detail-progress .progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.detail-progress .progress-fill {
  height: 100%;
  background: #d4af37;
  border-radius: 3px;
}

.detail-progress .progress-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.prereq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prereq {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.prereq.met {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.prereq.unmet {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.detail-path-req {
  font-size: 0.85rem;
  background: rgba(155, 89, 182, 0.1);
}

.path-req-label {
  color: #9b59b6;
}

.path-req-current {
  opacity: 0.7;
  margin-left: 0.5rem;
}

.detail-actions {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.detail-actions .btn {
  min-width: 150px;
}

.maxed-badge {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #000;
  border-radius: 4px;
  font-weight: bold;
}

.locked-reason {
  font-size: 0.85rem;
  color: #e74c3c;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   ACTIONS
   ───────────────────────────────────────────────────────────────────────────────── */

.st-actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .st-detail-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: auto;
    transform: none;
    width: 100%;
    max-height: 60vh;
    border-radius: 12px 12px 0 0;
  }
  
  .build-distribution {
    flex-direction: column;
  }
  
  .path-bar {
    grid-template-columns: auto auto 1fr auto;
  }
  
  .path-bar .path-pts {
    display: none;
  }
}

@media (max-width: 600px) {
  .st-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .st-path-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .path-tab .tab-name {
    display: none;
  }
  
  .path-tab .tab-progress {
    display: none;
  }
  
  .build-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .skill-node {
    min-width: 60px;
    padding: 0.5rem;
  }
  
  .skill-node.large,
  .skill-node.keystone {
    min-width: 80px;
  }
  
  .node-name {
    font-size: 0.65rem;
    max-width: 60px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   SPRINT 3 ENHANCEMENTS - Skill Tree & Character Progression
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────────
   NODE UNLOCK ANIMATION
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-node.just-unlocked {
  animation: node-unlock 0.6s ease forwards;
}

@keyframes node-unlock {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
  30% {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
  }
  50% {
    transform: scale(1.1);
  }
  70% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
}

/* Unlock particles effect */
.skill-node.just-unlocked::before {
  content: "✨";
  position: absolute;
  font-size: 1.5rem;
  animation: particles 0.8s ease-out forwards;
  pointer-events: none;
}

@keyframes particles {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(1.5); }
}

/* ─────────────────────────────────────────────────────────────────────────────────
   CONNECTING LINES BETWEEN NODES
   ───────────────────────────────────────────────────────────────────────────────── */

.tier-nodes {
  position: relative;
}

.skill-node::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: none;
}

.skill-node.unlocked::after,
.skill-node.maxed::after {
  background: var(--node-color, #d4af37);
  display: block;
}

/* Node selection indicator */
.skill-node.selected {
  border-color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────────────────────────
   IMPROVED TOOLTIPS FOR NODES
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-node-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 10px 15px;
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--node-color, #888);
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.skill-node:hover .skill-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.tooltip-name {
  font-weight: bold;
  color: var(--node-color, #fff);
  margin-bottom: 5px;
}

.tooltip-type {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
}

.tooltip-desc {
  font-size: 0.85rem;
  color: #ccc;
  max-width: 200px;
  white-space: normal;
}

.tooltip-cost {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #9b59b6;
}

.tooltip-status {
  margin-top: 5px;
  font-size: 0.75rem;
}

.tooltip-status.locked { color: #e74c3c; }
.tooltip-status.available { color: #27ae60; }
.tooltip-status.unlocked { color: #d4af37; }
.tooltip-status.maxed { color: #3498db; }

/* ─────────────────────────────────────────────────────────────────────────────────
   KEYSTONES SPECIAL STYLING
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-node.keystone {
  position: relative;
  overflow: hidden;
}

.skill-node.keystone.available::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  animation: keystone-shine 2s linear infinite;
}

@keyframes keystone-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

.skill-node.keystone.maxed {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(155, 89, 182, 0.2));
  box-shadow: 
    0 0 20px rgba(212, 175, 55, 0.4),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────────
   ABILITY NODE SPECIAL STYLING
   ───────────────────────────────────────────────────────────────────────────────── */

.skill-node.ability {
  border-radius: 50%;
  aspect-ratio: 1;
  justify-content: center;
}

.skill-node.ability .node-icon {
  font-size: 1.8rem;
}

.skill-node.ability .node-name {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.skill-node.ability.available {
  animation: ability-ready 1.5s ease infinite;
}

@keyframes ability-ready {
  0%, 100% { box-shadow: 0 0 15px rgba(39, 174, 96, 0.4); }
  50% { box-shadow: 0 0 25px rgba(39, 174, 96, 0.7), 0 0 40px rgba(39, 174, 96, 0.3); }
}

/* ─────────────────────────────────────────────────────────────────────────────────
   STAT ALLOCATION ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────────── */

.attribute-row {
  position: relative;
  transition: all 0.3s ease;
}

.attribute-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.attr-controls .attr-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.attr-btn.plus {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.attr-btn.plus:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

.attr-btn.minus {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
}

.attr-btn.minus:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.4);
}

.attr-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

.pending-display {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  color: #27ae60;
  font-size: 1rem;
}

/* Stat allocation success animation */
.attribute-row.stat-increased {
  animation: stat-increase 0.4s ease;
}

@keyframes stat-increase {
  0% { background-color: transparent; }
  50% { background-color: rgba(39, 174, 96, 0.2); }
  100% { background-color: transparent; }
}

.attr-total.increased {
  animation: number-pop 0.3s ease;
  color: #27ae60;
}

@keyframes number-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Points available indicator when has points */
.points-available.has-points {
  animation: points-pulse 1.5s ease infinite;
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

@keyframes points-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
  50% { box-shadow: 0 0 0 8px rgba(39, 174, 96, 0.2); }
}

/* Allocation confirm animation */
.allocate-actions .btn-primary {
  transition: all 0.3s ease;
}

.allocate-actions .btn-primary:not(:disabled) {
  animation: confirm-ready 1s ease infinite;
}

@keyframes confirm-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
  50% { box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.3); }
}

/* ─────────────────────────────────────────────────────────────────────────────────
   BUILD SUMMARY IMPROVEMENTS
   ───────────────────────────────────────────────────────────────────────────────── */

.build-stat {
  transition: all 0.3s ease;
}

.build-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.path-bar .bar-fill {
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.path-bar .bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: bar-shimmer 2s linear infinite;
}

@keyframes bar-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────────────
   RESPEC BUTTON
   ───────────────────────────────────────────────────────────────────────────────── */

.st-actions #respec-btn {
  transition: all 0.3s ease;
}

.st-actions #respec-btn:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
  color: #e74c3c;
}

/* ─────────────────────────────────────────────────────────────────────────────────
   SKILL POINTS INDICATOR
   ───────────────────────────────────────────────────────────────────────────────── */

.st-points {
  transition: all 0.3s ease;
}

.st-points.has-points {
  animation: skillpoints-glow 2s ease infinite;
  background: rgba(155, 89, 182, 0.3);
}

@keyframes skillpoints-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(155, 89, 182, 0.3); }
  50% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.6); }
}

/* Skill point number bounce when changed */
.st-points .points-value.changed {
  animation: points-bounce 0.5s ease;
}

@keyframes points-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
}

