/* Galactic Prompt Builder — v1.0.0 */

.gpb-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  color: #1a1a1a;
}

.gpb-wrap[data-theme="dark"] {
  background: #141414;
  border-color: #2e2e2e;
  color: #e8e8e8;
}

/* Header */
.gpb-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ececec;
}
.gpb-wrap[data-theme="dark"] .gpb-header { border-color: #2e2e2e; }
.gpb-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.gpb-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gpb-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}
.gpb-wrap[data-theme="dark"] .gpb-header p { color: #999; }

/* Sections */
.gpb-section { margin-bottom: 1.25rem; }

.gpb-sec-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 8px;
}
.gpb-wrap[data-theme="dark"] .gpb-sec-title { color: #666; }

.gpb-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #aaa;
  font-size: 11px;
}

/* Chips */
.gpb-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.gpb-chip {
  padding: 5px 13px;
  font-size: 13px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  cursor: pointer;
  color: #333;
  background: #fafafa;
  transition: background .12s, border-color .12s, color .12s;
  user-select: none;
  line-height: 1.4;
}
.gpb-chip:hover { background: #f0f0f0; border-color: #aaa; }

.gpb-wrap[data-theme="dark"] .gpb-chip {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #d0d0d0;
}
.gpb-wrap[data-theme="dark"] .gpb-chip:hover {
  background: #2a2a2a;
  border-color: #555;
}

/* Active states */
.gpb-chip.gpb-active          { background: #185FA5; border-color: #185FA5; color: #fff; }
.gpb-chip.gpb-warm.gpb-active  { background: #BA7517; border-color: #BA7517; color: #fff; }
.gpb-chip.gpb-violet.gpb-active{ background: #534AB7; border-color: #534AB7; color: #fff; }
.gpb-chip.gpb-teal.gpb-active  { background: #0F6E56; border-color: #0F6E56; color: #fff; }
.gpb-chip.gpb-red.gpb-active   { background: #993C1D; border-color: #993C1D; color: #fff; }
.gpb-chip.gpb-pink.gpb-active  { background: #993556; border-color: #993556; color: #fff; }

/* Select */
.gpb-select {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #fafafa;
  color: #333;
  cursor: pointer;
  min-width: 200px;
}
.gpb-wrap[data-theme="dark"] .gpb-select {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #d0d0d0;
}

/* Output */
.gpb-output-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 6px;
  margin-top: 1.5rem;
}
.gpb-output {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 13.5px;
  line-height: 1.75;
  color: #1a1a1a;
  min-height: 72px;
  word-break: break-word;
}
.gpb-wrap[data-theme="dark"] .gpb-output {
  background: #1a1a1a;
  border-color: #333;
  color: #e0e0e0;
}

/* Buttons */
.gpb-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gpb-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #c0c0c0;
  background: #fff;
  color: #222;
  cursor: pointer;
  transition: background .12s;
}
.gpb-btn:hover { background: #f0f0f0; }
.gpb-btn:active { transform: scale(0.98); }
.gpb-btn-secondary { background: transparent; border-color: #ddd; color: #666; }
.gpb-btn-secondary:hover { background: #f5f5f5; color: #333; }
.gpb-wrap[data-theme="dark"] .gpb-btn {
  background: #1e1e1e; border-color: #3a3a3a; color: #d0d0d0;
}
.gpb-wrap[data-theme="dark"] .gpb-btn:hover { background: #2a2a2a; }

/* History */
.gpb-history-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ececec;
}
.gpb-wrap[data-theme="dark"] .gpb-history-wrap { border-color: #2e2e2e; }
.gpb-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gpb-history-item {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  cursor: pointer;
  transition: background .1s;
}
.gpb-history-item:hover { background: #f0f0f0; color: #222; }
.gpb-wrap[data-theme="dark"] .gpb-history-item {
  background: #1a1a1a; border-color: #2e2e2e; color: #888;
}
.gpb-wrap[data-theme="dark"] .gpb-history-item:hover { background: #222; color: #ccc; }
