/* ==========================================================================
   Component — Country Pill (flag + country + rank)
   ========================================================================== */

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);

  &:hover {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-bg));
    color: var(--color-text);
  }
}

.country-pill__flag {
  font-size: 1.1em;
  line-height: 1;
}

.country-pill__rank {
  font-weight: 700;
  color: var(--color-accent);
}

/* --- Pill Row (horizontal list of country pills) --- */
.country-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}
