/*
 * تسک ۱۴۰۵/۰۸/۱۱ — اصلاح فهرست و فرم تیم‌ها (App\Support\Photoaman\TeamBadges):
 * a team's type, sport, gender and age category as pictures, the default
 * emblem half size and dark grey, and the team form's club option, age
 * options and «فعال» | «خصوصی» row.
 */

/* ── The default emblem: half a logo's size, in its own box ─────────────── */
/* The <img> itself shrinks, so no empty space is left beside the name. */
.pa-club-logo.pa-club-logo-default {
    width: 1rem;
    height: 1rem;
}

.pa-club-logo-heading.pa-club-logo-default {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── A picture with its name in a tooltip (hover and keyboard focus) ────── */
.pa-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border-radius: 0.375rem;
    line-height: 0;
    cursor: default;
}

.pa-badge:focus-visible {
    outline: 2px solid var(--primary-500, #f59e0b);
    outline-offset: 2px;
}

.pa-team-type-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.pa-badge-img {
    width: 1.5rem;
    height: 1.5rem;
}

/* ── Gender: a black silhouette on a small light disc, readable on dark ── */
.pa-gender-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #e5e7eb;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.dark .pa-gender-icon {
    background: #d1d5db;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
}

.pa-gender-icon img {
    width: 1.0625rem;
    height: 1.0625rem;
    object-fit: contain;
}

.pa-badge-text {
    font-size: 0.875rem;
}

/* ── Picture first (right in Persian), then the words ───────────────────── */
.pa-badge-option,
.pa-age-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    vertical-align: middle;
    max-width: 100%;
}

.pa-badge-option-text {
    min-width: 0;
}

.pa-age-face {
    flex: 0 0 auto;
    width: 1.625rem;
    height: 1.625rem;
    object-fit: contain;
}

.pa-team-type-radio .pa-badge-option img {
    width: 1.375rem;
    height: 1.375rem;
}

/* ── «… | این تیم موجود است» — shown, red, not choosable ─────────────────── */
.pa-age-taken {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pa-age-taken-sep {
    color: var(--gray-400, #9ca3af);
}

.pa-age-taken-note {
    color: #dc2626;
    font-weight: 600;
}

.dark .pa-age-taken-note {
    color: #f87171;
}

/* The age field waiting for sport and gender: its message in red. */
.pa-age-select-waiting .fi-select-input-placeholder,
.pa-age-select-waiting .fi-select-input-btn,
.pa-age-select-waiting select {
    color: #dc2626 !important;
}

.dark .pa-age-select-waiting .fi-select-input-placeholder,
.dark .pa-age-select-waiting .fi-select-input-btn {
    color: #f87171 !important;
}

/* ── «[نام باشگاه] | [شهر] | [پرچم] [کشور]» ──────────────────────────────── */
.pa-club-option {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.4rem;
    row-gap: 0.15rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pa-club-option-name {
    color: var(--pa-standard-yellow, #f59e0b);
    font-weight: 700;
}

.pa-club-option-sep {
    color: var(--gray-400, #9ca3af);
}

/* The chosen club wraps rather than being cut or overlapping. */
.pa-club-select .fi-select-input-value-label,
.pa-club-select .fi-select-input-btn {
    white-space: normal;
    height: auto;
}

/* A club team's names come from its club: shown, not typed. */
.pa-name-from-club input[readonly] {
    cursor: not-allowed;
    opacity: 0.8;
}

/* ── «فعال» | «خصوصی»: one row, the same switch, also on a phone ─────────── */
.pa-team-switches > .fi-grid,
.pa-team-switches {
    align-items: center;
}

/* «نمایش تیم موجود» in the duplicate message: a link that reads as one. */
.pa-taken-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
