/*
|--------------------------------------------------------------------------
| Tournament Bracket Tree
|--------------------------------------------------------------------------
*/

.etn-bracket-tree {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    overflow-x: auto;
    padding: 25px;
    min-height: 500px;
}

.etn-bracket-round {
    min-width: 320px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: all 0.2s ease;
}

.etn-bracket-round h3 {
    text-align: center;
    margin-bottom: 30px;

    color: #f4b400;

    font-size: 20px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Match Card
|--------------------------------------------------------------------------
*/

.etn-bracket-match {

    background: #111111;

    border: 1px solid #333333;

    border-radius: 8px;

    padding: 15px;

    min-height: 140px;

    position: relative;

    margin-bottom:
        var(--etn-round-spacing, 40px);

    box-shadow:
        0 2px 8px rgba(
            0,
            0,
            0,
            0.30
        );
}

.etn-bracket-match:last-child {
    margin-bottom: 0;
}

.etn-bracket-match.pending {
    border-color: #666666;
}

.etn-bracket-match.completed {
    border-color: #46d369;
}

/*
|--------------------------------------------------------------------------
| Teams
|--------------------------------------------------------------------------
*/

.etn-bracket-team {

    padding: 12px;

    margin-bottom: 10px;

    background: #222222;

    border-radius: 4px;

    color: #ffffff;

    font-weight: 500;
}

.etn-bracket-team:last-of-type {
    margin-bottom: 12px;
}

/*
|--------------------------------------------------------------------------
| Match Information
|--------------------------------------------------------------------------
*/

.etn-bracket-status {

    margin-top: 12px;

    font-size: 12px;

    color: #bdbdbd;
}

.etn-bracket-winner {

    margin-top: 12px;

    color: #46d369;

    font-weight: 700;
}

.etn-bracket-score {

    margin-top: 10px;

    text-align: center;

    font-size: 18px;

    font-weight: 700;

    color: #f4b400;
}

/*
|--------------------------------------------------------------------------
| Connector Lines
|--------------------------------------------------------------------------
*/

.etn-bracket-connector-top {

    position: absolute;

    top: 25%;

    right: -40px;

    width: 40px;
    height: 2px;

    background: #666666;
}

.etn-bracket-connector-bottom {

    position: absolute;

    bottom: 25%;

    right: -40px;

    width: 40px;
    height: 2px;

    background: #666666;
}

.etn-bracket-connector-middle {

    position: absolute;

    top: 25%;

    right: -40px;

    width: 2px;
    height: 50%;

    background: #666666;
}

/*
|--------------------------------------------------------------------------
| Champion Section
|--------------------------------------------------------------------------
*/

#etn-champion-container {

    font-size: 22px;

    font-weight: 700;

    color: #46d369;

    padding: 10px 0;
}

/*
|--------------------------------------------------------------------------
| Scroll Bar
|--------------------------------------------------------------------------
*/

.etn-bracket-tree::-webkit-scrollbar {
    height: 8px;
}

.etn-bracket-tree::-webkit-scrollbar-track {
    background: #191919;
}

.etn-bracket-tree::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

.etn-bracket-tree::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

/*
|--------------------------------------------------------------------------
| Mobile Support
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 768px) {

    .etn-bracket-tree {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .etn-bracket-round {
        min-width: 100%;
    }

    .etn-bracket-connector-top,
    .etn-bracket-connector-middle,
    .etn-bracket-connector-bottom {
        display: none;
    }
}


.etn-champion-card {

    text-align: center;

    border: 2px solid #f4b400;

    background: linear-gradient(
        180deg,
        #111111,
        #1a1a1a
    );
}

.etn-champion-card #etn-champion-container {

    font-size: 32px;

    font-weight: 700;

    color: #f4b400;

    padding: 20px 0;
}