/* launch-kit.css — Launch Kit Generator styles */

/* ── Tab bar ────────────────────────────────────────────────────────────────── */
.lk-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border, #27272a);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lk-tabs::-webkit-scrollbar { display: none; }

.lk-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--muted, #71717a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
  margin-bottom: -1px;
}
.lk-tab:hover { color: var(--text, #e4e4e7); }
.lk-tab.lk-tab--active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

/* ── Tab panels ─────────────────────────────────────────────────────────────── */
.lk-panel { display: none; }
.lk-panel.lk-panel--active { display: block; }

/* ── Asset toolbar ──────────────────────────────────────────────────────────── */
.lk-asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.lk-asset-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6366f1;
  background: rgba(99,102,241,0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.lk-asset-actions {
  display: flex;
  gap: 8px;
}

/* ── Edit-in-place textarea ─────────────────────────────────────────────────── */
.lk-asset-content {
  position: relative;
}

.lk-asset-display {
  background: var(--surface2, #111118);
  border: 1px solid var(--border, #27272a);
  border-radius: 10px;
  padding: 20px 24px;
  color: var(--text, #e4e4e7);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
  cursor: text;
}

.lk-asset-display.lk-asset-display--markdown {
  /* rendered markdown — keep prose styles */
  white-space: normal;
}

.lk-asset-display.lk-asset-display--markdown h1,
.lk-asset-display.lk-asset-display--markdown h2,
.lk-asset-display.lk-asset-display--markdown h3 {
  color: #f4f4f5;
  margin: 1em 0 0.4em;
}
.lk-asset-display.lk-asset-display--markdown p { margin: 0 0 0.75em; }
.lk-asset-display.lk-asset-display--markdown ul,
.lk-asset-display.lk-asset-display--markdown ol {
  margin: 0 0 0.75em 1.25em;
}
.lk-asset-display.lk-asset-display--markdown li { margin-bottom: 0.25em; }
.lk-asset-display.lk-asset-display--markdown strong { color: #f4f4f5; }
.lk-asset-display.lk-asset-display--markdown hr {
  border-color: var(--border, #27272a);
  margin: 1.25em 0;
}

.lk-asset-editor {
  display: none;
  width: 100%;
  min-height: 240px;
  background: var(--surface2, #111118);
  border: 1px solid #6366f1;
  border-radius: 10px;
  padding: 20px 24px;
  color: var(--text, #e4e4e7);
  font-size: 14px;
  line-height: 1.75;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.lk-asset-editor:focus { outline: none; }
.lk-asset-editor.lk-asset-editor--visible { display: block; }

.lk-edit-save-row {
  display: none;
  gap: 8px;
  margin-top: 8px;
}
.lk-edit-save-row.lk-edit-save-row--visible { display: flex; }

/* ── PR boilerplate specific ─────────────────────────────────────────────────── */
.lk-pr-sections { display: flex; flex-direction: column; gap: 16px; }

.lk-pr-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #71717a);
  margin-bottom: 8px;
}

/* ── LinkedIn variants ──────────────────────────────────────────────────────── */
.lk-linkedin-variants { display: flex; flex-direction: column; gap: 16px; }

.lk-linkedin-variant-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #71717a);
  margin-bottom: 8px;
}

/* ── Regenerating overlay ───────────────────────────────────────────────────── */
.lk-regenerating {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}
.lk-regenerating::after {
  content: 'Regenerating…';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10,10,15,0.85);
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ── Brief origin badge ─────────────────────────────────────────────────────── */
.lk-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: #a1a1aa;
  margin-bottom: 20px;
}
.lk-origin-badge a { color: #6366f1; text-decoration: none; }
.lk-origin-badge a:hover { text-decoration: underline; }

/* ── Kit badge ──────────────────────────────────────────────────────────────── */
.lk-kit-badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  color: #6366f1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ── Tweet thread specific: show tweet numbering ────────────────────────────── */
.lk-tweet { margin-bottom: 16px; }
.lk-tweet-num {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 4px;
}
.lk-tweet-body {
  background: var(--surface2, #111118);
  border: 1px solid var(--border, #27272a);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text, #e4e4e7);
  white-space: pre-wrap;
}

/* ── Email subject/body split ───────────────────────────────────────────────── */
.lk-email-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #71717a);
  margin-bottom: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.07);
  border-radius: 6px;
}
.lk-email-subject span { color: #f4f4f5; font-weight: 500; }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.lk-copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #18181f;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  pointer-events: none;
  animation: lkFadeIn 0.15s ease;
}

@keyframes lkFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
