/* ══════════════════════════════════════
   TOURNAMENT FILTER TABS
══════════════════════════════════════ */
.teams-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.teams-filter-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted);
    margin-right: 4px;
    white-space: nowrap;
}

.filter-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    font-size: 12.5px; font-weight: 600;
    color: var(--muted2);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.16s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.filter-tab:hover {
    background: var(--blue-pale);
    color: var(--blue2);
    border-color: var(--blue-pale2);
}

.filter-tab.active {
    background: var(--blue2);
    color: #fff;
    border-color: var(--blue2);
    box-shadow: 0 4px 12px rgba(36,80,216,0.28);
}

.filter-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    font-size: 10px; font-weight: 800;
    background: rgba(255,255,255,0.25);
    border-radius: 100px;
}

.filter-tab:not(.active) .filter-tab-count {
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ══════════════════════════════════════
   TOURNAMENT GROUP
══════════════════════════════════════ */
.teams-group { margin-bottom: 48px; }

.teams-group-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
}

.teams-group-title {
    font-size: 18px; font-weight: 800;
    letter-spacing: -0.03em; color: var(--text);
    white-space: nowrap;
}

.teams-group-badge {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 4px 12px; border-radius: 100px;
    white-space: nowrap;
}

.teams-group-badge.blue { background: var(--blue-pale2); color: var(--blue2);  border: 1px solid rgba(36,80,216,0.15); }
.teams-group-badge.red  { background: var(--red-pale);   color: var(--red);    border: 1px solid rgba(197,27,47,0.15); }
.teams-group-badge.gold { background: var(--gold-pale);  color: #a87000;       border: 1px solid rgba(194,138,0,0.2); }

.teams-group-line {
    flex: 1; height: 1px;
    background: var(--border);
}

/* ══════════════════════════════════════
   TEAMS GRID
══════════════════════════════════════ */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ══════════════════════════════════════
   TEAM CARD
══════════════════════════════════════ */
.team-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 28px 20px 22px;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue2), var(--blue));
    opacity: 0;
    transition: opacity 0.2s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-pale2);
}

.team-card:hover::before { opacity: 1; }

/* Logo */
.team-card-logo {
    width: 80px; height: 80px;
    border-radius: 18px;
    background: var(--surface2);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.team-card-logo img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 8px;
}

.team-card-logo-placeholder {
    font-size: 26px; font-weight: 900;
    color: var(--blue2); letter-spacing: -0.03em;
}

.team-card:hover .team-card-logo { border-color: var(--blue-pale2); }

/* Info */
.team-card-info { display: flex; flex-direction: column; gap: 4px; }

.team-card-name {
    font-size: 15px; font-weight: 800;
    letter-spacing: -0.025em; color: var(--text);
    line-height: 1.2;
    transition: color 0.15s;
}

.team-card:hover .team-card-name { color: var(--blue2); }

.team-card-city {
    font-size: 11px; font-weight: 500;
    color: var(--muted);
    display: flex; align-items: center; justify-content: center; gap: 4px;
}

/* Arrow */
.team-card-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--blue2);
    font-size: 13px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s;
}

.team-card:hover .team-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.teams-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 72px 24px; text-align: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
}

.teams-empty-icon  { font-size: 52px; margin-bottom: 16px; }
.teams-empty-title { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); margin-bottom: 8px; }
.teams-empty-sub   { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .teams-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .teams-grid { grid-template-columns: repeat(2, 1fr); }
    .teams-filter { gap: 6px; }
    .filter-tab { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .team-card { padding: 20px 12px 16px; }
    .team-card-logo { width: 64px; height: 64px; }
    .team-card-name { font-size: 13px; }
}
