/* ============================
   PV AULA NAVIGATOR - STYLE
   ============================ */

/* BARRA DE LEITURA NO TOPO */
#pvan-reading-bar {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #c89b4a 0%, #e8c87f 50%, #c89b4a 100%);
    z-index: 99999;
    box-shadow: 0 2px 12px rgba(200,155,74,0.6);
    transition: width 0.1s ease-out;
}

/* INFO FLUTUANTE */
#pvan-floating-info {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(44,24,16,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #c89b4a;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
#pvan-floating-info.pvan-visible {
    opacity: 1;
    transform: translateY(0);
}
#pvan-floating-info .pvan-fi-icon { font-size: 18px; }
#pvan-floating-info .pvan-fi-text strong { color: #e8c87f; }
#pvan-floating-info .pvan-fi-percent {
    background: #c89b4a;
    color: #2c1810;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    min-width: 42px;
    text-align: center;
}

/* WRAPPER NAV (final do conteudo) */
.pvan-nav-wrapper {
    margin: 48px 0 24px;
    padding: 28px;
    background: linear-gradient(135deg, #faf6ee 0%, #f0e5d0 100%);
    border-radius: 16px;
    border: 1px solid rgba(200,155,74,0.3);
    box-shadow: 0 4px 20px rgba(44,24,16,0.08);
}

/* PROGRESSO DO CURSO */
.pvan-progress-aula {
    margin-bottom: 24px;
    text-align: center;
}
.pvan-prog-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #c89b4a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.pvan-prog-bar {
    width: 100%;
    height: 10px;
    background: rgba(44,24,16,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.pvan-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #c89b4a 0%, #e8c87f 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(200,155,74,0.5);
}
.pvan-prog-text {
    font-size: 14px;
    color: #2c1810;
    font-weight: 600;
}
.pvan-prog-text strong {
    color: #c89b4a;
    font-size: 16px;
}

/* BOTOES */
.pvan-nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pvan-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    color: #2c1810;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44,24,16,0.08);
    min-height: 80px;
}
.pvan-btn:hover {
    background: #2c1810;
    color: #fff;
    border-color: #c89b4a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,24,16,0.25);
    text-decoration: none;
}
.pvan-btn:hover .pvan-btn-label { color: #c89b4a; }
.pvan-btn:hover .pvan-arrow { transform: scale(1.3); color: #c89b4a; }

.pvan-arrow {
    font-size: 28px;
    font-weight: 700;
    color: #c89b4a;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.pvan-btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.pvan-btn-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8a6a3a;
    transition: color 0.3s;
}
.pvan-btn-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pvan-btn-prev { text-align: left; }
.pvan-btn-next { text-align: right; flex-direction: row-reverse; }
.pvan-btn-next .pvan-btn-content { align-items: flex-end; }

.pvan-btn-disabled {
    background: rgba(44,24,16,0.05);
    color: #8a6a3a;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}
.pvan-btn-final {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    opacity: 1;
    border-color: #10b981;
}
.pvan-btn-final .pvan-btn-label { color: rgba(255,255,255,0.9); }

/* MOBILE */
@media (max-width: 768px) {
    .pvan-nav-wrapper {
        padding: 20px 16px;
        margin: 32px 0 16px;
    }
    .pvan-nav-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pvan-btn {
        padding: 14px 16px;
        min-height: 70px;
    }
    .pvan-btn-title { font-size: 13px; }
    .pvan-arrow { font-size: 22px; }

    #pvan-floating-info {
        bottom: 16px;
        left: 16px;
        right: 16px;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }
}