/**
 * LANGUAGE UNIVERSE STYLES
 * High-fidelity space visualization for programming languages
 */

:root {
  --lu-bg-start: #0d1117;
  --lu-bg-end: #161b22;
  --lu-accent: #238636;
  --lu-accent-light: #2ea043;
  --lu-text-primary: #c9d1d9;
  --lu-text-secondary: #8b949e;
  --lu-border: rgba(255, 255, 255, 0.1);
}

/* Main Container */
.lu-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--lu-bg-end) 0%, var(--lu-bg-start) 100%);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Canvas Layer */
.lu-canvas-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lu-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.lu-canvas:hover {
  cursor: pointer;
}

/* Header Overlay */
.lu-header {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--lu-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 23, 0.8);
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--lu-border);
  backdrop-filter: blur(4px);
}

.lu-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--lu-accent-light);
  background: rgba(35, 134, 54, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

/* Show header on card hover */
.card-solar-system:hover .lu-header {
  opacity: 1;
}

/* Legend Overlay */
.lu-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  max-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.lu-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--lu-text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 2px 0;
}

.lu-legend-item:hover {
  color: var(--lu-text-primary);
  transform: translateX(2px);
}

.lu-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

/* Detail Popup */
.lu-popup {
  position: absolute;
  background: rgba(22, 27, 34, 0.25);
  border: 1px solid var(--lu-accent);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--lu-text-primary);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.92);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 
              0 0 12px currentColor;
  min-width: 120px;
  backdrop-filter: blur(12px);
}

.lu-popup.visible {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}

.lu-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lu-border);
  font-weight: 600;
  font-size: 13px;
}

.lu-popup-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lu-popup-stats {
  display: flex;
  justify-content: space-between;
  color: var(--lu-text-secondary);
  font-family: 'JetBrains Mono', monospace;
}



