/* sound-design.css — styling for the sound design documentation page */

/* Feature list styling */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.feature-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 0.5rem;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--greentext, #4f6b0c);
  font-weight: 700;
}

/* Code blocks */
pre {
  background: #0d0c1a;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #c9d0ff;
}
pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

/* Sound catalog grid */
.sound-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sound-catalog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 10px 4px 12px 5px;
  background: var(--card);
  text-align: center;
  transition: all 0.2s ease;
  min-height: 120px;
}
.sound-catalog-item:hover {
  transform: translateY(-4px);
  box-shadow: 10px 12px 0 var(--slime-dark);
  background: var(--card-hover);
}
.sound-catalog-item .sound-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.sound-catalog-item .sound-id {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.sound-catalog-item .sound-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.sound-catalog-item button {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 4px 10px;
}

/* Demo elements container */
.demo-elements {
  background: var(--lavender-100);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px dashed var(--ink);
}
.demo-elements h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--step-2);
}
.demo-elements:last-child h3 {
  margin-top: 0;
}

/* Demo buttons */
.demo-btn, .demo-link {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 0.5rem 0.5rem 0;
  border: 2px solid var(--ink);
  border-radius: 10px 4px 12px 5px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.demo-btn:hover, .demo-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.demo-btn:active, .demo-link:active {
  transform: translateY(1px);
}
.demo-link {
  display: inline-block;
}

/* Demo toggle styling */
.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-toggle:hover {
  background: var(--lavender-200);
}
.demo-toggle input[type="checkbox"],
.demo-toggle input[type="radio"] {
  width: 16px;
  height: 16px;
}
.toggle-label {
  font-size: 0.9rem;
  user-select: none;
}

/* Demo select styling */
.demo-row select {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  min-width: 150px;
}

/* Visualizer container */
.visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin-top: 1.5rem;
  background: #000;
  border-radius: 8px;
}
#demo-visualizer {
  background: #111;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
  height: 100px;
}
.visualizer-hint {
  margin-top: 0.5rem;
  color: var(--mustard);
  font-size: 0.85rem;
}

/* Related cards grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  display: block;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 10px 4px 12px 5px;
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 12px 0 var(--slime-dark);
  background: var(--card-hover);
}
.related-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.related-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Demo controls */
.demo-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: start;
}

#demo-play, #demo-test-all, #demo-stop {
  min-width: 120px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Status indicator */
.status-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.status-indicator.enabled {
  background: #00ff0022;
  color: #00ff00;
}
.status-indicator.disabled {
  background: #ff000022;
  color: #ff5555;
}
.status-indicator.checking {
  background: #ffd70022;
  color: #ffd700;
}

/* Feature list styling for accessibility section */
#accessibility ul.feature-list,
#customization ul.feature-list,
#implementation ul.feature-list {
  margin-left: 0;
}

/* Code prettify */
pre code {
  white-space: pre;
}

/* Media queries for responsive design */
@media (max-width: 600px) {
  .demo-controls {
    grid-template-columns: 1fr;
  }

  .sound-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-elements {
    padding: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .sound-catalog-item {
    min-height: auto;
    padding: 0.75rem;
  }

  pre {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .feature-list li::before {
    left: -20px;
  }
}