/* =========================================
   FEATURE 18: ANALYTICS TERMINAL (Full Width Strip)
   ========================================= */

.c-container {
    background: var(--panel-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 25px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;

    /* FULL WIDTH */
    width: 100%;
    margin-bottom: 25px;
}

.c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.c-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.c-meta-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* TIMER */
.c-timer {
    font-family: 'Segoe UI', sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid transparent;
    color: var(--text-muted);
    position: relative;
    cursor: help;
    transition: color 0.3s, border-color 0.3s;
}

.c-timer.fresh {
    color: var(--val-good);
    border-color: rgba(74, 222, 128, 0.3);
}

.c-timer.aging {
    color: var(--val-warn);
    border-color: rgba(245, 158, 11, 0.3);
}

.c-timer.stale {
    color: var(--val-warn);
    border-color: rgba(245, 158, 11, 0.3);
}

/* STATUS LED */
.c-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.c-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #334155;
}

.c-status[data-status="ready"] .c-led {
    background: var(--val-good);
    box-shadow: 0 0 6px var(--val-good);
}

.c-status[data-status="pending"] .c-led {
    background: var(--val-warn);
    box-shadow: 0 0 6px var(--val-warn);
}

.c-status[data-status="calculating"] {
    color: var(--brand-yellow);
}

/* --- NEW: SINGLE ROW LAYOUT --- */
.terminal-strip {
    display: flex;
    gap: 15px;
    align-items: stretch;
    width: 100%;
    overflow-x: auto;
    /* Allows scrolling on small screens */
    padding-bottom: 5px;
    /* Space for scrollbar */
}

/* HERO CARDS & CHIPS (Standardized Height) */
.c-hero,
.c-chip {
    flex: 1 0 auto;
    /* Grow evenly */
    min-width: 120px;
    /* Prevent crushing */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Heroes darker bg to stand out slightly */
.c-hero {
    background: rgba(0, 0, 0, 0.25);
    min-width: 140px;
}

/* TEXT SIZES */
.c-label-lg,
.c-label-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 700;
}

.c-value-lg,
.c-value-sm {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.c-value-lg.two-lines {
    font-size: 1rem;
}

.c-sub-gray {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.c-value-lg.pred-high {
    color: var(--val-good);
}

.c-value-lg.pred-med {
    color: var(--brand-yellow);
}

.c-value-lg.pred-low {
    color: var(--val-cold);
}

/* PROBABILITY ROWS */
.c-prob-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 0;
}

.c-prob-lbl {
    color: var(--brand-yellow);
    font-weight: 700;
    width: 20px;
}

/* INFO ICON */
.c-info-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.c-info-icon:hover {
    background: var(--brand-yellow);
    color: #000;
}

/* TOOLTIP */
.c-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    width: 220px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: 0.2s;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
}

.c-info-icon:hover .c-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.c-timer:hover .c-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* FIX: LEFT COLUMN TOOLTIPS
   This forces tooltips in the left part of the strip (Heroes) to align left 
   so they don't get cut off by the screen edge. */
.c-hero .c-tooltip-content {
    right: auto;
    left: 0;
}

/* --- NEON PULSE EFFECT --- */
@keyframes fxNeonContainer {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        border-color: var(--glass-border);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
        border-color: var(--brand-yellow);
    }

    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        border-color: var(--glass-border);
    }
}

.fx-neon-pulse {
    animation: fxNeonContainer 0.6s ease-out;
}

@keyframes txtFlash {
    0% {
        color: #fff;
        text-shadow: none;
        transform: scale(1);
    }

    50% {
        color: var(--brand-yellow);
        text-shadow: 0 0 10px var(--brand-yellow);
        transform: scale(1.1);
    }

    100% {
        color: #fff;
        text-shadow: none;
        transform: scale(1);
    }
}

.txt-flash-anim {
    animation: txtFlash 0.5s ease-out;
}

/* STALE STATE (Dimmed) */
.stale-active .c-chip:not(#chip-base),
.stale-active .c-hero:not(#hero-forecast) {
    opacity: 0.5;
    filter: grayscale(0.8);
    transition: all 0.3s;
}