/* device-speech.html: buttons, status banner, device info, voice list, footer, example chips. Load after base.css. */

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}

.status.visible {
  display: block;
}

.status.info {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.status.success {
  background: rgba(0, 217, 142, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.status.error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.status-icon {
  margin-right: 0.5rem;
}

.device-info {
  padding: 1rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--fg-dim);
}

.device-info strong {
  color: var(--fg);
}

.voices-list {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.voice-item {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.voice-item:last-child {
  border-bottom: none;
}

.voice-item:hover {
  background: rgba(0, 217, 255, 0.1);
}

.voice-item.selected {
  background: rgba(0, 217, 255, 0.2);
  color: var(--accent);
  font-weight: 500;
}

footer {
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.demo-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.example-btn {
  padding: 0.75rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.example-btn:hover {
  background: rgba(0, 217, 255, 0.2);
}
