/* =============================================================================
   PANEL - Transcripts (sizing and layout only - base styles from shared/ui.css)
   ============================================================================= */

/* Input sizing */
.transcripts-ticker-input {
    width: 100px;
}

.transcripts-search-input {
    flex: 1;
    min-width: 150px;
}

/* Layout */
.panel[data-panel-type="transcripts"] .panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.panel.maximized[data-panel-type="transcripts"] .panel-content {
    overflow: hidden;
}

/* Data containers */
.transcripts-data,
.transcripts-search-data {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-bottom: 5px;
}

.transcripts-data pre,
.transcripts-search-data pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

/* Transcript content styling */
.transcript-content {
    line-height: 1.6;
}

.transcript-header {
    color: var(--color-syntax-keyword);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.transcript-meta {
    color: var(--color-text-dim);
    font-size: 0.8rem;
}

.transcript-speaker {
    color: var(--color-syntax-function);
    font-weight: bold;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-left: 3px solid var(--color-syntax-keyword);
    padding-left: 0.5rem;
}

.transcript-speaker.ceo {
    border-left-color: var(--color-syntax-string);
    color: var(--color-syntax-string);
}

.transcript-speaker.analyst {
    border-left-color: var(--color-text-dim);
    color: var(--color-text-dim);
    font-weight: normal;
    font-size: 0.9rem;
}

.transcript-text {
    margin: 0 0 0.25rem 0;
    padding: 0;
    line-height: 1.6;
}

/* Back link */
.transcripts-back-link {
    color: var(--color-syntax-keyword);
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1rem;
}

.transcripts-back-link:hover {
    color: var(--color-syntax-link);
}

/* Clickable path links */
.transcript-path-link {
    color: var(--color-syntax-keyword);
    cursor: pointer;
}

.transcript-path-link:hover {
    color: var(--color-syntax-link);
    text-decoration: underline;
}

/* Search term highlighting */
.search-highlight {
    background: var(--color-syntax-highlight-bg, #4a3800);
    color: var(--color-syntax-highlight-text, #ffd700);
    padding: 0 2px;
    border-radius: 2px;
}

/* Pagination controls */
.transcript-pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.transcript-page-btn,
.transcript-list-page-btn {
    color: var(--color-syntax-keyword);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.transcript-page-btn:hover,
.transcript-list-page-btn:hover {
    color: var(--color-syntax-link);
    text-decoration: underline;
}

.transcript-page-info {
    color: var(--color-text-dim);
    font-size: 0.85rem;
}

/* Line numbers */
.line-num {
    color: var(--color-text-dim);
    font-size: 0.75rem;
    margin-right: 0.5rem;
    opacity: 0.5;
    user-select: none;
}

/* Target line from search result - subtle marker */
.search-highlight-line {
    border-left: 3px solid var(--color-syntax-keyword);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}
