/* =============================================================================
   ⚡ HAWKES NETWORK — force-directed 45-node graph CSS
   ============================================================================= */

.panel-hawkes {
    background:
        radial-gradient(ellipse at top left, rgba(255,123,157,0.06), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255,216,107,0.08), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.94), rgba(10,8,24,0.97));
    border: 1px solid rgba(255,123,157,0.28);
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 18px;
    box-shadow:
        0 10px 32px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,123,157,0.10);
}

.hk-headline-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 16px;
}

.hk-headline-card {
    background: linear-gradient(180deg, rgba(255,123,157,0.06), rgba(10,8,24,0.50));
    border: 1px solid rgba(255,123,157,0.22);
    border-radius: 10px;
    padding: 12px 14px;
}

.hk-headline-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #b095f5;
    margin-bottom: 4px;
}

.hk-headline-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #ff7b9d;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hk-headline-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    color: #888aa0;
    font-style: italic;
    margin-top: 4px;
}

/* ── GRAPH CANVAS ──────────────────────────────────────────────────────── */

.hk-graph-wrap {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.hk-graph-canvas {
    width: 100%;
    height: 480px;
    display: block;
    border-radius: 6px;
}

.hk-graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    color: #888aa0;
}

.hk-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hk-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
}

.hk-dot-source { background: #ff7b9d; color: #ff7b9d; }
.hk-dot-target { background: #88d8b0; color: #88d8b0; }
.hk-dot-quiet  { background: #b095f5; color: #b095f5; }

/* ── DETAIL CARDS ──────────────────────────────────────────────────────── */

.hk-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.hk-detail-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 12px 14px;
}

.hk-detail-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.hk-edge-list,
.hk-self-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hk-edge-item,
.hk-self-item {
    display: grid;
    grid-template-columns: 1fr 60px;
    align-items: center;
    gap: 8px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    padding: 3px 0;
}

.hk-edge-arrow {
    color: #ff7b9d;
    font-weight: 600;
    margin: 0 4px;
}

.hk-edge-alpha,
.hk-self-alpha {
    text-align: right;
    color: #ffd86b;
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
    font-weight: 600;
}

/* ── INTERPRETATION + FOOT ─────────────────────────────────────────────── */

.hk-interp {
    background: linear-gradient(90deg, rgba(255,123,157,0.06), transparent 80%);
    border-left: 2px solid rgba(255,123,157,0.50);
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #ddc88a;
    line-height: 1.5;
    margin-bottom: 12px;
}

.hk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(212,175,55,0.14);
}

.hk-refresh-btn {
    background: rgba(255,123,157,0.10);
    color: #ff7b9d;
    border: 1px solid rgba(255,123,157,0.30);
    border-radius: 999px;
    padding: 5px 14px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.hk-refresh-btn:hover:not(:disabled) {
    background: rgba(255,123,157,0.20);
    transform: translateY(-1px);
}
.hk-refresh-btn:disabled { opacity: 0.55; cursor: progress; }

.hk-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: #888aa0;
}

@media (max-width: 900px) {
    .hk-headline-row { grid-template-columns: repeat(2, 1fr); }
    .hk-detail-row { grid-template-columns: 1fr; }
    .hk-graph-canvas { height: 360px; }
}
