/* ============================================================
   SKYN3T Carousel · Mock: Forensic Terminal
   ------------------------------------------------------------
   Green-on-black "FORENSIC TERMINAL" mock that typewrites a
   scripted session (analyze / ocr / extract-entities), with a
   scanline overlay and a blinking cursor.
   Scoped under .skc-term-mock.
   ============================================================ */

.skc-term-mock {
    padding: 0;
    background: #000;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.skc-term-mock * { box-sizing: border-box; }

/* Header: traffic dots + title + connected badge */
.skc-term-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(34, 197, 94, 0.18);
    flex-shrink: 0;
}

.skc-term-dots { display: flex; gap: 4px; }
.skc-term-dots span {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
}
.skc-term-dots .r { background: rgba(239, 68, 68, 0.7); }
.skc-term-dots .y { background: rgba(245, 158, 11, 0.7); }
.skc-term-dots .g { background: rgba(34, 197, 94, 0.7); }

.skc-term-ttl {
    font-size: 9.5px;
    color: #22c55e;
    letter-spacing: 0.08em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skc-term-conn {
    font-size: 8.5px;
    color: #22c55e;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
}

/* Body: terminal lines + scanline overlay */
.skc-term-body {
    padding: 10px 12px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.55;
    color: #22c55e;
    text-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.06), transparent 70%),
        #000;
    position: relative;
    flex: 1;
}

.skc-term-ln {
    white-space: pre-wrap;
    word-break: break-word;
}

.skc-term-ln.is-dim { color: rgba(34, 197, 94, 0.6); }
.skc-term-ln.is-hit {
    color: #86efac;
    text-shadow: 0 0 8px rgba(134, 239, 172, 0.5);
}
.skc-term-ln.is-warn {
    color: #fbbf24;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.skc-term-caret {
    display: inline-block;
    width: 7px;
    height: 11px;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    margin-left: 3px;
    vertical-align: -1px;
    animation: skcTermBlink 1s steps(2) infinite;
}

@keyframes skcTermBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scanline overlay */
.skc-term-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(34, 197, 94, 0.04) 0,
        rgba(34, 197, 94, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Moving sweep */
.skc-term-mock::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 18%;
    top: -20%;
    background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.08), transparent);
    animation: skcTermScanSweep 4s linear infinite;
    pointer-events: none;
}

@keyframes skcTermScanSweep {
    0% { top: -20%; }
    100% { top: 110%; }
}

@media (prefers-reduced-motion: reduce) {
    .skc-term-caret,
    .skc-term-mock::after { animation: none; }
}
