/* ==========================================================================
   CV23 / CV24 - SYSTEM LOGS (TERMINAL ANIMATION — Big Tech Style)
   Linear.app / Apple-grade: fluido, rápido, sem pirofagia
   ========================================================================== */

.cv23-logs-container {
    position: relative;
    height: 80px;
    width: 100%;
    max-width: 480px;
    margin: -60px auto 0 auto; /* Subiu os cards aprox 2cm e puxa os elementos de baixo */
    font-family: 'Inter', 'Roboto', sans-serif;
    z-index: 10;
}

.cv23-log-card {
    background-color: rgba(22, 27, 40, 0.94);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    
    /* 2.0s por card — mais tempo pra ler */
    animation: cv23-cascading-log 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sequência mais cadenciada: steps de 2.0s */
.cv23-log-card:nth-child(1) { animation-delay: 0s; }
.cv23-log-card:nth-child(2) { animation-delay: 2.0s; }
.cv23-log-card:nth-child(3) { animation-delay: 4.0s; }
.cv23-log-card:nth-child(4) { animation-delay: 6.0s; }
/* Último card: permanece visível */
.cv23-log-card:nth-child(5) {
    animation-delay: 8.0s;
    animation-name: cv23-cascading-log-final;
    animation-duration: 2.0s;
}

/* Checkmarks sincronizados */
.cv23-log-card:nth-child(1) .cv23-log-icon svg { animation-delay: 0s; }
.cv23-log-card:nth-child(2) .cv23-log-icon svg { animation-delay: 2.0s; }
.cv23-log-card:nth-child(3) .cv23-log-icon svg { animation-delay: 4.0s; }
.cv23-log-card:nth-child(4) .cv23-log-icon svg { animation-delay: 6.0s; }
.cv23-log-card:nth-child(5) .cv23-log-icon svg { animation-delay: 8.0s; }

/* Card entra suave, fica visível, sai suave para cima — sem blur, sem scale agressivo */
@keyframes cv23-cascading-log {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    18% {
        opacity: 1;
        transform: translateY(0);
    }
    78% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* Último card: entra igual mas permanece visível */
@keyframes cv23-cascading-log-final {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    18% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out do último card quando o teste vai começar (acionado por JS) */
.cv23-log-card.cv23-fade-out {
    animation: cv23-final-exit 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards !important;
}

@keyframes cv23-final-exit {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}

.cv23-log-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cv23-log-badge {
    color: var(--accent-green, #4ADE80);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: monospace;
    opacity: 0.85;
}

.cv23-log-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    line-height: 1.25;
}

.cv23-log-subtitle {
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.cv23-log-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.08);
    flex-shrink: 0;
    margin-left: 12px;
}

.cv23-log-icon svg {
    color: #4ADE80;
    opacity: 0;
    transform: scale(0.5);
    animation: cv23-check-appear 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cv23-check-appear {
    0%   { opacity: 0; transform: scale(0.4); }
    45%  { opacity: 0; transform: scale(0.4); }
    60%  { opacity: 1; transform: scale(1.15); }
    75%  { opacity: 1; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Provedor info */
.cv23-provider-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.cv23-provider-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
    background: #FFF;
    padding: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.cv23-provider-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.15);
}

.cv23-provider-name {
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 500;
}
