/* ═══════════════════════════════════════════════════
   VCA — Presentation Mode (PowerPoint-style)
   ═══════════════════════════════════════════════════ */

.vca-pres-shell {
    position: fixed;
    inset: 0;
    background: #080F1C;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
    user-select: none;
    z-index: 9999;
    font-family: 'Manrope', sans-serif;
}

/* ── Barra de progresso ─────────────────────────── */
.vca-pres-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.08);
    z-index: 10;
}
.vca-pres-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D7B07A, #89D8FF);
    transition: width .35s ease;
}

/* ── Topbar ─────────────────────────────────────── */
.vca-pres-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 4px;
    background: rgba(8,15,28,.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(215,176,122,.08);
    min-height: 48px;
    z-index: 5;
}
.vca-pres-topbar-left,
.vca-pres-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vca-pres-title-small {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(245,239,228,.5);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vca-pres-counter {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(245,239,228,.45);
    letter-spacing: .04em;
}

/* ── Stage (área do slide) ───────────────────────── */
.vca-pres-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    overflow: hidden;
}

.vca-pres-slide {
    width: 100%;
    max-width: 1000px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(215,176,122,.2) transparent;
}

/* ── Cabeçalho ───────────────────────────────────── */
.vca-pres-slide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(215,176,122,.15);
    padding-bottom: 10px;
}
.vca-pres-emoji {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.vca-pres-slide-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #F5EFE4;
    margin: 0;
    line-height: 1.2;
}

/* ── Body: normal e split (imagem + texto) ────────── */
.vca-pres-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.vca-pres-body--split {
    flex-direction: row;
    align-items: flex-start;
}
.vca-pres-image-wrap {
    flex: 0 0 45%;
    max-width: 45%;
    border-radius: 12px;
    overflow: hidden;
    background: #0B1525;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 420px;
}
.vca-pres-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;   /* sem corte — imagem inteira */
    display: block;
}
.vca-pres-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* ── Texto do slide ──────────────────────────────── */
.vca-pres-body-text {
    font-size: clamp(.9rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    color: rgba(245,239,228,.88);
}
.vca-pres-body-text h2,
.vca-pres-body-text h3 {
    color: #D7B07A;
    margin: 8px 0 4px;
}
.vca-pres-body-text ul,
.vca-pres-body-text ol {
    padding-left: 1.2em;
}
.vca-pres-body-text li {
    margin-bottom: 4px;
}
.vca-pres-body-text strong { color: #F0D7AC; }
.vca-pres-body-text code {
    background: rgba(137,216,255,.1);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .88em;
    color: #89D8FF;
}

/* ── Código ──────────────────────────────────────── */
.vca-pres-code-wrap {
    background: #0B1525;
    border: 1px solid rgba(215,176,122,.12);
    border-radius: 10px;
    overflow: hidden;
}
.vca-pres-code-lang {
    background: rgba(255,255,255,.05);
    padding: 4px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: rgba(245,239,228,.4);
}
.vca-pres-code {
    margin: 0;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(.75rem, 1.4vw, .9rem);
    line-height: 1.6;
    color: #ABB2BF;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 240px;
    overflow-y: auto;
}

/* ── Vídeo ───────────────────────────────────────── */
.vca-pres-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.vca-pres-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Áudio ───────────────────────────────────────── */
.vca-pres-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11,21,37,.8);
    border: 1px solid rgba(215,176,122,.12);
    border-radius: 10px;
    padding: 8px 12px;
}

/* ── Notas do narrador ───────────────────────────── */
.vca-pres-notes {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 8px;
    font-size: .78rem;
    color: rgba(245,239,228,.4);
    font-style: italic;
    line-height: 1.5;
}

/* ── Navegação inferior ──────────────────────────── */
.vca-pres-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 24px 14px;
    background: rgba(8,15,28,.8);
    border-top: 1px solid rgba(215,176,122,.08);
}
.vca-pres-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 60vw;
}
.vca-pres-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245,239,228,.2);
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.vca-pres-dot:hover { background: rgba(245,239,228,.5); }
.vca-pres-dot--active {
    background: #D7B07A;
    transform: scale(1.35);
}

/* ── Loading state ───────────────────────────────── */
.vca-pres-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Hint de teclado ─────────────────────────────── */
.vca-pres-key-hint {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8,15,28,.85);
    border: 1px solid rgba(215,176,122,.18);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: .72rem;
    color: rgba(245,239,228,.5);
    pointer-events: none;
    animation: vcaFadeOut 1s 3s ease forwards;
    white-space: nowrap;
}
@keyframes vcaFadeOut {
    to { opacity: 0; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .vca-pres-body--split {
        flex-direction: column;
    }
    .vca-pres-image-wrap {
        flex: unset;
        max-width: 100%;
        max-height: 220px;
    }
    .vca-pres-slide-title {
        font-size: 1.3rem;
    }
    .vca-pres-dots {
        max-width: 50vw;
    }
}
