/* ─── AIStackCreator Inline Conversation Hero ──────────────────────── */

.conv-hero-section {
  background: linear-gradient(135deg, #1e1240 0%, #2d1b69 55%, #3d2b7a 100%);
  padding: 7rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.conv-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 50% 110%, rgba(247,201,72,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.conv-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── eyebrow / label ── */
.conv-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(247,201,72,0.12);
  color: #f7c948;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(247,201,72,0.2);
}

.conv-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: #f7c948;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── headline ── */
.conv-hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.conv-hero-headline em {
  font-style: normal;
  color: #f7c948;
}

.conv-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ── messages area ── */
.conv-messages {
  display: none;
  flex-direction: column;
  gap: 1rem;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.25rem;
  scroll-behavior: smooth;
}

.conv-messages.has-messages {
  display: flex;
}

.conv-messages::-webkit-scrollbar { width: 4px; }
.conv-messages::-webkit-scrollbar-track { background: transparent; }
.conv-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.conv-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  animation: msg-in 0.2s ease;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.conv-msg.user { justify-content: flex-end; }

.conv-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.conv-msg-avatar.ai-avatar {
  background: rgba(247,201,72,0.15);
  color: #f7c948;
}

.conv-msg-bubble {
  max-width: 80%;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

.conv-msg.ai .conv-msg-bubble {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.92);
  border-radius: 4px 14px 14px 14px;
  backdrop-filter: blur(4px);
}

.conv-msg.user .conv-msg-bubble {
  background: rgba(247,201,72,0.18);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(247,201,72,0.25);
  border-radius: 14px 4px 14px 14px;
}

/* ── typing indicator ── */
.conv-typing {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  animation: msg-in 0.2s ease;
}

.conv-typing.visible { display: flex; }

.conv-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.conv-typing-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.conv-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.conv-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ── input area ── */
.conv-input-wrap {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.conv-input-wrap:focus-within {
  border-color: rgba(247,201,72,0.4);
  background: rgba(255,255,255,0.09);
}

.conv-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  color: #ffffff;
  resize: none;
  min-height: 26px;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.55;
  scrollbar-width: thin;
}

.conv-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.conv-textarea::-webkit-scrollbar { width: 3px; }
.conv-textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.conv-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f7c948;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
  opacity: 0.5;
}

.conv-send-btn:not(:disabled) { opacity: 1; }
.conv-send-btn:not(:disabled):hover { background: #ffd84d; transform: translateY(-1px); }
.conv-send-btn:disabled { cursor: not-allowed; }

.conv-send-btn svg {
  width: 18px;
  height: 18px;
  fill: #1a1a2e;
}

/* ── suggestions / chips ── */
.conv-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.conv-chip {
  padding: 0.45rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.conv-chip:hover {
  background: rgba(247,201,72,0.12);
  border-color: rgba(247,201,72,0.3);
  color: #f7c948;
}

/* ── fallback toggle ── */
.conv-fallback-toggle {
  text-align: center;
  margin-top: 1.25rem;
}

.conv-fallback-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: 'DM Sans', sans-serif;
  padding: 0;
}

.conv-fallback-link:hover {
  color: rgba(255,255,255,0.6);
}

/* ── limit notice ── */
.conv-limit-notice {
  display: none;
  font-size: 0.8rem;
  color: rgba(247,201,72,0.7);
  text-align: center;
  margin-top: 0.5rem;
}

.conv-limit-notice.visible { display: block; }

/* ── cross-link row ── */
.conv-crosslink-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}

.conv-crosslink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.conv-crosslink:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.conv-crosslink .arrow { font-size: 0.7rem; }

/* ── responsive ── */
@media (max-width: 600px) {
  .conv-hero-section {
    padding: 6rem 1rem 2.5rem;
  }

  .conv-hero-headline {
    font-size: 1.55rem;
  }

  .conv-hero-sub {
    font-size: 0.92rem;
  }

  .conv-suggestions {
    gap: 0.4rem;
  }

  .conv-chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .conv-msg-bubble {
    max-width: 90%;
    font-size: 0.88rem;
  }

  .conv-crosslink-row {
    display: none;
  }
}

/* ── message rich text ── */
.conv-msg-bubble strong { font-weight: 600; }
.conv-msg-bubble a { color: #f7c948; }

/* ── secondary content reveal ── */
.conv-secondary-content {
  transition: opacity 0.3s;
}

.conv-secondary-content.dimmed {
  opacity: 0.6;
}
