/* ============================================================================
   כרטיס הקריאה, במקום שורת הקובץ, עד שתשובת הקריאה חוזרת.

   **הרשימה אומרת מה נקרא, בלי סימוני "בוצע"** (החלטת בעלים, 5א): הקריאה
   היא בקשה אחת, ואין לנו ידיעה באיזה שלב היא. הנקודות פועמות יחד, ולא
   בזו אחר זו, כדי לא לרמוז על התקדמות שאיננה.
   ============================================================================ */

.exp-inv-reading {
    display: flex;
    gap: 14px;
    border: 1px solid #d6e0ee;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f1f5f9;
    animation: expInvSlideIn .25s ease-out both;
}

.exp-inv-reading-doc {
    position: relative;
    width: 58px;
    height: 76px;
    border-radius: 6px;
    border: 1px solid #d6e0ee;
    background: #fff;
    padding: 8px 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    overflow: hidden;
}

.exp-inv-reading-doc i {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #cbd5e1;
}

.exp-inv-reading-doc i:nth-child(1) { width: 55%; background: #2f4f7f; opacity: .8; }
.exp-inv-reading-doc i:nth-child(2) { width: 100%; }
.exp-inv-reading-doc i:nth-child(3) { width: 85%; }
.exp-inv-reading-doc i:nth-child(4) { width: 70%; }
.exp-inv-reading-doc i:nth-child(5) { width: 95%; }
.exp-inv-reading-doc i:nth-child(6) { width: 60%; }
.exp-inv-reading-doc i:nth-child(7) { width: 40%; height: 5px; margin-top: auto; background: #2f4f7f; opacity: .8; }

.exp-inv-reading-doc span {
    position: absolute;
    left: 0;
    right: 0;
    height: 18%;
    background: linear-gradient(180deg, rgba(47, 79, 127, 0) 0%, rgba(47, 79, 127, .22) 85%, #2f4f7f 100%);
    animation: expInvScan 1.5s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

.exp-inv-reading-main {
    flex: 1;
    min-width: 0;
}

.exp-inv-reading-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.exp-inv-reading-title svg {
    color: #2f4f7f;
    flex-shrink: 0;
    animation: expInvTwinkle 1.4s ease-in-out infinite;
}

.exp-inv-reading-file {
    font-size: 11.5px;
    color: #5a6779;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-inv-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 12px;
    margin-top: 8px;
    font-size: 11.5px;
    color: #475569;
}

.exp-inv-steps-lead {
    color: #5a6779;
}

.exp-inv-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.exp-inv-step i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
    animation: expInvPulse 1.4s ease-in-out infinite;
}

.exp-inv-reading-track {
    height: 3px;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 9px;
}

.exp-inv-reading-track span {
    display: block;
    width: 30%;
    height: 100%;
    border-radius: 2px;
    background: #2f4f7f;
    animation: expReadBar 1.35s linear infinite;
}

.exp-inv-stop {
    align-self: flex-start;
}


@keyframes expInvScan {
    0% { top: -18%; }
    100% { top: 100%; }
}

@keyframes expInvTwinkle {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.12) rotate(12deg); }
}

@keyframes expInvPulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .exp-inv-reading,
    .exp-inv-reading-doc span,
    .exp-inv-reading-title svg,
    .exp-inv-step i,
    .exp-inv-reading-track span {
        animation: none;
    }

    /* מסלול מלא נקרא כ"הסתיים" בזמן שעוד קוראים. בלי תנועה אין מסלול,
       והכותרת "קוראים" אומרת את זה לבד. */
    .exp-inv-reading-track {
        display: none;
    }
}
