
/* Teams page: themed team banner.
   Uses the variables set by team-banner.js. Without them (unknown team, or the
   script not loaded) every rule falls back to the existing CourtIQ colours. */

.teams-page .team-panel.team-hero {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 24px 28px;
    background: linear-gradient(105deg, var(--tc-a, #123d63) 0%, var(--tc-mid, #0f2f52) 48%, #0b203a 100%);
    border-color: var(--tc-accent-soft, #1b4165);
    box-shadow: inset 0 -3px 0 var(--tc-accent, transparent);
}

/* faint half-court lines */
.teams-page .team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 74% 50%, transparent 0 69px, rgba(255, 255, 255, .08) 70px 72px, transparent 73px),
        linear-gradient(90deg, transparent calc(74% - 1px), rgba(255, 255, 255, .08) calc(74% - 1px) calc(74% + 1px), transparent calc(74% + 1px));
}

/* large faded logo watermark */
.teams-page .team-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -24px;
    width: 230px;
    height: 230px;
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%);
    background: var(--team-logo, none) center / contain no-repeat;
    opacity: .14;
}

.teams-page .team-hero > * {
    position: relative;
    z-index: 1;
}

.teams-page .team-hero h2 {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.teams-page .team-hero p {
    color: rgba(255, 255, 255, .85);
}
.teams-page .team-hero .team-mark {
    border-color: var(--tc-accent, #dceaff);
    background: rgba(7, 22, 45, .55);
}

/* stat boxes sit on the banner like frosted glass */
.teams-page .team-hero .mini-metric {
    background: rgba(7, 22, 45, .55);
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

/* the team's accent colour carries through the page */
.teams-page .mini-metric strong,
.teams-page .summary-grid strong {
    color: var(--tc-accent, var(--team-cyan));
}
.teams-page .team-tab.active {
    border-color: var(--tc-accent, #168fe8);
    box-shadow: inset 0 -2px var(--tc-accent, #35c7ef);
}

@media (max-width: 900px) {
    .teams-page .team-hero::after { width: 150px; height: 150px; right: -30px; opacity: .1; }
    .teams-page .team-hero::before { display: none; }
    .teams-page .team-hero h2 { font-size: 22px; }
}