/* ============================================
   SUPPLY CHAIN MAP V2 - ECHO REDESIGN
   Design Principles:
   - Progressive disclosure (click to reveal)
   - Actionable intelligence (what can you DO?)
   - Data liberation (patterns, connections, anomalies)
   - Accessibility first (WCAG 2.1 AA)
   - Mobile-crisis design (touch-friendly, low-contrast dark)
   ============================================ */

/* ============================================
   LAYOUT OVERRIDES
   ============================================ */

/* Header - More informative, less cluttered */
.header {
    height: 52px;
    padding: 0 var(--space-3);
    gap: var(--space-2);
}

.header__brand {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
}

.header__logo {
    font-size: 24px;
}

.header__title {
    font-size: var(--text-base);
    font-weight: 700;
}

.header__subtitle {
    display: none;
}

@media (min-width: 1024px) {
    .header__subtitle {
        display: block;
    }
}

/* Header Tabs - Navigation in header */
.header__tabs {
    display: flex;
    gap: var(--space-1);
    margin-left: auto;
}

.header__tabs .view-tab {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
}

@media (max-width: 768px) {
    .header__tabs {
        display: none;
    }
}

/* View Tabs (below header or in header) */
.view-tabs {
    display: flex;
    gap: 0;
    background: var(--color-bg-elevated);
    padding: var(--space-1);
    border-radius: var(--radius-md);
}

/* Intel Feed - Fix scroll */
.intelligence-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 60vh;
    overflow-y: auto;
    padding-right: var(--space-1);
}

.intelligence-feed::-webkit-scrollbar {
    width: 6px;
}

.intelligence-feed::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.intelligence-feed::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-sm);
}

.intelligence-feed::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-size: var(--text-xs);
}

.status-pill--danger {
    background: rgba(220, 38, 38, 0.15);
    color: var(--color-danger);
}

.status-pill--warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.status-pill--success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.status-pill__count {
    font-weight: 700;
    margin-left: 2px;
}

/* Connection status */
.connection-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.connection-dot--offline {
    background: var(--color-danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
