/*
 * VIP Chart Terminal — Empty / loading / error state styles.
 * Paired with js/vip-chart-terminal-states.js.
 */

.td-vip-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 18px;
    color: var(--td-vip-text-muted, #94a3b8);
    text-align: center;
    min-height: 140px;
}

.td-vip-state-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--td-vip-text-subtle, #64748b);
    flex: 0 0 auto;
}

.td-vip-state--loading .td-vip-state-icon { color: var(--td-vip-accent, #4f8dff); }
.td-vip-state--error .td-vip-state-icon { color: var(--td-vip-danger, #ef4444); }

.td-vip-state-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.td-vip-state-spinner {
    animation: tdVipStateSpin 1s linear infinite;
    transform-origin: 12px 12px;
}

@keyframes tdVipStateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Audit phase #17 P2: respect prefers-reduced-motion fully — stop the
   spin entirely and instead fade in/out the icon to indicate progress.
   A 2s spin is still motion that some vestibular-sensitive users find
   uncomfortable. */
@media (prefers-reduced-motion: reduce) {
    .td-vip-state-spinner {
        animation: tdVipStatePulse 1.4s ease-in-out infinite;
    }
    @keyframes tdVipStatePulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }
}

.td-vip-state-title {
    margin: 0;
    color: var(--td-vip-text-primary, #e2e8f0);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.td-vip-state-body {
    margin: 0;
    color: var(--td-vip-text-muted, #94a3b8);
    font-size: 12px;
    line-height: 1.55;
    max-width: 320px;
}

.td-vip-state-action {
    margin-top: 6px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 12px;
}

/* Tighter variant for narrow side panels. */
.td-vip-side-panel .td-vip-state {
    min-height: 100px;
    padding: 18px 12px;
}
