/* 3D graph page (custom-graph.hbs). Glass container and header rules live in sen.css. */

.graph-container {
    min-height: 80vh;
}

[id="3d-graph"] {
    flex: 1;
    min-height: 80vh;
}

#graph-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #0f0;
    font-family: monospace;
}

.graph-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    opacity: 0.8;
    pointer-events: none;
}

.graph-legend__item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.graph-legend__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
}

.graph-legend__dot.is-project { background: #4a90e2; }
.graph-legend__dot.is-wiki { background: #bd10e0; }
.graph-legend__dot.is-tag { background: #50e3c2; }

/* hover preview, moved with the mouse by graph.js */
#graph-preview {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 240px;
    max-height: 280px;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
    background: var(--sen-glass-bg);
    backdrop-filter: var(--sen-glass-blur);
    -webkit-backdrop-filter: var(--sen-glass-blur);
    border: 1px solid var(--sen-accent);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-family: var(--font-mono);
}

#preview-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
    background: #000;
}

#preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.graph-preview__text {
    padding: 12px;
    overflow-y: auto;
}

#preview-title {
    margin: 0 0 8px 0;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

#preview-excerpt {
    margin: 0;
    color: #ccc;
    font-size: 11px;
    line-height: 1.4;
}
