/**
 * Console Wars – Visualization Styles
 */

#console-wars-chart {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 8px;
  padding: 1rem;
  box-sizing: border-box;
}

#console-wars-chart svg {
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* Axes */
.cw-axis line,
.cw-axis path {
  stroke: #555;
}

.cw-axis text {
  fill: #aaa;
  font-size: 11px;
}

.cw-axis-label {
  fill: #ccc;
  font-size: 13px;
  font-weight: 500;
}

.cw-title {
  fill: #e0e0e0;
  font-size: 16px;
  font-weight: 600;
}

/* Tooltip */
.cw-tooltip {
  position: absolute;
  background: rgba(20, 20, 40, 0.95);
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #e0e0e0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cw-tooltip strong {
  color: #fff;
  font-size: 13px;
}

/* Legend */
.cw-legend-item:hover rect {
  stroke: #fff;
  stroke-width: 2;
}

.cw-legend-item:hover text {
  fill: #fff;
}

/* Points */
.cw-points circle {
  transition: opacity 0.2s;
}

/* Container page styles */
.console-wars-page {
  background: #0d0d1a;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e0e0e0;
}

.console-wars-page h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.console-wars-page .subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.console-wars-page .description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #aaa;
  line-height: 1.6;
  font-size: 0.9rem;
}

.console-wars-page footer {
  text-align: center;
  margin-top: 2rem;
  color: #666;
  font-size: 0.8rem;
}

.console-wars-page footer a {
  color: #9467bd;
  text-decoration: none;
}

.console-wars-page footer a:hover {
  text-decoration: underline;
}
