﻿/* ============================================================
   transcript.css — EW2027 conference-call analysis + transcript
   ============================================================ */

.cc-subject {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin: 6px 0 4px;
}

.cc-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* trend arrow colors (shared) */
.cc-arrow.tr-up {
    color: var(--ew-green, #0F8A3B);
}

.cc-arrow.tr-down {
    color: var(--ew-red, #e13232);
}

.cc-arrow.tr-flat {
    color: var(--ew-gold, #c9a24b);
}

.tr-up {
    color: var(--ew-green, #0F8A3B);
}

.tr-down {
    color: var(--ew-red, #e13232);
}

.tr-flat {
    color: var(--ew-gold, #c9a24b);
}

/* ---------- AI analysis card ---------- */
.cc-ai-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 22px;
}

    .cc-ai-wrap h2 {
        font-size: 18px;
        margin: 0 0 12px;
        color: var(--text);
    }

/* ---------- blackout helmet effect (dark mode only) ---------- */
@media (prefers-color-scheme: dark) {
    .cc-ai-wrap {
        position: relative;
        overflow: hidden;
        border: 1px solid #2a2a2a;
        /* deep base + radial key light from top, linear falloff toward bottom */
        background: radial-gradient(120% 90% at 50% -10%, rgba(112, 149, 247, 0.16) 0%, rgba(112, 149, 247, 0.05) 32%, transparent 60%), linear-gradient(180deg, #232326 0%, #171719 55%, #101012 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -18px 40px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45);
    }
        /* glossy sheen sweeping across the top — the "visor" highlight */
        .cc-ai-wrap::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(157deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 18%, transparent 42%);
            mix-blend-mode: screen;
        }
        /* keep content above the overlays */
        .cc-ai-wrap > * {
            position: relative;
            z-index: 1;
        }
        /* the internal divider lines read better lighter on the dark helmet */
        .cc-ai-wrap .cc-ai-strip {
            border-top-color: rgba(255, 255, 255, 0.08);
            border-bottom-color: rgba(255, 255, 255, 0.08);
        }

        .cc-ai-wrap .cc-ai-trend {
            background: rgba(255, 255, 255, 0.04);
        }
    .cc-summary {
        background: var(--ew-flat);
    }
}

[data-theme="dark"] .cc-ai-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    background: radial-gradient(120% 90% at 50% -10%, rgba(112, 149, 247, 0.16) 0%, rgba(112, 149, 247, 0.05) 32%, transparent 60%), linear-gradient(180deg, #232326 0%, #171719 55%, #101012 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -18px 40px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45);
}

    [data-theme="dark"] .cc-ai-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(157deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 18%, transparent 42%);
        mix-blend-mode: screen;
    }

    [data-theme="dark"] .cc-ai-wrap > * {
        position: relative;
        z-index: 1;
    }

    [data-theme="dark"] .cc-ai-wrap .cc-ai-strip {
        border-top-color: rgba(255, 255, 255, 0.08);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="dark"] .cc-ai-wrap .cc-ai-trend {
        background: rgba(255, 255, 255, 0.04);
    }

    [data-theme="dark"] .cc-summary {
        background: var(--ew-flat);
    }

/* locked state */
.cc-ai-locked {
    text-align: center;
    padding: 32px 22px;
}

    .cc-ai-locked .ccsum {
        display: inline-block;
        margin-top: 6px;
        color: var(--accent);
        font-weight: 600;
        text-decoration: none;
    }

        .cc-ai-locked .ccsum:hover {
            text-decoration: underline;
        }

/* momentum */
.cc-ai-score-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.cc-ai-momentum {
    text-align: center;
}

.cc-ai-score {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.cc-ai-score-lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* direction / confidence strip */
.cc-ai-strip {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.cc-ai-strip-item {
    text-align: center;
}

.cc-ai-strip-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.cc-ai-strip-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

    .cc-ai-strip-val .cc-arrow {
        margin-right: 4px;
    }

/* five trend tiles */
.cc-ai-trends {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.cc-ai-trend {
    background: var(--surface-alt);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.cc-ai-trend-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cc-ai-trend-val {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

    .cc-ai-trend-val .cc-arrow {
        font-size: 20px;
    }

.cc-trend-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 640px) {
    .cc-ai-trends {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- manual (human) summary ---------- */
.cc-summary {
    margin-bottom: 22px;
    border-radius: 14px;
    padding: 20px 22px;
    background: var(--ew-color);
}

    .cc-summary h2 {
        font-size: 18px;
        color: var(--text);
        margin: 0 0 10px;
    }

.cc-summary-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
}

    .cc-summary-text p {
        margin: 0 0 0.8em;
    }

/* ---------- AI summary ---------- */
.cc-ai-summary {
    margin-bottom: 22px;
}

    .cc-ai-summary h2 {
        font-size: 18px;
        color: var(--text);
        margin: 0 0 10px;
    }

.cc-ai-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
}

    .cc-ai-text p {
        margin: 0 0 0.8em;
    }

/* ---------- collapsible sections ---------- */
.cc-ai-sections {
    margin-bottom: 26px;
}

.cc-ai-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.cc-ai-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

    .cc-ai-toggle:hover {
        background: var(--surface-alt);
    }

.cc-ai-pm {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.cc-ai-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease;
}

.cc-ai-section.open .cc-ai-body {
    max-height: 1500px;
}

.cc-ai-list {
    margin: 0;
    padding: 6px 20px 14px 38px;
}

    .cc-ai-list li {
        font-size: 14px;
        line-height: 1.55;
        color: var(--text);
        margin-bottom: 6px;
    }

/* ---------- transcript ---------- */
.cc-transcript {
    margin-top: 8px;
}

.cc-speaker-block {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

    .cc-speaker-block:last-child {
        border-bottom: none;
    }

.cc-speaker-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.cc-speaker-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cc-speaker-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.cc-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
}
