/**
 * Debug CSS
 * Styles for debugging and development
 * Only loaded during development
 */

/* Debug outlines */
.debug-mode * {
  outline: 1px dashed rgba(255, 0, 0, 0.2);
}

.debug-mode *:hover {
  outline: 1px solid rgba(255, 0, 0, 0.5);
}

/* Debug panel */
.debug-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #00FF00;
  font-family: monospace;
  padding: 0.5rem;
  font-size: 12px;
  max-width: 300px;
  max-height: 200px;
  overflow: auto;
  z-index: calc(var(--z-a5-takeover, 5900) + 5);
  border-top-right-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.debug-panel.expanded {
  max-width: 600px;
  max-height: 400px;
}

.debug-panel h3 {
  margin: 0;
  color: #2AFFF7;
  font-size: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
}

.debug-panel p {
  margin: 4px 0;
}

.debug-panel pre {
  margin: 5px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.debug-panel-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.debug-panel-toggle {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #2AFFF7;
  color: black;
  font-size: 12px;
  padding: 2px 8px;
  border-top-right-radius: 5px;
  cursor: pointer;
  z-index: calc(var(--z-a5-takeover, 5900) + 6);
}

/* FPS counter */
.fps-counter {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #00FF00;
  font-family: monospace;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  z-index: calc(var(--z-a5-takeover, 5900) + 5);
}

/* Highlight active layers */
.debug-layer-highlight .layer:hover {
  outline: 2px solid #FF42A1 !important;
  outline-offset: 2px;
  position: relative;
}

.debug-layer-highlight .layer:hover::after {
  content: attr(data-depth);
  position: absolute;
  top: -20px;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #2AFFF7;
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Event logger styles */
.event-log {
  background: rgba(0, 0, 0, 0.8);
  color: #2AFFF7;
  position: fixed;
  right: 0;
  bottom: 0;
  max-height: 200px;
  max-width: 300px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  padding: 5px;
  z-index: calc(var(--z-a5-takeover, 5900) + 3);
  border-top-left-radius: 5px;
}

.event-log-item {
  padding: 2px 0;
  border-bottom: 1px solid #333;
}

.event-log-item .event-name {
  color: #FF42A1;
}
