/* ── Show Chat Component (Component B) ───────────────────────
   Claude Code chat preview for folder-workflow course landing pages.
   See: the-build/LANDING-PAGE-SHOW-SPEC.md
   ─────────────────────────────────────────────────────────── */

/* Pair these two classes:
   - .hero-with-show-chat on the hero, to give it extra bottom padding
   - .show-chat-section on the wrapping section, to pull the panel up
   so the panel floats over empty hero gradient without covering hero text. */
.hero.hero-with-show-chat { padding-bottom: 200px; }
.show-chat-section { padding: 0 0 64px; }
.show-chat-section .container { margin-top: -140px; }

.show-chat-panel {
  max-width: 880px;
  margin: 0 auto;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(6, 182, 212, 0.28),
    0 30px 60px -20px rgba(15, 23, 42, 0.55);
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  color: #E2E8F0;
}

/* Header bar: tabs on the left, Claude Code label + dot on the right. */
.show-chat-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: #0F172A;
  border-bottom: 1px solid #334155;
  min-height: 44px;
}

.show-chat-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.show-chat-tabs::-webkit-scrollbar { display: none; }

.show-chat-tab {
  appearance: none;
  background: none;
  border: none;
  padding: 13px 22px 11px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.show-chat-tab:hover {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.03);
}

.show-chat-tab-active {
  color: #F8FAFC;
  border-bottom-color: #06B6D4;
}

.show-chat-tab:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: -2px;
}

.show-chat-header-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
  flex-shrink: 0;
}

.show-chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06B6D4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.75);
}

.show-chat-body {
  padding: 30px 34px 34px;
  min-height: 280px;
}

.show-chat-line {
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.show-chat-line:last-child { margin-bottom: 0; }
.show-chat-line:empty { display: none; }

.show-chat-user {
  color: #F8FAFC;
  font-weight: 500;
}

.show-chat-user::before {
  content: "> ";
  color: #06B6D4;
  font-weight: 700;
}

.show-chat-intro {
  color: #94A3B8;
  font-style: italic;
  font-size: 14px;
}

.show-chat-body-response { color: #F8FAFC; }

.show-chat-body-response strong {
  color: #06B6D4;
  font-weight: 700;
  font-style: normal;
}

.show-chat-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: #06B6D4;
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: showChatBlink 1s steps(2, start) infinite;
}

@keyframes showChatBlink {
  to { visibility: hidden; }
}

@media (max-width: 700px) {
  .hero.hero-with-show-chat { padding-bottom: 130px; }
  .show-chat-section { padding: 0 0 40px; }
  .show-chat-section .container { margin-top: -70px; }

  .show-chat-panel {
    font-size: 13px;
    line-height: 1.6;
    border-radius: 12px;
  }
  .show-chat-body {
    padding: 22px 18px 24px;
    min-height: 220px;
  }
  .show-chat-tab {
    padding: 12px 14px 10px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
  .show-chat-header-label { display: none; }
  .show-chat-intro { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .show-chat-cursor {
    animation: none;
    opacity: 0;
  }
}
