/* Full-screen dark background */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #05060b 0%, #111111 45%, #000000 100%);
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Root wrapper */
.gptmb-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999;
}

/* Main layout: left prompt, right moodboard */
.gptmb-layout {
  display: flex;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 22px;
  gap: 20px;
}

/* Left column */
.gptmb-left {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
}

/* Logo row */
.gptmb-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gptmb-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #4f46e5, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f9fafb;
}

.gptmb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gptmb-logo-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}
.gptmb-logo-sub {
  font-size: 0.78rem;
  color: #9ca3af;
}

.gptmb-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Form */
.gptmb-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gptmb-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #9ca3af;
}

#gptmb-prompt {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  outline: none;
  resize: vertical;
  font-size: 0.95rem;
  color: #f9fafb;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.08s ease;
}

#gptmb-prompt::placeholder {
  color: #6b7280;
}

#gptmb-prompt:focus {
  border-color: rgba(129, 140, 248, 0.9);
  background: #020617;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.6),
    0 18px 40px rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

/* Button */
.gptmb-button {
  margin-top: 4px;
  width: 100%;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.5);
  transition:
    transform 0.09s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease,
    opacity 0.12s ease;
}

.gptmb-button::after {
  content: "✨";
  font-size: 0.95em;
}

.gptmb-button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.7);
  filter: brightness(1.06);
}

.gptmb-button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.65);
}

.gptmb-button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.gptmb-status {
  font-size: 0.78rem;
  color: #9ca3af;
}

.gptmb-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Right column: moodboard page */
.gptmb-right {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.gptmb-board {
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  padding: 18px 20px 20px;
  background: radial-gradient(circle at top, #020617 0%, #020617 50%, #000000 100%);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Board header */
.gptmb-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 6px;
}

.gptmb-board-brand {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.gptmb-board-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: #9ca3af;
}

.gptmb-board-meta {
  display: flex;
  gap: 6px;
}

.gptmb-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* Sections */
.gptmb-section {
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.gptmb-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 6px;
}

/* Color palette */
.gptmb-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.gptmb-color-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617 0%, #111827 50%, #020617 100%);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.gptmb-color-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

.gptmb-color-swatch {
  height: 60px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.gptmb-color-meta {
  padding: 6px 8px 8px;
}

.gptmb-color-name {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.gptmb-color-hex {
  font-size: 0.78rem;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

/* Fonts row */
.gptmb-fonts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.gptmb-font-card {
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617 0%, #111827 55%, #020617 100%);
}

.gptmb-font-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.gptmb-font-sample {
  font-size: 1.05rem;
  color: #f9fafb;
}

/* Photos: 3×3 grid */
.gptmb-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gptmb-photo-cell {
  background: #020617;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  aspect-ratio: 1 / 1;
}

.gptmb-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shapes & Patterns rows */
.gptmb-row-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.gptmb-row-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  aspect-ratio: 4 / 3;
}

.gptmb-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .gptmb-layout {
    flex-direction: column;
    padding: 14px 10px;
    gap: 14px;
  }

  .gptmb-left {
    flex: 0 0 auto;
  }

  .gptmb-right {
    flex: 1;
  }

  .gptmb-board {
    max-width: 100%;
  }
}
