/* Force Playground Demo - Standalone CSS */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #1a1a18;
  color: #e0e0e0;
}

/* Demo Header */
.demo-header {
  padding: 1rem 2rem;
  background: rgba(30, 25, 20, 0.95);
  border-bottom: 2px solid #8b4513;
}

.demo-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #d4a024;
}

.demo-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: #999;
}

/* Page Layout */
.force-playground-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Force Playground dark background */
.force-playground-viz {
  background: rgba(20, 18, 15, 1);
  position: relative;
  overflow: hidden;
}

.force-playground-viz::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
}

/* Fullscreen container */
.fullscreen-container {
  position: relative;
  min-height: calc(100vh - 80px);
  flex: 1;
}

.fullscreen-viz {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-container svg {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
}

/* Semiotic Control Panel */
.semiotic-panel {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(235, 225, 210, 0.95);
  border: 3px solid #8b4513;
  border-radius: 4px;
  padding: 12px;
  z-index: 1000;
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 0 15px rgba(139, 69, 19, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.semiotic-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.semiotic-row:last-child {
  margin-bottom: 0;
}

.semiotic-row--footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid rgba(139, 69, 19, 0.5);
}

.semiotic-button {
  --semiotic-color: #c41e3a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: rgba(30, 25, 20, 0.9);
  border: 2px solid rgba(100, 80, 60, 0.6);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.semiotic-button:hover {
  background: rgba(50, 40, 30, 0.95);
  border-color: var(--semiotic-color, #c41e3a);
}

.semiotic-button--active {
  background: rgba(60, 45, 30, 0.95);
  border-color: var(--semiotic-color, #c41e3a);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(196, 30, 58, 0.3);
}

.semiotic-button--active .semiotic-shape,
.semiotic-button--active .semiotic-shape-stroke {
  fill: var(--semiotic-color, #c41e3a);
  stroke: var(--semiotic-color, #c41e3a);
}

.semiotic-button--active .semiotic-line,
.semiotic-button--active .semiotic-line-thin,
.semiotic-button--active .semiotic-arc {
  stroke: var(--semiotic-color, #c41e3a);
}

.semiotic-button--wide {
  width: auto;
  padding: 6px 14px;
  gap: 8px;
}

.semiotic-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5a4a3a;
  text-transform: uppercase;
}

/* SVG Icon Styling */
.semiotic-icon {
  width: 32px;
  height: 32px;
}

.semiotic-icon--inline {
  width: 20px;
  height: 20px;
}

.semiotic-shape {
  fill: #6b6b5a;
  transition: fill 0.15s ease;
}

.semiotic-shape-stroke {
  fill: none;
  stroke: #6b6b5a;
  stroke-width: 2;
  transition: stroke 0.15s ease;
}

.semiotic-line {
  stroke: #6b6b5a;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.15s ease;
}

.semiotic-line-thin {
  stroke: #4a4a40;
  stroke-width: 1.5;
  stroke-dasharray: 2, 2;
  transition: stroke 0.15s ease;
}

.semiotic-arc {
  fill: none;
  stroke: #6b6b5a;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.15s ease;
}

.semiotic-button:hover .semiotic-shape {
  fill: #8b8b7a;
}

.semiotic-button:hover .semiotic-shape-stroke {
  stroke: #8b8b7a;
}

.semiotic-button:hover .semiotic-line,
.semiotic-button:hover .semiotic-line-thin,
.semiotic-button:hover .semiotic-arc {
  stroke: #8b8b7a;
}

/* Category-specific colors on active */
.semiotic-button[style*="--semiotic-color: #1e5a8c"].semiotic-button--active {
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(30, 90, 140, 0.4);
}

.semiotic-button[style*="--semiotic-color: #d4a024"].semiotic-button--active {
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(212, 160, 36, 0.4);
}

.semiotic-button[style*="--semiotic-color: #2d8b57"].semiotic-button--active {
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(45, 139, 87, 0.4);
}

/* Network visualization */
.network-force {
  background: transparent;
}

.network-force .nodes circle {
  cursor: grab;
}

.network-force .nodes circle:active {
  cursor: grabbing;
}

.network-force .links line {
  pointer-events: none;
}
