/******************************************************
 * WILDCAT CLASSIC — 8-TEAM CENTER-START BRACKET
 * 5-column, flex-based, WP-safe
 ******************************************************/

/* Root wrapper strip */
#wcc-bracket-root {
    width: 100%;
    background-color: #f3f4f6;
    padding: 30px 0 40px;
    box-sizing: border-box;
}

/* Basic reset inside bracket to fight WP/admin CSS */
#wcc-bracket-root *,
#wcc-bracket-root *::before,
#wcc-bracket-root *::after {
    box-sizing: border-box;
}

#wcc-bracket-root ul,
#wcc-bracket-root li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Header above bracket */
.wc8-bracket-header {
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.wc8-bracket-title {
    font-size: 1.1rem; /* slightly larger */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
}

/* Main bracket container */
#wcc-bracket {
    width: 100%;
}

/* === FIVE COLUMN FLEX LAYOUT === */

.wc8-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Base column style: all equal width */
.wc8-column {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
    flex: 0 0 20%;
}

/* Column headings */
.wc8-round-header {
    text-align: center;
    margin-bottom: 0.35rem;
}

.wc8-round-header h2 {
    margin: 0;
    font-size: 0.9rem; /* was 0.8rem */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
}

.wc8-round-sub {
    font-size: 0.8rem; /* was 0.7rem */
    color: #6b7280;
    margin-top: 0.15rem;
}

/* === GAME CARDS === */

.wc8-game {
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15,23,42,0.08);
    padding: 0.55rem 0.8rem 0.55rem;   /* a bit taller */
    font-size: 0.9rem; /* was 0.78rem */
}

/* Label at top of each card (RD1 GM1 · 1:00 PM, etc.) */
.wc8-game-label {
    font-size: 0.8rem; /* was 0.7rem */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Team rows inside card */
.wc8-team-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;  /* logo | name | score */
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
}

.wc8-team-row + .wc8-team-row {
    border-top: 1px solid #f3f4f6;
}

/* Team logo (left of name) */
.wc8-team-logo {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: #e5e7eb;   /* placeholder circle */
    overflow: hidden;
    flex-shrink: 0;
}

.wc8-team-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team name (middle) */
.wc8-team-name {
    font-size: 0.95rem; /* slightly larger than base */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Score (right) */
.wc8-team-score {
    min-width: 1.4rem;
    text-align: right;
    font-weight: 700;   /* was 600 */
    font-size: 1.05rem; /* was 0.9rem */
}

.wc8-team-score.wc8-pending {
    color: #d1d5db;
}

/* Winner highlight */
.wc8-winner .wc8-team-name {
    font-weight: 600;
}

.wc8-winner .wc8-team-score {
    color: #111827;
}

/* Recap / live stream links row */
.wc8-game-links {
    margin-top: 0.35rem;
    font-size: 0.8rem; /* was 0.7rem */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.wc8-game-links a {
    color: #06693a;           /* primary green */
    text-decoration: none;
}

.wc8-game-links a:hover {
    text-decoration: underline;
}

/* Meta labels above special games (Championship, 2nd, 5th, 7th) */
.wc8-game-meta {
    font-size: 0.8rem;   /* was 0.7rem */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563;
    margin: 0 0 6px;     /* ~6px gap between title and box */
}

/* Size / emphasis variants */
.wc8-game-small {
    font-size: 0.85rem;  /* was 0.75rem */
}

.wc8-game-tall {
    margin-top: 1.4rem;
}

/* Championship box accent border */
.wc8-column-finals .wc8-game-final {
    border-left: 4px solid #06693a; /* subtle accent for championship */
}

/* ============================================
 * TARGETED ALIGNMENT OFFSETS
 * Round 1 is good — do NOT touch that column.
 * Only adjust:
 *   - RD2 GM1, RD2 GM2, RD2 GM3, RD2 GM4
 *   - Round 3 games (Placement + Finals) via meta labels
 * ==========================================*/

/* ROUND 2 – Consolation/semis vertical offsets */

/* Push ROUND 2 – GAME 1 (RD2 GM1) down a bit */
.wc8-column-consolation .wc8-game:first-of-type {
    margin-top: 60px;
}

/* Push ROUND 2 – GAME 3 (RD2 GM3) down a bit */
.wc8-column-semifinals .wc8-game:first-of-type {
    margin-top: 60px;
}

/* Lower ROUND 2 – GAME 2 (RD2 GM2) */
.wc8-column-consolation .wc8-game:nth-of-type(2) {
    margin-top: 130px;
}

/* Lower ROUND 2 – GAME 4 (RD2 GM4) */
.wc8-column-semifinals .wc8-game:nth-of-type(2) {
    margin-top: 130px;
}

/* ROUND 3 – Offsets applied to the meta labels so the label + box
   move together instead of the label floating above. */

/* First meta in placement/finals columns (5th & Championship) */
.wc8-column-placement .wc8-game-meta:first-of-type,
.wc8-column-finals   .wc8-game-meta:first-of-type {
    margin-top: 155px;
}

/* Second meta in placement/finals columns (7th & 2nd) */
.wc8-column-placement .wc8-game-meta:last-of-type,
.wc8-column-finals   .wc8-game-meta:last-of-type {
    margin-top: 175px;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
    .wc8-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .wc8-column {
        flex: 0 0 calc(50% - 1.5rem);
    }

    .wc8-column-round1 {
        flex-basis: 100%;
        order: -1; /* keep Round 1 on top on tablets */
    }

    /* reduce offsets for medium screens so it doesn’t look insane */
    .wc8-column-consolation .wc8-game:nth-of-type(2),
    .wc8-column-semifinals  .wc8-game:nth-of-type(2) {
        margin-top: 80px;
    }

    .wc8-column-placement .wc8-game-meta:first-of-type,
    .wc8-column-finals   .wc8-game-meta:first-of-type {
        margin-top: 140px;
    }

    .wc8-column-placement .wc8-game-meta:last-of-type,
    .wc8-column-finals   .wc8-game-meta:last-of-type {
        margin-top: 260px;
    }
}

@media (max-width: 640px) {
    .wc8-grid {
        flex-direction: column;
        gap: 1.25rem;
    }

    .wc8-column {
        flex: 0 0 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .wc8-column-round1 {
        order: 0;
    }

    /* further reduce offsets on phones */
    .wc8-column-consolation .wc8-game:nth-of-type(2),
    .wc8-column-semifinals  .wc8-game:nth-of-type(2) {
        margin-top: 50px;
    }

    .wc8-column-placement .wc8-game-meta:first-of-type,
    .wc8-column-finals   .wc8-game-meta:first-of-type {
        margin-top: 80px;
    }

    .wc8-column-placement .wc8-game-meta:last-of-type,
    .wc8-column-finals   .wc8-game-meta:last-of-type {
        margin-top: 160px;
    }
}

/* ============================================
 * TOURNAMENT CHAMPIONS BANNER
 * Spans visually across center columns (2–4)
 * ==========================================*/

.wc8-champs-banner {
    margin-top: -4rem;
    margin-bottom: 2rem;
}

.wc8-champs-inner {
    max-width: 900px;           /* roughly spans columns 2–4 within 1200px grid */
    margin: 0 auto;
    text-align: center;
}

.wc8-champs-pill {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    background-color: #06693a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.wc8-champs-name {
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Scale down on smaller screens */
@media (max-width: 768px) {
    .wc8-champs-name {
        font-size: 2.1rem;
    }

    .wc8-champs-pill {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
}
