/* COLONIAL CLUB — Volley FFVolley V1.0.2 */

.volley-hero {
    align-items: end;
}

.volley-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0 0 1.5rem;
}

.volley-filter {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .6rem 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 800;
}

.volley-filter:hover,
.volley-filter.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.volley-section {
    margin: 1.6rem 0;
}

.volley-match-grid,
.volley-admin-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.volley-match-card {
    padding: 1.2rem;
    border: 1px solid #e0ded9;
    border-top: 5px solid #f7941d;
    border-radius: 18px;
    background: #fff;
}

.volley-match-card.is-provisional {
    border-top-color: #b9b9b9;
}

.volley-match-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.volley-match-meta > span,
.volley-pool {
    color: #c96f00;
    font-weight: 900;
}

.volley-versus {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-height: 90px;
    font-weight: 800;
}

.volley-versus > :last-child {
    text-align: right;
}

.volley-versus > span {
    color: #777;
    font-size: .8rem;
}

.is-colonial {
    color: #d87500;
    font-weight: 950 !important;
}

.volley-venue {
    margin: .7rem 0 .3rem;
    color: #555;
}

.volley-result-list {
    display: grid;
    gap: .7rem;
}

.volley-result-row {
    display: grid;
    grid-template-columns:
        100px
        minmax(0, 1fr)
        90px
        minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #e3e1dc;
    border-radius: 14px;
    background: #fff;
}

.volley-score {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 950;
}

.volley-standing-table
.is-colonial-row {
    background: #fff4e5;
}

.volley-standing-table
.is-colonial-row td {
    font-weight: 900;
}

.volley-source-note {
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    border-left: 5px solid #f7941d;
    border-radius: 12px;
    background: #fff8ef;
}

.volley-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
}

.volley-admin-actions form {
    margin: 0;
}

.volley-admin-comp-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.volley-admin-comp-head > div {
    display: grid;
    gap: .2rem;
}

.volley-admin-comp-head strong {
    font-size: 1.5rem;
}

.status-badge {
    display: inline-flex;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #ececec;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-published {
    background: #dcf4df;
    color: #246b31;
}

.status-provisional {
    background: #fff0c8;
    color: #7c5700;
}

.status-empty {
    background: #eee;
    color: #666;
}

.volley-draft-list {
    display: grid;
    gap: .8rem;
}

.volley-draft-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.volley-draft-card:hover {
    border-color: #f7941d;
}

.volley-draft-card h3 {
    margin: .25rem 0;
}

.volley-draft-meta {
    display: grid;
    gap: .4rem;
    align-content: start;
    text-align: right;
}

.volley-sync-message {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.volley-social-preview pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .volley-match-grid,
    .volley-admin-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .volley-match-grid,
    .volley-admin-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .volley-filter-bar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .volley-filter {
        justify-content: center;
        text-align: center;
        font-size: .86rem;
    }

    .volley-result-row {
        grid-template-columns:
            70px minmax(0, 1fr) 60px;
    }

    .volley-result-row
    > strong:last-child {
        grid-column: 2 / 4;
        padding-top: .3rem;
        border-top: 1px solid #eee;
    }

    .volley-draft-card {
        display: grid;
    }

    .volley-draft-meta {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .volley-admin-actions,
    .volley-admin-actions form,
    .volley-admin-actions .button,
    .volley-admin-actions button {
        width: 100%;
    }
}
