/* --- Arkansas Nexus Info Panel --- */
#info-panel {
    position: fixed;
    top: 48px;
    right: -480px;
    bottom: 0;
    width: 460px;
    max-width: 90vw;
    background: rgba(8, 8, 12, 0.96);
    border-left: 2px solid rgba(212, 175, 55, 0.4);
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.3s ease;
    backdrop-filter: blur(8px);
}
#info-panel.open { right: 0; }

#info-panel-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    font-size: var(--text-xl);
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 5;
    line-height: 1;
}
#info-panel-close:hover { color: #fff; border-color: #d4af37; }

.info-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}
.info-header h2 {
    color: #d4af37;
    font-size: var(--text-2xl);
    margin: 0 0 6px 0;
    padding-right: 40px;
}

.info-status {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.info-status.active_target { background: #ff4444; color: #fff; }
.info-status.under_investigation { background: #ff8800; color: #fff; }
.info-status.monitoring { background: #00aaff; color: #fff; }
.info-status.cleared { background: #00cc66; color: #fff; }
.info-status.unknown { background: #555; color: #ccc; }

.info-meta {
    color: #888;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-note {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid #d4af37;
    padding: 10px 14px;
    margin: 12px 20px;
    color: #ccc;
    font-size: var(--text-base);
    line-height: 1.5;
}

.info-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    flex-wrap: wrap;
}
.info-actions a {
    display: inline-block;
    padding: 6px 14px;
    font-size: var(--text-sm);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid;
}
.info-actions .btn-dossier {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}
.info-actions .btn-dossier:hover {
    background: #fff;
    color: #000;
}
.info-actions .btn-investigation {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
}
.info-actions .btn-investigation:hover {
    background: rgba(212, 175, 55, 0.15);
}

.info-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.info-section-title {
    color: rgba(212, 175, 55, 0.6);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    background: rgba(8, 8, 12, 0.98);
}

.info-conn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: var(--text-base);
}
.info-conn-item:hover { background: rgba(212, 175, 55, 0.04); }

.info-conn-name { color: #bbb; flex: 1; min-width: 0; }
.info-conn-name a { color: #bbb; text-decoration: none; }
.info-conn-name a:hover { color: #d4af37; }

.info-conn-type {
    color: #666;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
    white-space: nowrap;
}
.info-conn-type.social { color: #4488ff; }
.info-conn-type.political { color: #FF4444; }
.info-conn-type.financial { color: #d4af37; }
.info-conn-type.mentor { color: #00cc88; }
.info-conn-type.legal { color: #ff8844; }
.info-conn-type.intelligence { color: #00ffff; }
.info-conn-type.doj_evidence { color: #ff00ff; }

.info-conn-count {
    color: #666;
    font-size: var(--text-base);
    padding: 8px 20px;
}

/* Cluster node rows */
.info-cluster-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: var(--text-base);
}
.info-cluster-node:hover { background: rgba(212, 175, 55, 0.04); }

.info-cluster-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.info-cluster-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.info-cluster-link {
    color: #bbb;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-cluster-link:hover { color: #d4af37; }
.info-cluster-count {
    color: #888;
    font-size: var(--text-xs);
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
}
.info-cluster-count:hover { color: #d4af37; }

/* Map scrim - light tint so map stays visible */
#map-scrim {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 899;
    display: none;
    cursor: pointer;
}
#map-scrim.visible { display: block; }

/* Navigation links in sidebar */
.nexus-nav-link {
    text-decoration: none;
    display: block;
    text-align: center;
}
.nexus-nav-spaced {
    margin-top: 4px;
}

/* Mobile info panel */
@media (max-width: 768px) {
    #info-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        top: 48px;
    }
    #info-panel.open { right: 0; }
}
