/* ═══════════════════════════════════════════════════════════════
   Bandeja de reportes — pulido de tarjetas y lista (7.2.23)
   Paridad estética del original MolochRM (moloch-reports.css):
   silueta/movimiento del original sobre superficies del skin táctico.
   ═══════════════════════════════════════════════════════════════ */

.ctq-reports-grid .ctq-report-card {
    border: 1px solid rgba(0, 243, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #101820 0%, #0b1118 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}

.ctq-reports-grid .ctq-report-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 243, 255, 0.08);
}

.ctq-reports-grid .ctq-report-card .ctq-card-media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #16202b, #0d141c);
}

.ctq-reports-grid .ctq-report-card .ctq-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ctq-reports-grid .ctq-report-card:hover .ctq-card-media img {
    transform: scale(1.06);
}

.ctq-reports-grid .ctq-report-card .ctq-card-media-ph {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: rgba(0, 243, 255, 0.25);
}

.ctq-reports-grid .ctq-report-card .card-title a {
    color: #e6fbff;
    transition: color 0.2s;
}

.ctq-reports-grid .ctq-report-card .card-title a:hover {
    color: #00f3ff;
}

.ctq-reports-grid .ctq-report-card .card-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.12);
    color: #9fb3c0;
}

/* Animación de entrada en cascada (paridad fadeInUp del original) */
@keyframes ctq-fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ctq-reports-grid > .col {
    animation: ctq-fade-in-up 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.ctq-reports-grid > .col:nth-child(1) { animation-delay: 0.05s; }
.ctq-reports-grid > .col:nth-child(2) { animation-delay: 0.1s; }
.ctq-reports-grid > .col:nth-child(3) { animation-delay: 0.15s; }
.ctq-reports-grid > .col:nth-child(4) { animation-delay: 0.2s; }
.ctq-reports-grid > .col:nth-child(5) { animation-delay: 0.25s; }
.ctq-reports-grid > .col:nth-child(6) { animation-delay: 0.3s; }

/* ── Vista LISTA (paridad .moloch-reports-grid.list-view) ── */
.ctq-reports-grid.list-view {
    display: flex;
    flex-direction: column;
}

.ctq-reports-grid.list-view > .col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
}

.ctq-reports-grid.list-view .ctq-report-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.ctq-reports-grid.list-view .ctq-report-card .ctq-card-media {
    flex: 0 0 200px;
    height: auto;
    min-height: 140px;
}

.ctq-reports-grid.list-view .ctq-report-card > .card-body,
.ctq-reports-grid.list-view .ctq-report-card > .card-footer {
    flex: 1 1 auto;
}

@media (max-width: 576px) {
    .ctq-reports-grid.list-view .ctq-report-card { flex-direction: column; }
    .ctq-reports-grid.list-view .ctq-report-card .ctq-card-media { flex-basis: auto; height: 150px; }
}

/* ── Tira de evidencias sobre la portada (7.2.24) ── */
.ctq-card-media-strip {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ctq-card-media { position: relative; }

.ctq-ev-chip {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 14, 0.82);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #00f3ff;
    font-size: 1rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
}

.ctq-ev-chip:hover { transform: scale(1.12); border-color: #00f3ff; }

.ctq-ev-chip img { width: 100%; height: 100%; object-fit: cover; }

.ctq-ev-more {
    align-self: center;
    color: #00f3ff;
    font-family: var(--hud-mono, monospace);
    font-size: 0.75rem;
    background: rgba(5, 10, 14, 0.82);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 8px;
    padding: 2px 6px;
}

/* ── a11y 7.2.63 (barrido impeccable 2026-10-05): foco visible + movimiento reducido ── */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
