/**
 * Match create modal — stepped form + FFF club/terrain pickers.
 */

.webisport-dashboard .match-create-form .pr-section-body > .webisport-form-group:last-child {
    margin-bottom: 0;
}

.webisport-dashboard .match-kind-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.webisport-dashboard .match-kind-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--ws-form-border, #d1d5db);
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}

.webisport-dashboard .match-kind-tab:hover {
    border-color: var(--ws-primary-border, var(--webisport-primary));
}

.webisport-dashboard .match-kind-tab:has(.match-kind-input:checked),
.webisport-dashboard .match-kind-tab.is-selected {
    border-color: var(--ws-primary-border, var(--webisport-primary));
    box-shadow: 0 0 0 1px var(--ws-primary-border, var(--webisport-primary));
    background: rgba(47, 43, 61, 0.03);
}

.webisport-dashboard .match-kind-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.webisport-dashboard .match-kind-tab-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ws-text, #444050);
}

.webisport-dashboard .match-kind-tab-hint {
    font-size: 0.75rem;
    color: #6d6b77;
    line-height: 1.35;
}

.webisport-dashboard .match-create-search-toolbar {
    margin-bottom: 0.5rem;
}

.webisport-dashboard .match-create-selected-club {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--ws-form-border, #d1d5db);
    border-radius: 0.5rem;
    background: var(--ws-bg-light, #f8f7fa);
    margin-bottom: 0.5rem;
}

.webisport-dashboard .match-create-selected-club-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.webisport-dashboard .match-create-selected-club-copy strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.webisport-dashboard .match-create-club-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
}

.webisport-dashboard .match-create-new-terrain {
    margin-top: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--webisport-border, #e5e7eb);
    border-radius: 0.5rem;
    background: #fff;
}

.webisport-dashboard #match-create-opponent-results:not([hidden]),
.webisport-dashboard #match-create-terrain-results:not([hidden]) {
    margin-bottom: 0.5rem;
}

.webisport-dashboard .match-create-form .webisport-search-result-item {
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font: inherit;
}

.webisport-dashboard .match-create-form .webisport-search-result-item img.match-create-club-logo {
    margin-right: 0.25rem;
}
