/* Producer conversation styles — Orbit Garage Mode */

.garage-body {
  background: var(--obsidian);
  min-height: 100vh;
}

/* Nav */
.garage-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 146, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.garage-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.garage-mode-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 146, 42, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(200, 146, 42, 0.2);
}

/* Main */
.garage-main {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.garage-conversation {
  width: 100%;
  max-width: 760px;
  padding: 48px 40px 120px;
}

/* Intro panel */
.conv-intro {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.conv-intro.panel-exit {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.garage-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 16px 0 20px;
}

.garage-title em {
  color: var(--gold);
  font-style: italic;
}

.garage-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

/* Thought input */
.thought-input-wrap {
  margin-bottom: 24px;
}

.thought-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.thought-textarea::placeholder {
  color: var(--text-dim);
  font-size: 15px;
}

.thought-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}

.thought-textarea.input-error {
  border-color: #e05c5c;
  box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.15);
}

.thought-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.char-count {
  font-size: 12px;
  color: var(--text-dim);
}

/* Start button */
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.btn-start:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-start--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Chat thread */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

/* Message bubbles */
.message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.15);
  border: 1px solid rgba(200, 146, 42, 0.3);
  color: var(--gold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.message--user {
  flex-direction: row-reverse;
}

.msg-bubble-user {
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--cream);
  font-style: italic;
  max-width: 85%;
  line-height: 1.5;
}

.msg-content {
  max-width: 88%;
}

.msg-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

.msg-text em {
  color: var(--cream);
  font-style: normal;
  font-weight: 600;
}

/* Suggestion row */
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sugg-btn {
  background: var(--surface);
  border: 1px solid rgba(200, 146, 42, 0.2);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sugg-btn:hover:not(:disabled) {
  background: rgba(200, 146, 42, 0.12);
  border-color: var(--gold-dim);
  color: var(--cream);
}

.sugg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Custom answer input */
.custom-answer-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.custom-answer-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
}

.custom-answer-input::placeholder {
  color: var(--text-dim);
}

.custom-answer-input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-send-custom {
  background: rgba(200, 146, 42, 0.15);
  border: 1px solid rgba(200, 146, 42, 0.3);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.btn-send-custom:hover {
  background: rgba(200, 146, 42, 0.25);
}

/* Producer brief output */
.brief-output {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.brief-output.brief-reveal {
  opacity: 1;
  transform: translateY(0);
}

.brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-copy {
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.2);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-copy:hover {
  background: rgba(200, 146, 42, 0.2);
}

.brief-json {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.7;
  white-space: pre-wrap;
  background: var(--obsidian-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

.brief-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-generate:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-revise {
  background: transparent;
  border: 1px solid rgba(200, 146, 42, 0.2);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-revise:hover {
  border-color: rgba(200, 146, 42, 0.4);
  color: var(--cream-dim);
}

/* Responsive */
@media (max-width: 600px) {
  .garage-nav {
    padding: 14px 20px;
  }

  .garage-conversation {
    padding: 40px 20px 100px;
  }

  .suggestion-row {
    gap: 6px;
  }

  .sugg-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .brief-actions {
    flex-direction: column;
  }

  .msg-bubble-user {
    max-width: 95%;
  }

  .msg-content {
    max-width: 95%;
  }
}