/* Playground – extra Seite */

.playground-content {
  max-width: 1200px;
}

.playground-intro {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.playground-card {
  padding: 0;
  overflow: hidden;
}

.playground-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 480px;
}

@media (max-width: 900px) {
  .playground-layout {
    grid-template-columns: 1fr;
  }
}

.playground-sidebar {
  padding: 24px;
  background: #f8fafc;
  border-right: 1px solid var(--border);
}

@media (max-width: 900px) {
  .playground-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.playground-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  margin-bottom: 8px;
}

.playground-select:focus {
  outline: none;
  border-color: var(--primary);
}

.playground-model-hint {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.playground-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playground-presets .field-label {
  margin-bottom: 4px;
}

.playground-preset {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.playground-preset:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

.playground-main {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.playground-input-wrap {
  margin-bottom: 24px;
}

.playground-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  resize: vertical;
  margin-bottom: 12px;
}

.playground-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.playground-textarea::placeholder {
  color: var(--text-muted);
}

.playground-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.playground-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pg-send-icon {
  font-size: 12px;
}

.playground-simulated-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.playground-output-wrap {
  flex: 1;
  min-height: 200px;
}

.playground-output {
  min-height: 180px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

.playground-output-placeholder {
  color: var(--text-muted);
}

.playground-output-content {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.playground-output-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.pg-loading-dots {
  animation: pg-dots 1s steps(4, end) infinite;
}

@keyframes pg-dots {
  0%, 20% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

.playground-output-image {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.playground-output-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.playground-output-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
}

.pg-image-icon {
  font-size: 48px;
  opacity: 0.6;
}

.playground-output-image-placeholder small {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 16px;
}

.header-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
