/* ═══════════════════════════════════════════════════════════════════════════
   Very Big Clips — Transcript Styles  (Black & White Sketchy Edition)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Transcript Container ──────────────────────────────────────────────── */
.transcript-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #0a0a0a;
  cursor: default;
  scroll-behavior: smooth;
  position: relative;
  background: #ffffff;
}

.transcript-container::-webkit-scrollbar { width: 5px; }
.transcript-container::-webkit-scrollbar-track { background: transparent; }
.transcript-container::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.transcript-container::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

.transcript-empty {
  padding: 40px 20px;
  text-align: center;
  color: #a3a3a3;
  font-style: italic;
  font-size: 14px;
}

/* ─── Word Spans ──────────────────────────────────────────────────────────── */
.word {
  display: inline;
  cursor: pointer;
  padding: 1px 2px;
  border-radius: 2px;
  transition: background-color 0.1s ease;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  line-height: inherit;
}

.word:hover { background-color: rgba(0, 0, 0, 0.07); }

/* Active/selected during drag */
.word.selected {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border-radius: 2px;
}

/* Currently playing word (synced to video) */
.word.playing {
  background-color: rgba(0, 0, 0, 0.12);
  outline: 1.5px solid rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}

/* ─── Clip Color Highlights (keep for identification) ────────────────────── */
.word.clip-color-0 { background-color: #FFD6D6; box-shadow: 0 -2px 0 0 #FF6B6B inset; }
.word.clip-color-0:hover { background-color: #FFC0C0; }

.word.clip-color-1 { background-color: #D0EAFF; box-shadow: 0 -2px 0 0 #5BB8FF inset; }
.word.clip-color-1:hover { background-color: #B8DFFF; }

.word.clip-color-2 { background-color: #C8FFE4; box-shadow: 0 -2px 0 0 #3DDC84 inset; }
.word.clip-color-2:hover { background-color: #AAFFDB; }

.word.clip-color-3 { background-color: #E8D0FF; box-shadow: 0 -2px 0 0 #A855F7 inset; }
.word.clip-color-3:hover { background-color: #DDB8FF; }

.word.clip-color-4 { background-color: #FFE9C8; box-shadow: 0 -2px 0 0 #FFB347 inset; }
.word.clip-color-4:hover { background-color: #FFDDB0; }

/* ─── Clip Badge ──────────────────────────────────────────────────────────── */
.clip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px; font-weight: 800;
  margin-right: 3px; vertical-align: middle;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1.5px solid #0a0a0a;
  flex-shrink: 0;
  position: relative; top: -1px;
  background: #f7f7f7; color: #0a0a0a;
}

.clip-badge:hover { transform: scale(1.2); }

/* Keep colorful for easy visual identification */
.clip-badge-0 { background: #FFB3B3; color: #7A0000; border-color: #FF6B6B; }
.clip-badge-1 { background: #B3D9FF; color: #003A6B; border-color: #5BB8FF; }
.clip-badge-2 { background: #B3FFD9; color: #003A22; border-color: #3DDC84; }
.clip-badge-3 { background: #D9B3FF; color: #3B0071; border-color: #A855F7; }
.clip-badge-4 { background: #FFE5B3; color: #5C2E00; border-color: #FFB347; }

/* ─── Clip Edge Drag Handles ──────────────────────────────────────────── */
.clip-edge-handle {
  position: absolute;
  top: -2px;
  width: 5px;
  height: calc(100% + 4px);
  cursor: col-resize;
  z-index: 5;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.clip-edge-start { left: -3px; }
.clip-edge-end { right: -3px; }

/* Show handles when hovering clip-colored words */
.word[class*="clip-color-"]:hover .clip-edge-handle,
.clip-edge-handle:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

/* ─── Overlay Style Grid ─────────────────────────────────────────────────── */
.overlay-style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 4px;
}

@media (max-width: 600px) {
  .overlay-style-grid { grid-template-columns: repeat(2, 1fr); }
}

.style-card {
  display: flex; flex-direction: column;
  cursor: pointer; border-radius: 4px;
  overflow: hidden; border: 2px solid #d4d4d4;
  transition: all 0.15s ease;
}

.style-card:hover {
  transform: translate(-2px, -2px);
  border-color: #0a0a0a;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.style-card--selected { border-color: #0a0a0a; box-shadow: 2px 2px 0 #0a0a0a; }

.style-preview {
  position: relative; width: 100%;
  padding-bottom: 60%; overflow: hidden;
}

.style-preview-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; text-align: center; padding: 4px;
}

.style-selected-check {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: #0a0a0a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.style-card-name {
  padding: 5px 6px 2px; font-size: 11px; font-weight: 700;
  color: #0a0a0a; background: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.style-card-desc {
  padding: 0 6px 6px; font-size: 10px; color: #525252; background: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── Job Progress Bar ────────────────────────────────────────────────────── */
.job-progress-container {
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 4px;
  border: 1px solid #d4d4d4;
}

.job-progress-label {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.job-progress-label-text { font-size: 13px; font-weight: 600; color: #0a0a0a; }
.job-progress-pct { font-size: 12px; font-weight: 600; color: #525252; }

.job-progress-track {
  width: 100%; height: 8px;
  background: #ebebeb; border-radius: 4px; overflow: hidden; border: 1px solid #d4d4d4;
}

.job-progress-fill {
  height: 100%; background: linear-gradient(90deg, #0a0a0a, #525252);
  border-radius: 4px; transition: width 0.6s ease; position: relative;
}

/* ─── Transcript Selection Tooltip ──────────────────────────────────────── */
.selection-tooltip {
  position: fixed; z-index: 600;
  background: #0a0a0a; border-radius: 4px;
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  color: #ffffff; box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  pointer-events: none; white-space: nowrap;
}

/* ─── Speaker / Paragraph ─────────────────────────────────────────────────── */
.transcript-paragraph { display: block; margin-bottom: 1em; }

.transcript-speaker {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #525252; margin-top: 16px; margin-bottom: 4px;
  font-family: 'Oswald', sans-serif;
}

.transcript-timestamp {
  font-size: 10px; color: #a3a3a3;
  font-family: monospace; margin-right: 4px; opacity: 0.6;
}

/* ─── AI Suggestions Banner ──────────────────────────────────────────── */
.ai-suggestions-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FFF9E6, #F0FFF4);
  border-bottom: 1px solid #E8E4D9;
  font-size: 13px;
  color: #3D3D3D;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ai-suggestions-banner.ai-banner-hiding {
  opacity: 0;
  transform: translateY(-8px);
}
.ai-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ai-banner-icon { font-size: 16px; flex-shrink: 0; }
.ai-banner-text { line-height: 1.4; }
.ai-banner-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #D4D4D4;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.ai-banner-dismiss:hover {
  background: #F5F5F5;
  border-color: #999;
  color: #333;
}
