/* WhaleSonar Timeline Feed & Summary CSS */

.timeline-feed-wrapper {
    position: relative;
    padding: 10px 0 30px 10px;
}

/* 垂直时间轴脊椎线 */
.timeline-feed-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: #2b3139;
    opacity: 0.8;
    z-index: 1;
}

/* 时间轴单个项目 */
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 55px;
    z-index: 2;
}

/* 中性时间轴节点 */
.timeline-node {
    position: absolute;
    left: 21px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #161a1e;
    border: 2px solid #475569;
    box-shadow: none;
    z-index: 3;
}

.timeline-node.node-sig1,
.timeline-node.node-sig2,
.timeline-node.node-sig3 {
    border-color: #475569;
    box-shadow: none;
    animation: none;
}

/* 信号主卡片 */
.signal-card {
    background-color: #161a1e;
    border: 1px solid #2b3139;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.signal-card:hover {
    border-color: #495057;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.signal-card.has-event {
    border-left: 1px solid #2b3139;
    background: #161a1e;
}

.signal-card.resonance-card {
    border-left: 1px solid #2b3139;
    background: #161a1e;
}

/* 徽章样式 */
.badge-sig1 {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-sig2 {
    background-color: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-sig3 {
    background-color: rgba(236, 72, 153, 0.18);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.5);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
}

.badge-long {
    background-color: rgba(14, 203, 129, 0.15);
    color: #0ecb81;
    border: 1px solid rgba(14, 203, 129, 0.3);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
}

.badge-short {
    background-color: rgba(246, 70, 93, 0.15);
    color: #f6465d;
    border: 1px solid rgba(246, 70, 93, 0.3);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
}

.badge-asset {
    background-color: #23272e;
    color: #94a3b8;
    border: 1px solid #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.badge-asset-macro {
    background-color: #23272e !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}

.diag-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background-color: #23272e;
    color: #94a3b8;
    border: 1px solid #334155;
}

.diag-chip.chip-danger,
.diag-chip.chip-warning,
.diag-chip.chip-info,
.diag-chip.chip-neutral {
    background-color: #23272e;
    color: #94a3b8;
    border: 1px solid #334155;
}

.badge-event-hit {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.badge-event-hit:hover {
    background-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* 事件详情嵌入卡片 */
.event-details-box {
    margin-top: 12px;
    padding: 12px 16px;
    background-color: #1e2329;
    border-radius: 6px;
    border: 1px solid #2b3139;
}

.impact-chip {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 4px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    background-color: #2b3139;
}

.impact-chip.pos {
    color: #0ecb81;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.impact-chip.neg {
    color: #f6465d;
    border: 1px solid rgba(246, 70, 93, 0.3);
}

/* KPI 统计卡片 */
.kpi-card {
    background-color: #161a1e;
    border: 1px solid #2b3139;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
}

.kpi-card .kpi-num {
    font-size: 22px;
    font-weight: bold;
    color: #eaecef;
    margin-bottom: 2px;
}

.kpi-card .kpi-lbl {
    font-size: 12px;
    color: #848e9c;
}

.kpi-card .kpi-sub {
    font-size: 11px;
    letter-spacing: 0.2px;
}

/* 加载更多历史信号按钮 */
.btn-load-more-custom {
    background-color: #1e2329 !important;
    border: 1px solid #363d47 !important;
    color: #22d3ee !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
}

.btn-load-more-custom:hover {
    background-color: #2b3139 !important;
    border-color: #22d3ee !important;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4) !important;
    transform: translateY(-1px);
}

