/*
 * Playoff Bracket Styling - Simple & Clean Tournament Design
 * Matches the Gridiron Elo site design with Deep Blue (#003366), Gold (#FFD700)
 */

/* Header Section */
.playoff-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.playoff-header h2 {
    color: #003366;
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.playoff-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.playoff-description {
    color: #666;
    font-size: 0.95em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bracket Container - Simple Horizontal Layout */
.bracket-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem;
    background-color: #F4F4F4;
    border-radius: 8px;
    overflow-x: auto;
    min-height: 600px;
}

/* Each Round Column */
.bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.round-title {
    text-align: center;
    color: #003366;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #003366;
}

/* Matchups Container */
.matchups {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
    gap: 1rem;
}

/* Matchup Card (ul element) */
.matchup {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    border: 2px solid #DDDDDD;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.matchup:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Championship matchup styling */
.matchup.championship {
    border-color: #FFD700;
    border-width: 3px;
}

/* Team List Item */
.team {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
    min-height: 45px;
    list-style: none;
}

.team:last-child {
    border-bottom: none;
}

.team:hover {
    background-color: #FFFEF8;
}

/* Winner Styling */
.team.winner {
    background-color: #FFFEF8;
    font-weight: 600;
}

.team.champion {
    background: linear-gradient(135deg, #FFD700 0%, #FFC800 100%);
    color: #003366;
    font-weight: 700;
}

/* Seed Badge */
.seed-number {
    font-weight: 700;
    color: #FFFFFF;
    background-color: #003366;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.85em;
}

/* Keep seed badge blue even for winners */
.team.winner .seed-number {
    background-color: #003366;
    color: #FFFFFF;
}

.team.champion .seed-number {
    background-color: #003366;
    color: #FFFFFF;
}

/* Team Info */
.team-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.team-name {
    font-weight: 600;
    color: #003366;
    text-decoration: none;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.team-name:hover {
    color: #FFD700;
}

.team-conference {
    font-size: 0.75em;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Win Indicator */
.win-indicator {
    color: #FFD700;
    font-size: 1.1em;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.champion-trophy {
    color: #003366;
    font-size: 1.3em;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Spacing adjustments for funnel effect */
#quarterfinals .matchups {
    gap: 2rem;
}

#semifinals .matchups {
    gap: 4rem;
}

#championship .matchups {
    justify-content: center;
}

/* Bracket Legend */
.bracket-legend {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
}

.bracket-legend h4 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.bracket-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bracket-legend li {
    padding: 0.4rem 0;
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bracket-legend li i {
    color: #FFD700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 3em;
    color: #DDDDDD;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #003366;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1em;
    margin: 0.5rem 0;
}

/* Mobile Responsive Design */
@media (max-width: 1200px) {
    .bracket-container {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .bracket-round {
        min-width: 200px;
    }
}

@media (max-width: 1024px) {
    /* Stack vertically on tablets and mobile */
    .bracket-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 2rem;
    }

    .bracket-round {
        width: 100%;
        max-width: 400px;
    }

    .matchups {
        gap: 1rem !important;
    }

    .round-title {
        font-size: 1.2em;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .playoff-header {
        padding: 1rem;
    }

    .playoff-header h2 {
        font-size: 1.5em;
    }

    .playoff-subtitle {
        font-size: 1em;
    }

    .playoff-description {
        font-size: 0.9em;
    }

    .team {
        padding: 0.6rem;
        min-height: 40px;
    }

    .seed-number {
        width: 24px;
        height: 24px;
        font-size: 0.8em;
    }

    .team-name {
        font-size: 0.9em;
    }

    .bracket-legend {
        padding: 1rem;
    }
}
