/* src/ui/popup.css */

body {
  width: 360px;
  font-family: var(--cc-font-body);
  color: var(--cc-ink);
  background: var(--cc-surface);
  -webkit-font-smoothing: antialiased;
}

.pp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px;
  background: linear-gradient(180deg, #f7faff, #eef4fc);
  border-bottom: 1px solid var(--cc-line-soft);
}
.pp-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--cc-font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--cc-blue);
}
.pp-brand img { border-radius: 6px; }
.pp-gear {
  background: none; border: none; cursor: pointer;
  font-size: 17px; color: var(--cc-ink-faint); padding: 2px 5px;
  border-radius: 7px; transition: background 0.13s, color 0.13s;
}
.pp-gear:hover { background: #e7edf4; color: var(--cc-blue); }

.pp-body { padding: 14px 15px 16px; }

.pp-context {
  background: var(--cc-canvas);
  border: 1px solid var(--cc-line-soft);
  border-radius: var(--cc-r-md);
  padding: 10px 12px;
  margin-bottom: 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cc-ink-soft);
  max-height: 76px;
  overflow: hidden;
}
.pp-context-label { color: var(--cc-ink-faint); }
.pp-context-author { font-weight: 600; color: var(--cc-ink); }

.pp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.pp-row label { font-size: 12.5px; font-weight: 600; color: var(--cc-ink-soft); }
.pp-select {
  flex: 1;
  font-family: var(--cc-font-body); font-size: 13px;
  padding: 7px 10px;
  border: 1.5px solid var(--cc-line);
  border-radius: var(--cc-r-sm);
  background: var(--cc-canvas-2); color: var(--cc-ink);
  outline: none; cursor: pointer;
}
.pp-select:focus { border-color: var(--cc-blue); }

.pp-output { min-height: 64px; margin-bottom: 12px; }
.pp-placeholder { font-size: 12.5px; color: var(--cc-ink-faint); text-align: center; padding: 16px 6px; }

.pp-loading {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--cc-ink-soft); padding: 14px 2px;
}
.pp-textarea {
  width: 100%; min-height: 104px;
  font-family: var(--cc-font-body); font-size: 13px; line-height: 1.55;
  color: var(--cc-ink); background: #fff;
  border: 1.5px solid var(--cc-blue-100); border-radius: var(--cc-r-sm);
  padding: 10px 11px; resize: vertical; outline: none;
  transition: border-color 0.13s; animation: cc-rise 0.18s ease;
}
.pp-textarea:focus { border-color: var(--cc-blue); }
.pp-error {
  font-size: 12.5px; line-height: 1.5; color: var(--cc-red);
  background: #fdf3f2; border: 1px solid #f3d9d6;
  border-radius: var(--cc-r-sm); padding: 10px 12px;
}

.pp-actions { display: flex; gap: 8px; }
.pp-generate { flex: 1; padding: 9px 0; font-size: 13.5px; }
.pp-regen { padding: 9px 14px; font-size: 14px; }
.pp-copy { padding: 9px 16px; font-size: 13px; }

.pp-status { min-height: 18px; margin-top: 9px; font-size: 11.5px; text-align: center; color: var(--cc-ink-faint); }
.pp-status.ok { color: var(--cc-green); font-weight: 600; }
.pp-status.warn { color: var(--cc-amber); }
.pp-status .pp-link { background: none; border: none; color: var(--cc-blue); font-weight: 600; cursor: pointer; font-size: 12px; }
.pp-status .pp-link:hover { text-decoration: underline; }
