/* Transcript page styles (shared across meeting pages) */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.meeting-header {
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.meeting-header h1 { margin: 0 0 10px 0; }
.meeting-header .meta { opacity: 0.9; font-size: 14px; }

.ai-summary {
  background: linear-gradient(135deg, #f0fff4, #e6fffa);
  border: 2px solid #38a169;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.ai-summary h3 { color: #276749; margin-top: 0; }
.ai-summary ul { margin: 10px 0; padding-left: 20px; }
.ai-summary li { margin: 8px 0; }
.ai-summary strong { color: #1a365d; }

.ai-notice {
  background: #fffaf0;
  border: 2px dashed #ed8936;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.ai-notice h4 { margin: 0 0 8px 0; color: #c05621; }
.ai-notice p { margin: 0; font-size: 14px; }

.official-links {
  background: linear-gradient(135deg, #edf2f7, #e2e8f0);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.official-links h3 { margin-top: 0; color: #1a365d; }
.official-links a { color: #2b6cb0; font-weight: 500; text-decoration: none; }
.official-links a:hover { color: #1a365d; text-decoration: underline; }

.search-container {
  position: sticky;
  top: 0;
  background: white;
  padding: 15px 0;
  border-bottom: 2px solid #e2e8f0;
  z-index: 100;
  margin-bottom: 20px;
}

#search-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #2b6cb0;
  border-radius: 25px;
  outline: none;
  box-sizing: border-box;
}

#search-input:focus {
  border-color: #1a365d;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

#search-count {
  margin-top: 8px;
  font-size: 14px;
  color: #4a5568;
}

.speaker-block {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #2b6cb0;
  background: #f7fafc;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.speaker-block.mayor { border-left-color: #38a169; }
.speaker-block.council { border-left-color: #2b6cb0; }
.speaker-block.staff { border-left-color: #ed8936; }
.speaker-block.public { border-left-color: #9f7aea; }

.group-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.turn-line {
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
}

.turn-line:first-child { border-top: none; }

.turn-line-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.turn-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.speaker-name {
  font-weight: 700;
  color: #1a365d;
  font-size: 16px;
}

.speaker-source-badge {
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #4a5568;
  text-transform: lowercase;
}

.speaker-source-badge.captions {
  border-color: rgba(56, 161, 105, 0.45);
  background: rgba(56, 161, 105, 0.10);
  color: #276749;
}

.speaker-source-badge.diarization {
  border-color: rgba(237, 137, 54, 0.55);
  background: rgba(237, 137, 54, 0.12);
  color: #9c4221;
}

.speaker-source-badge.heuristic {
  border-color: rgba(159, 122, 234, 0.55);
  background: rgba(159, 122, 234, 0.12);
  color: #553c9a;
}

.speaker-source-badge.unknown {
  border-color: rgba(160, 174, 192, 0.8);
  background: rgba(160, 174, 192, 0.10);
  color: #4a5568;
}

.timestamp-link {
  color: #2b6cb0;
  text-decoration: none;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timestamp-link:hover { text-decoration: underline; color: #1a365d; }

.cite-btn {
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #1a365d;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cite-btn:hover { background: #edf2f7; }

.save-btn {
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #1a365d;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.save-btn:hover { background: #edf2f7; }

.mini-btn {
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #1a365d;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-btn:hover { background: #edf2f7; }

.mini-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.turn-text { line-height: 1.7; color: #2d3748; white-space: pre-wrap; }
.turn-text mark { background: #fef08a; padding: 2px 4px; border-radius: 2px; }

.hidden { display: none; }
.speaker-block.highlighted { background: #fef08a; border-radius: 8px; }

/* Speaker chips */
.speaker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.speaker-chip {
  --chip: #2b6cb0;
  border: 1px solid var(--chip);
  background: #fff;
  color: #1a365d;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.speaker-chip:hover { background: #edf2f7; }

.speaker-chip.mayor { --chip: #38a169; }
.speaker-chip.council { --chip: #2b6cb0; }
.speaker-chip.staff { --chip: #ed8936; }
.speaker-chip.public { --chip: #9f7aea; }

.speaker-chip.active {
  background: var(--chip);
  color: #fff;
}

/* Match nav under search */
.match-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.match-label {
  font-size: 13px;
  color: #4a5568;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Highlights */
.highlights-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e0;
}

.highlights-panel h4 {
  margin: 0 0 10px 0;
  color: #1a365d;
}

.highlights-empty {
  font-size: 14px;
  color: #4a5568;
}

.highlight-row {
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}

.highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.highlight-speaker {
  font-weight: 700;
  color: #1a365d;
}

.highlight-text {
  color: #2d3748;
  line-height: 1.6;
}

/* Jump to section: readable full labels */
.section-list {
  margin: 0;
  padding-left: 20px;
}

.section-list li { margin: 10px 0; }

.section-list a {
  display: block;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
}

.section-list a:hover {
  background: #edf2f7;
  text-decoration: none;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 25px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

#back-to-top.show { opacity: 1; }
#back-to-top:hover { background: #1a365d; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #38a169;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.toast.show { opacity: 1; }

@media (max-width: 600px) {
  .meeting-header { padding: 20px; }
  .container { padding: 14px; }
}
