/* ==========================================================================
   INOCUA SPACE SYSTEMS - TELEMETRY & INTERACTIVE HUD COMPONENT STYLES
   ========================================================================== */

/* Telemetry Dashboard Layout */
.telemetry-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .telemetry-dashboard {
        grid-template-columns: 2.2fr 1fr;
    }
}

.sensor-rack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sensor-card {
    background: #090E17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.sensor-card.nominal {
    border-top: 2px solid var(--color-emerald);
}

.sensor-card.active {
    border-top: 2px solid var(--color-cyan);
}

.sensor-card.warning {
    border-top: 2px solid var(--color-amber);
}

.sensor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sensor-val {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.sensor-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.sensor-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.sensor-bar-fill {
    height: 100%;
    background: var(--color-cyan);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.sensor-bar-fill.emerald { background: var(--color-emerald); }
.sensor-bar-fill.amber { background: var(--color-amber); }

/* Live Telemetry Log Feed */
.telemetry-log-feed {
    background: #06090F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-timestamp {
    color: var(--color-cyan);
    flex-shrink: 0;
}

.log-tag {
    color: var(--color-emerald);
    flex-shrink: 0;
}

.log-msg {
    color: #CBD5E1;
}

/* Filter Bar for Research & Solutions */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    font-weight: 600;
}

/* Research Article Cards */
.research-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.research-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.research-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.research-id {
    color: var(--color-cyan);
    font-weight: 600;
}

.research-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.research-abstract {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* Spec Tables */
.spec-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #090E17;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.spec-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cyan);
    border-bottom: 1px solid var(--border-color);
}

.spec-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #CBD5E1;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Mission Timeline Cards */
.timeline-track {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(0, 210, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 6px);
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-cyan);
    margin-bottom: 0.25rem;
}
