/* Global Variables */
:root {
  /* Layout */
  --tree-width: 100%;
  --tree-height: 900px;
  --node-width: 120px;
  --node-height-default: 80px;
  --node-height-expanded: 120px;
  
  /* Spacing */
  --legend-gap: 1rem;
  --legend-dot-size: 0.4rem;
  --requirement-dot-size: 0.2rem;
  
  /* Colors */
  --text-color: rgb(55, 65, 81);
  --text-light-opacity: rgba(255, 255, 255, 0.9);
  --text-lighter-opacity: rgba(255, 255, 255, 0.8);
  --dot-color: rgba(255, 255, 255, 0.6);
  
  /* Transitions */
  --transition-speed: 300ms;
  --hover-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Scale Factors */
  --node-scale-default: 0.6;
  --node-scale-hybrid: 0.5;
  --node-scale-hover: 1.1;
}

/* Career Paths Container */
.career-paths {
  width: 100%;
  height: 775px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

/* Zoom Controls */
.zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.zoom-btn:active {
  transform: translateY(0px);
  background: rgba(255, 255, 255, 0.15);
}

.reset-btn {
  font-size: 14px;
}

/* Main Content */
.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  height: var(--tree-height);
  width: var(--tree-width);
  overflow: visible;
  margin: 0 auto;
  left: 50%;
  transform-origin: center center;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.main-content:active {
  cursor: grabbing;
}

/* SVG Connections */
.connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Career Node */
.career-node {
  position: absolute;
  transition: var(--hover-transition);
  width: var(--node-width);
  z-index: 1;
  transform-origin: center center;
}

/* Hybrid Node Styles */
.career-node[data-path="HYBRID"] {
  z-index: 2;
}

.career-node[data-path="HYBRID"] .node-inner h3,
.career-node[data-path="HYBRID"] .description {
  color: white;
}

.node-content {
  border-radius: 0.75rem;
  transition: var(--hover-transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: var(--node-height-default);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.node-content:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: var(--node-height-expanded);
}

/* Node Content */
.node-inner {
  padding: 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.node-inner h3 {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: white;
  text-align: center;
}

.node-details {
  flex: 1;
  transition: opacity var(--transition-speed) ease;
  opacity: 0;
}

.node-content:hover .node-details {
  opacity: 1;
}

/* Description */
.description {
  font-size: 0.7rem;
  color: var(--text-light-opacity);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* Shadow Classes with enhanced effects */
.shadow-blue-200 { 
  box-shadow: 0 0 10px rgba(191, 219, 254, 0.4),
              0 0 20px rgba(191, 219, 254, 0.2);
}
.shadow-purple-200 { 
  box-shadow: 0 0 10px rgba(221, 214, 254, 0.4),
              0 0 20px rgba(221, 214, 254, 0.2);
}
.shadow-amber-200 { 
  box-shadow: 0 0 10px rgba(253, 230, 138, 0.4),
              0 0 20px rgba(253, 230, 138, 0.2);
}
.shadow-indigo-200 { 
  box-shadow: 0 0 10px rgba(199, 210, 254, 0.4),
              0 0 20px rgba(199, 210, 254, 0.2);
}
