/**
 * Shared Graph Styles
 * Used by: code-graph-global.php, semantic-explorer/graph.php
 */

/* Container */
.graph-container {
    width: 100%;
    height: 700px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Controls Bar */
.graph-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: center;
}

/* Legend */
.graph-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.graph-legend-node {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.graph-legend-link {
    display: inline-block;
    width: 16px;
    height: 2px;
    vertical-align: middle;
}

.graph-legend-separator {
    margin-left: 0.5rem;
    border-left: 1px solid var(--border-color);
    padding-left: 0.5rem;
}

/* Filter Controls */
.graph-filters {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.graph-filter-label {
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.graph-filter-label:first-child {
    margin-left: 0;
}

.graph-filter-select {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.875rem;
}

.graph-reset-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Stats */
.graph-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Loading */
.graph-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
}

/* Error */
.graph-error {
    padding: 2rem;
    color: var(--text-danger);
}

/* Node Colors - Code Graph (by type) */
.graph-node-class { background: #6366f1; }
.graph-node-interface { background: #f59e0b; }
.graph-node-trait { background: #10b981; }

/* Node Colors - Code Graph (by language) */
.graph-node-php { background: #6366f1; }      /* Indigo - PHP */
.graph-node-python { background: #10b981; }   /* Emerald - Python */
.graph-node-js { background: #f59e0b; }       /* Amber - JavaScript */

/* Node Colors - Semantic Graph */
.graph-node-person { background: #6366f1; }
.graph-node-organization { background: #f59e0b; }
.graph-node-location { background: #10b981; }
.graph-node-concept { background: #8b5cf6; }
.graph-node-method { background: #3b82f6; }
.graph-node-tool { background: #14b8a6; }
.graph-node-event { background: #f43f5e; }
.graph-node-other { background: #94a3b8; }

/* Link Colors - Code Graph */
.graph-link-extends { background: #f59e0b; }
.graph-link-implements { background: #3b82f6; }
.graph-link-constructor { background: #8b5cf6; }
.graph-link-use { background: #94a3b8; }
.graph-link-trait { background: #14b8a6; }

/* Link Colors - Semantic Graph */
.graph-link-related_to { background: #94a3b8; }
.graph-link-part_of { background: #3b82f6; }
.graph-link-used_in { background: #10b981; }
.graph-link-developed_by { background: #8b5cf6; }
.graph-link-taught_by { background: #f59e0b; }
.graph-link-based_on { background: #14b8a6; }

/* Back Link */
.graph-back-link {
    margin-top: 1.5rem;
}
