/* Practice match list (HTML/practice-matches.html). Buttons, the note box
   and .practice-meta all come from CSS/practice.css; this sheet only
   covers the list itself. */

.practice-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.practice-list-head .section-title {
    margin-bottom: 0;
}

/* "Create Match" is a link styled as a button. */
a.practice-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.practice-list-signin {
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #a0a0a8;
}

.practice-list-signin .practice-link {
    font-size: inherit;
}

.practice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.practice-list-empty {
    color: #a0a0a8;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px 0;
}

.practice-list-item {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.practice-list-item:hover,
.practice-list-item:focus-visible {
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.45);
}

.practice-list-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.practice-list-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.practice-list-status {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c9c9ce;
}

.practice-list-status.is-live {
    border-color: rgba(80, 170, 90, 0.7);
    background: rgba(80, 170, 90, 0.25);
    color: #d6f3da;
}

.practice-list-item .practice-meta {
    margin-top: 4px;
}

.practice-list-item-foot {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8a8a90;
}

@media (max-width: 600px) {
    .practice-list-head .practice-actions {
        width: 100%;
    }

    .practice-list-head .practice-btn {
        flex: 1;
        justify-content: center;
    }
}
