/* ==========================================================================
 * TSV Berichtsgenerator — Frontend Scoreboard Styles
 * Matches the next-game-block design system.
 * ========================================================================== */

.tsv-match-scoreboard {
    background-color: #1A5E96;
    background-image: linear-gradient(135deg, #1A5E96 0%, #1A4A78 100%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    max-width: 700px;
    margin: 0 auto 2rem;
    overflow: hidden;
    color: #fff;
}

.scoreboard-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.5rem, 3vw, 1.5rem);
    padding: 2rem 1.5rem;
}

/* Team column */
.scoreboard-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    flex: 1 1 0;
    min-width: 0;
}

/* Logo circle (same as next-game-block) */
.scoreboard-logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    display: grid;
    place-items: center;
    overflow: visible;
    border: 3px solid #fff;
}

.scoreboard-logo {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.scoreboard-team-name {
    font: 600 1rem/1.25 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: #fff;
    text-align: center;
    overflow-wrap: anywhere;
    width: 100%;
}

/* Center column — score */
.scoreboard-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

.scoreboard-score {
    font: 700 clamp(2rem, 6vw, 3rem)/1 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: #fff;
    letter-spacing: .04em;
}

.scoreboard-competition {
    font: 600 .9rem/1.3 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: var(--secondary-color, #D4A843);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
}

.scoreboard-date {
    font: 500 .85rem/1.3 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

/* Mobile stacked layout */
@media (max-width: 600px) {
    .scoreboard-inner {
        flex-wrap: nowrap;
        padding: 1.5rem 1rem;
        gap: .75rem;
    }

    .scoreboard-logo-circle {
        width: 75px;
        height: 75px;
    }

    .scoreboard-team-name {
        font-size: .85rem;
    }

    .scoreboard-score {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .scoreboard-competition {
        font-size: .8rem;
    }

    .scoreboard-date {
        font-size: .75rem;
    }
}

/* ==========================================================================
 * Tournament Participants Banner
 * ========================================================================== */

.tsv-tournament-banner {
    background-color: #1A5E96;
    background-image: linear-gradient(135deg, #1A5E96 0%, #1A4A78 100%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    margin: 0 auto 2rem;
    overflow: hidden;
    color: #fff;
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
}

.tournament-banner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    margin-bottom: 1.25rem;
}

.tournament-banner-name {
    font: 700 1.25rem/1.3 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tournament-banner-date {
    font: 500 .9rem/1.3 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

.tournament-banner-teams {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 1.5rem;
}

.tournament-banner-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    width: 120px;
}

.tournament-banner-team .scoreboard-logo-circle {
    width: 75px;
    height: 75px;
}

.tournament-banner-team-name {
    font: 500 .72rem/1.05 var(--heading-font, 'Kanit', system-ui, sans-serif);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 600px) {
    .tsv-tournament-banner {
        padding: 1.25rem 1rem 1rem;
    }

    .tournament-banner-name {
        font-size: 1.05rem;
    }

    .tournament-banner-teams {
        gap: .75rem;
    }

    .tournament-banner-team .scoreboard-logo-circle {
        width: 55px;
        height: 55px;
    }

    .tournament-banner-team-name {
        font-size: .7rem;
        max-width: 70px;
    }
}