/* ── style-plot-guide.css ─────────────────────────────────────────────────────
   Collapsible "Plot Guidance" accordion panel.
   Loaded by index.html after style-responsive.css.
*/

/* ── Toggle button ── */
.plot-guide-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s;
}

.plot-guide-toggle:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── Body（max-height 动画）── */
.plot-guide-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.3s  ease,
    margin-top 0.3s  ease,
    padding    0.3s  ease;
}

.plot-guide-body.open {
  max-height: 700px;
  opacity: 1;
  margin-top: 10px;
  padding: 16px;
}

/* ── Field ── */
.plot-guide-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plot-guide-label {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Textarea ── */
.plot-guide-textarea {
  width: 100%;
  resize: vertical;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plot-guide-textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.plot-guide-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

/* ── Pace / Tone row ── */
.plot-guide-row {
  display: flex;
  gap: 16px;
}

.plot-guide-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* ── Tag group ── */
.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-tag {
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.pg-tag:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.pg-tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
}

/* ── Actions row ── */
.plot-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.pg-btn-save,
.pg-btn-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.75rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pg-btn-save:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.pg-btn-clear:hover {
  border-color: #f87171;
  color: #f87171;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .plot-guide-row {
    flex-direction: column;
    gap: 10px;
  }
}
