/* Explain: Styles for team shields, cards, roster, and premium benefit display. */
/* Estilos do sistema de equipes: escudos, troféus prateados, integrantes e benefícios. */
.team-shield {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: var(--surface-color);
    object-fit: contain;
}

.team-shield-lg {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--surface-color);
    object-fit: contain;
}

.team-tag {
    display: inline-flex;
    margin-bottom: 0.35rem;
    border: 1px solid rgba(201, 210, 218, 0.4);
    border-radius: 999px;
    background: rgba(201, 210, 218, 0.12);
    color: var(--silver-color);
    padding: 0.15rem 0.6rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.team-card {
    border-radius: 1.25rem;
    padding: clamp(1.4rem, 3vw, 1.9rem);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--silver-color);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.team-member-row,
.team-request-row,
.team-history-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.85rem;
}

.team-member-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    object-fit: cover;
}

.team-role {
    display: inline-flex;
    margin-top: 0.15rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.team-role.is-owner {
    border-color: rgba(201, 210, 218, 0.5);
    background: rgba(201, 210, 218, 0.14);
    color: var(--silver-color);
}

.pdb-stat-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.teams-stat {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.25rem;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
    transition: transform 250ms ease, border-color 250ms ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--silver-color);
}

.benefit-card.is-unlocked {
    border-color: rgba(201, 210, 218, 0.55);
    background: linear-gradient(145deg, rgba(201, 210, 218, 0.14), rgba(255, 255, 255, 0.03));
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.benefit-icon.is-unlocked {
    border-color: rgba(201, 210, 218, 0.5);
    background: rgba(201, 210, 218, 0.16);
    color: var(--silver-strong);
}

.team-template-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.team-template-preview {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 0.9rem;
    background: var(--surface-color);
}

/* Indicador "Benefícios desbloqueados" como botão premium: contorno branco luminoso,
   brilho externo e destaque ao passar o mouse. */
.teams-stat-glow {
    position: relative;
    display: block;
    border-color: rgba(255, 255, 255, 0.85);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55),
        0 0 18px rgba(255, 255, 255, 0.28),
        0 0 42px rgba(255, 255, 255, 0.14);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.teams-stat-glow::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    content: "";
}

.teams-stat-glow:hover,
.teams-stat-glow:focus-visible {
    border-color: #ffffff;
    transform: translateY(-4px);
    outline: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95),
        0 0 28px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.24);
}

.teams-stat-glow:hover::after,
.teams-stat-glow:focus-visible::after {
    opacity: 1;
}

/* Indicador "Integrantes" como botão premium: contorno azul luminoso e brilho externo azul. */
.teams-stat-glow-blue {
    position: relative;
    display: block;
    border-color: rgba(102, 192, 244, 0.9);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(102, 192, 244, 0.6),
        0 0 18px rgba(102, 192, 244, 0.32),
        0 0 42px rgba(102, 192, 244, 0.16);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.teams-stat-glow-blue::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 26px rgba(102, 192, 244, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    content: "";
}

.teams-stat-glow-blue:hover,
.teams-stat-glow-blue:focus-visible {
    border-color: #7FD0FF;
    transform: translateY(-4px);
    outline: none;
    box-shadow:
        0 0 0 1px rgba(127, 208, 255, 0.95),
        0 0 28px rgba(102, 192, 244, 0.55),
        0 0 60px rgba(102, 192, 244, 0.28);
}

.teams-stat-glow-blue:hover::after,
.teams-stat-glow-blue:focus-visible::after {
    opacity: 1;
}

/* Card de benefício clicável (benefício de fotos individuais). */
.benefit-card-link {
    cursor: pointer;
}

.team-photo-badge {
    display: inline-flex;
    margin-top: 0.25rem;
    border: 1px solid rgba(201, 210, 218, 0.5);
    border-radius: 999px;
    background: rgba(201, 210, 218, 0.14);
    color: var(--silver-color);
    padding: 0.1rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Mural de integrantes: cartões verticais com fotografia grande no formato 3:4. */
.team-pilot-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.team-pilot-card:hover {
    transform: translateY(-5px);
    border-color: var(--silver-color);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.team-pilot-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-color);
}

.team-pilot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-pilot-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.75rem 0.4rem;
    text-align: center;
}

.team-pilot-name {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.team-photo-badge-float {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    margin-top: 0;
}

.team-pilot-add {
    display: block;
    width: calc(100% - 1.5rem);
    margin: auto 0.75rem 0.75rem;
}