/* Claude 2026-02-17 - CSS for single-elimination tournament bracket visualization */

.tournament-bracket {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 20px 10px;
    gap: 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 200px;
    position: relative;
}

.bracket-round-header {
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #495057;
}

.bracket-matchup {
    display: flex;
    flex-direction: column;
    margin: 8px 0;
    position: relative;
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    font-size: 0.8rem;
    min-height: 28px;
    cursor: default;
}

.bracket-team:first-child {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.bracket-team:last-child {
    border-radius: 0 0 4px 4px;
}

.bracket-team .team-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.bracket-team .team-seed {
    color: #6c757d;
    font-size: 0.75rem;
    margin-right: 4px;
    min-width: 16px;
}

.bracket-team .team-score {
    font-weight: bold;
    min-width: 20px;
    text-align: right;
}

.bracket-team.winner {
    background-color: #e2efda;
}

.bracket-team.loser {
    color: #999;
}

.bracket-team.bye {
    background-color: #f8f9fa;
    color: #adb5bd;
    font-style: italic;
}

.bracket-team.tbd {
    color: #adb5bd;
    font-style: italic;
}

/* Connector lines between rounds */
.bracket-connector {
    width: 20px;
    min-width: 20px;
    position: relative;
}

/* Tournament status badges */
.tournament-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tournament-status.draft {
    background-color: #fff3cd;
    color: #856404;
}

.tournament-status.seeded {
    background-color: #cce5ff;
    color: #004085;
}

.tournament-status.in-progress {
    background-color: #d4edda;
    color: #155724;
}

.tournament-status.complete {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .tournament-bracket {
        flex-direction: column;
    }

    .bracket-round {
        min-width: 100%;
    }

    .bracket-connector {
        display: none;
    }
}
