/* Champion styling for tournament knockout brackets */

/* Add knockout-match positioning context */
.knockout-match {
    position: relative !important;
}

/* Champion section wrapper - displayed after the bracket */
.champion-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
}

/* Champion badge when inside champion-section (banner mode) */
.champion-section .champion-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    background: linear-gradient(to right, #ffd700, #ffec80, #ffd700) !important;
    color: #212529 !important;
    border-radius: 8px !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 1rem !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    z-index: 1 !important;
    border: 2px solid #e5c100 !important;
    padding: 12px 24px !important;
    flex-direction: row !important;
    animation: glow 2s infinite alternate !important;
}

.champion-section .champion-badge .fa-crown {
    font-size: 1.4em;
    color: #b8860b;
}

.champion-section .champion-badge span {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
}

.champion-section .champion-badge .champion-title {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

/* Enhanced champion badge - small badge on a match element (original use) */
.knockout-match .champion-badge {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    background-color: gold !important;
    color: #212529 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3) !important;
    z-index: 10 !important;
    border: 2px solid #ffd700 !important;
    padding: 0 !important;
}

/* Champion banner styling (legacy) */
.champion-banner {
    background: linear-gradient(to right, #ffd700, #ffec80, #ffd700) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    margin-top: 15px !important;
    border: 2px solid #e5c100 !important;
    animation: glow 2s infinite alternate !important;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

/* Make winner name stand out more */
.champion-banner strong {
    font-size: 1.2em !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2) !important;
}

/* Highlight the tournament champion in the bracket */
.tournament-champion {
    background-color: rgba(255, 215, 0, 0.2) !important;
    border: 2px solid gold !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
    position: relative !important;
    z-index: 5 !important;
}

.tournament-champion .player-name {
    font-weight: bold !important;
    color: #000 !important;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5) !important;
}

/* Bracket wrapper to contain both bracket and champion */
.bracket-wrapper {
    position: relative;
}
