/*
 * landing-tool.css — Shared, small stylesheet for the embeddable landing-page
 * transcript tool (see landing-tool.js). All selectors are scoped under .lt-tool
 * to avoid colliding with a page's own styles or a future homepage instance.
 * Uses TranscriptAny's existing brand colors as static values (landing pages
 * currently ship their own inline <style>, not index.html's CSS variables).
 */
.lt-tool {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  box-sizing: border-box;
}
.lt-tool *,
.lt-tool *::before,
.lt-tool *::after { box-sizing: border-box; }

.lt-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.lt-row-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-input {
  flex: 1 1 240px;
  min-width: 0;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: #111827;
  background: #F9FAFB;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lt-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  background: #FFFFFF;
}

.lt-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.lt-btn:hover:not(:disabled) { opacity: 0.92; }
.lt-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lt-btn:focus-visible,
.lt-input:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }

.lt-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 8px;
}

.lt-error {
  display: none;
  margin-top: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.lt-loading {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #4F46E5;
  font-weight: 600;
}
.lt-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(79, 70, 229, 0.25);
  border-top-color: #4F46E5;
  border-radius: 50%;
  animation: lt-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes lt-spin { to { transform: rotate(360deg); } }

.lt-result {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #E5E7EB;
  padding-top: 16px;
}

.lt-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lt-result-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}
.lt-result-author {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}
.lt-result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lt-pill {
  font-size: 12px;
  font-weight: 600;
  color: #4F46E5;
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.lt-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lt-action-btn {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.lt-action-btn:hover { background: #EEF2FF; color: #4F46E5; }

.lt-transcript {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px;
  background: #F9FAFB;
}
.lt-row {
  display: flex;
  gap: 10px;
  padding: 6px 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #1F2937;
  word-break: break-word;
}
.lt-row + .lt-row { border-top: 1px solid #EEF0F3; }
.lt-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: #6B7280;
  font-size: 12px;
  padding-top: 2px;
  min-width: 42px;
}
.lt-time-link { cursor: pointer; color: #4F46E5; }
.lt-time-link:hover { text-decoration: underline; }
.lt-text { flex: 1 1 auto; min-width: 0; }

/* File-upload mode (Task 2C) — kept as a real, visible, focusable <input type="file">
   for accessibility (never display:none'd), just restyled to match the URL input's
   look. Reused unchanged by any future MP4/WAV/M4A landing pages. */
.lt-file-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.lt-file-input {
  flex: 1 1 240px;
  min-width: 0;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #F9FAFB;
  font-family: inherit;
}
.lt-file-input:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }
.lt-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  margin-top: 8px;
  word-break: break-all;
}

@media (max-width: 480px) {
  .lt-tool { padding: 16px; border-radius: 14px; }
  .lt-row-input { flex-direction: column; }
  .lt-file-row { flex-direction: column; align-items: stretch; }
  .lt-btn { width: 100%; }
  .lt-transcript { max-height: 320px; }
}
