/* Galaxy Panel - Transfer list styling for team detail panel.
   Extends constellation-panel.css patterns.
*/

/* Player list */
.galaxy-panel-player-list {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.galaxy-panel-player-list::-webkit-scrollbar {
    width: 4px;
}

.galaxy-panel-player-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.galaxy-panel-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.galaxy-panel-player:last-child {
    border-bottom: none;
}

.galaxy-panel-player-pos {
    color: rgba(255,255,255,0.5);
    min-width: 28px;
    font-size: 0.7rem;
    text-align: center;
}

.galaxy-panel-player-name {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galaxy-panel-player-stars {
    color: #ffd700;
    font-size: 0.7rem;
    min-width: 40px;
    text-align: right;
}

.galaxy-panel-player-school {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.galaxy-panel-player-school:hover {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}

/* Pipeline entries */
.galaxy-panel-pipelines {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.galaxy-pipeline-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: background 0.15s ease;
}

.galaxy-pipeline-entry:hover {
    background: rgba(255,255,255,0.08);
}

.galaxy-pipeline-direction {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 24px;
}

.galaxy-pipeline-direction.incoming {
    color: #28a745;
}

.galaxy-pipeline-direction.outgoing {
    color: #dc3545;
}

.galaxy-pipeline-school {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.galaxy-pipeline-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* Panel stat grid: 4 stats in 2x2 layout */
#panelStats.panel-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.galaxy-panel-stat {
    text-align: center;
}

.galaxy-panel-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.galaxy-panel-stat-value.positive {
    color: #28a745;
}

.galaxy-panel-stat-value.negative {
    color: #dc3545;
}

.galaxy-panel-stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

/* Active filter badges */
.galaxy-filter-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    margin: 0 -0.8rem;
    background: rgba(255, 200, 50, 0.06);
    border-top: 1px solid rgba(255, 200, 50, 0.15);
    border-bottom: 1px solid rgba(255, 200, 50, 0.15);
}

.galaxy-filter-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.galaxy-filter-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 200, 50, 0.15);
    border: 1px solid rgba(255, 200, 50, 0.3);
    border-radius: 10px;
    font-size: 0.7rem;
    color: rgba(255, 200, 50, 0.9);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* Filter highlighting — matches glow, non-matches dim */
.galaxy-panel-player.filter-match {
    opacity: 1;
    border-left: 2px solid rgba(255, 200, 50, 0.7);
    padding-left: 0.4rem;
    background: rgba(255, 200, 50, 0.04);
}

.galaxy-panel-player.filter-match .galaxy-panel-player-pos {
    color: rgba(255, 200, 50, 0.9);
    font-weight: 600;
}

.galaxy-panel-player.filter-dim {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.galaxy-panel-player.filter-dim:hover {
    opacity: 0.6;
}

/* Divider between matched and non-matched groups */
.galaxy-panel-divider {
    height: 1px;
    margin: 0.4rem 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 200, 50, 0.25) 30%,
        rgba(255, 200, 50, 0.25) 70%,
        transparent 100%
    );
}

/* Match count badge in section header */
.panel-match-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 200, 50, 0.9);
    font-family: 'JetBrains Mono', monospace;
}

/* Empty panel state */
.galaxy-panel-empty {
    text-align: center;
    padding: 1rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    font-style: italic;
}
