/* ==========================================================================
   Coach CUP - Biglietto match unico
   Palette: cielo/campo (azzurro-verde) + crema + accenti sole/arancio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

#coachcup-container {
    --cc-sky: #5ec8d8;
    --cc-grass: #3c8f5c;
    --cc-cream: #f7ecd0;
    --cc-ink: #1c2b26;
    --cc-orange: #f2994a;
    --cc-orange-dark: #d9782a;
    --cc-muted: #6b7a70;
    --cc-white: #fffdf8;

    max-width: 560px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cc-ink);
    text-align: center;
}

.coachcup-error {
    max-width: 560px;
    margin: 32px auto;
    background: #fdecea;
    color: #8c1d17;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #f3c6c2;
    font-weight: 600;
    text-align: center;
}

.coachcup-empty {
    background: var(--cc-cream);
    border: 2px dashed #d8c79a;
    border-radius: 16px;
    padding: 40px 24px;
    color: var(--cc-muted);
    font-style: italic;
}

/* ---------------------------------------------------------------------- */
/* Titolo                                                                  */
/* ---------------------------------------------------------------------- */

.coachcup-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.coachcup-trophy {
    font-size: 26px;
}

.coachcup-title h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: -0.01em;
    color: var(--cc-ink);
}

/* ---------------------------------------------------------------------- */
/* Biglietto partita                                                       */
/* ---------------------------------------------------------------------- */

.coachcup-ticket {
    background: var(--cc-cream);
    border-radius: 26px;
    border: 3px solid var(--cc-ink);
    box-shadow: 0 14px 34px rgba(28, 43, 38, 0.18);
    overflow: hidden;
    position: relative;
}

.coachcup-eyebrow {
    background: var(--cc-ink);
    color: var(--cc-cream);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 16px;
}

.coachcup-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 32px 22px 26px;
}

.coachcup-team {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.coachcup-team-away {
    align-items: flex-end;
}

.coachcup-team-home {
    align-items: flex-start;
}

.coachcup-team-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cc-muted);
}

.coachcup-team-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    color: var(--cc-ink);
    word-break: break-word;
}

.coachcup-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(160deg, var(--cc-sky) 0%, var(--cc-grass) 100%);
    border-radius: 16px;
    border: 3px solid var(--cc-ink);
    padding: 12px 18px;
    min-width: 96px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.coachcup-score {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 30px;
    color: var(--cc-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.coachcup-score-sep {
    font-size: 20px;
    color: var(--cc-white);
    opacity: 0.85;
    font-weight: 700;
}

.coachcup-vs {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--cc-white);
    letter-spacing: 0.06em;
}

/* Perforazione biglietto */
.coachcup-perforation {
    position: relative;
    height: 0;
    border-top: 2px dashed #d8c79a;
    margin: 0 22px;
}

.coachcup-perforation::before,
.coachcup-perforation::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid var(--cc-ink);
}

.coachcup-perforation::before {
    left: -33px;
}

.coachcup-perforation::after {
    right: -33px;
}

.coachcup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 22px;
    flex-wrap: wrap;
}

.coachcup-date {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cc-ink);
}

.coachcup-status {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--cc-orange);
    color: #ffffff;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 480px) {
    .coachcup-teams {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .coachcup-team-home,
    .coachcup-team-away {
        align-items: center;
    }

    .coachcup-perforation::before {
        left: -11px;
    }

    .coachcup-perforation::after {
        right: -11px;
    }

    .coachcup-footer {
        justify-content: center;
        text-align: center;
    }
}
