/* Identidade visual — cards de ranking na página do clube */

.ranking-clube-visual {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(12, 25, 65, 0.08);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.torneio-card {
    overflow: hidden;
    border: 1px solid rgba(12, 25, 65, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.torneio-card > .ranking-clube-visual:first-child {
    flex-shrink: 0;
}

.torneio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.65rem 1.35rem rgba(12, 25, 65, 0.14) !important;
}

.ranking-clube-visual__format {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ranking-clube-visual__format-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(12, 25, 65, 0.12);
}

.ranking-clube-visual__svg {
    width: 2.35rem;
    height: 2.35rem;
    display: block;
}

.ranking-clube-visual__format-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ranking-clube-visual__nome {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a2332;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-clube-card-tipo {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    color: #5c677a;
    margin-bottom: 0.55rem;
}

.ranking-clube-visual__format--2x2 .ranking-clube-visual__format-icon {
    background: linear-gradient(145deg, #e0f7fa 0%, #0dcaf0 55%, #0891b2 100%);
    color: #ffffff;
}

.ranking-clube-visual__format--duplas .ranking-clube-visual__format-icon {
    background: linear-gradient(145deg, #fff3cd 0%, #ffc107 55%, #e6a800 100%);
    color: #3d2e00;
}

.ranking-clube-visual__format--1x1 .ranking-clube-visual__format-icon {
    background: linear-gradient(145deg, #d1e7dd 0%, #198754 55%, #146c43 100%);
    color: #ffffff;
}

.ranking-clube-visual__genero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    min-width: 4.1rem;
    border-radius: 12px;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(12, 25, 65, 0.1);
}

.ranking-clube-visual__genero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1;
}

.ranking-clube-visual__genero-label {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-chip-genero--m {
    background: linear-gradient(160deg, #4dabff 0%, #0d6efd 50%, #0a58ca 100%);
    color: #fff;
}

.ranking-chip-genero--m .ranking-clube-visual__genero-avatar {
    color: #0a58ca;
}

.ranking-chip-genero--f {
    background: linear-gradient(160deg, #f062a8 0%, #e91e8c 50%, #c2185b 100%);
    color: #fff;
}

.ranking-chip-genero--f .ranking-clube-visual__genero-avatar {
    color: #c2185b;
}

.ranking-chip-genero--x {
    background: linear-gradient(160deg, #ba68c8 0%, #9c27b0 50%, #7b1fa2 100%);
    color: #fff;
}

.ranking-chip-genero--x .ranking-clube-visual__genero-avatar {
    color: #7b1fa2;
}

/* Chips compactos (fallback / preview alternativo) */
.ranking-clube-visual-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.ranking-clube-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(12, 25, 65, 0.08);
}

.ranking-clube-chip-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.ranking-chip-formato--2x2 {
    background: linear-gradient(135deg, #0dcaf0 0%, #0891b2 100%);
    color: #fff;
}

.ranking-chip-formato--2x2 .ranking-clube-chip-icone { color: #0891b2; }

.ranking-chip-formato--duplas {
    background: linear-gradient(135deg, #ffc107 0%, #e6a800 100%);
    color: #1a1a1a;
}

.ranking-chip-formato--duplas .ranking-clube-chip-icone { color: #b8860b; }

.ranking-chip-formato--1x1 {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
}

.ranking-chip-formato--1x1 .ranking-clube-chip-icone { color: #146c43; }

@media (max-width: 576px) {
    .ranking-clube-visual {
        flex-wrap: wrap;
        padding: 0.75rem 0.85rem;
    }

    .ranking-clube-visual__genero {
        flex-direction: row;
        min-width: auto;
        padding: 0.3rem 0.65rem 0.3rem 0.35rem;
        gap: 0.4rem;
    }

    .ranking-clube-visual__genero-label {
        font-size: 0.7rem;
        max-width: none;
        text-transform: none;
        letter-spacing: 0;
    }

    .ranking-clube-visual__nome {
        font-size: 1rem;
    }

    .ranking-clube-visual__format-icon {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 12px;
    }

    .ranking-clube-visual__svg {
        width: 2rem;
        height: 2rem;
    }
}
