/* ============================================
   HUMAN SCALE & STRESS MODE
   Human impact metrics, stress/surveillance modes
   ============================================ */

/* Human Scale Metrics */
.human-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.human-scale__number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
}

.human-scale__context {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.human-scale__impact {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

/* Skeleton Loading */
.skeleton-text,
.skeleton-bar {
    background: linear-gradient(
        90deg,
        var(--color-bg-elevated) 25%,
        var(--color-bg) 50%,
        var(--color-bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-bar {
    height: 20px;
    margin-bottom: var(--space-2);
}

/* Stress Mode */
.stress-mode {
    /* Reduce animations */
    --duration-fast: 0.1s;
    --duration-normal: 0.2s;
    
    /* Increase contrast */
    --color-bg: #000000;
    --color-bg-elevated: #111111;
    --color-border: #333333;
}

.stress-mode .btn,
.stress-mode button,
.stress-mode .entity-card__action-btn {
    min-height: 48px;
    padding: var(--space-3);
}

.stress-mode .entity-card__row {
    padding: var(--space-2) 0;
}

.stress-mode .filter-chip,
.stress-mode .status-pill {
    padding: var(--space-2) var(--space-3);
}

.stress-mode .modal__content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

/* Surveillance Mode */
.surveillance-mode {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-accent: #ef4444;
}

.surveillance-mode .header {
    background: #111111;
}

.surveillance-mode .sidebar {
    background: #0a0a0a;
}

.surveillance-mode .entity-card {
    border-left: 3px solid var(--color-accent);
}

/* Timeline Chart */
.timeline-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.timeline-chart__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-border);
}

.timeline-chart__item:last-child {
    border-bottom: none;
}

.timeline-chart__time {
    width: 60px;
    font-size: 10px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.timeline-chart__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.timeline-chart__event {
    flex: 1;
    font-size: var(--text-xs);
}

/* Heatmap */
.heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.heatmap__cell {
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--color-bg);
    position: relative;
}

.heatmap__cell--l1 { background: rgba(34, 197, 94, 0.2); }
.heatmap__cell--l2 { background: rgba(34, 197, 94, 0.4); }
.heatmap__cell--l3 { background: rgba(245, 158, 11, 0.4); }
.heatmap__cell--l4 { background: rgba(245, 158, 11, 0.6); }
.heatmap__cell--l5 { background: rgba(220, 38, 38, 0.6); }

.heatmap__cell:hover::after {
    content: attr(data-value);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    white-space: nowrap;
    z-index: 1;
}
